PlaySudoku
Deterministic Sudoku puzzles, progress checks, logical hints, and step-by-step solutions.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"playsudoku": {
"url": "https://mcp.playsudoku.us/mcp"
}
}
}远程端点
https://mcp.playsudoku.us/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢get_sudoku_puzzle(difficulty, technique)
Get a random sudoku puzzle from the PlaySudoku.us collection. Puzzle is returned as an 81-character string: digits 1–9 for given cells, 0 for empty cells. The response includes the techniques required to solve the puzzle and a solve_url to the interactive solver. Difficulties: easy (30–38 givens), medium (44–50), hard (50–55), expert (56–62), evil (56–62). Optional: pass a technique name (e.g. "X-Wing", "Hidden Pair") to get a puzzle that specifically requires that technique — useful when the user wants to practice a particular solving method. If no puzzle at the requested difficulty uses that technique, the error message lists which difficulties do have it. Use solve_sudoku for a full step-by-step solution, or explain_next_step to get one hint at a time. Every response includes a solve_url where the same puzzle can be continued in the interactive solver.
输入模式
{
"type": "object",
"properties": {
"difficulty": {
"type": "string",
"enum": [
"easy",
"medium",
"hard",
"expert",
"evil"
],
"description": "Puzzle difficulty. Choose based on the user's skill level."
},
"technique": {
"type": "string",
"description": "Optional technique name to filter by (e.g. \"X-Wing\", \"Hidden Pair\", \"Naked Triple\"). The returned puzzle will require this technique to solve. Omit for a random puzzle of the given difficulty."
}
},
"required": [
"difficulty"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢solve_sudoku(puzzle)
Solve a sudoku puzzle completely with step-by-step logical deduction. Input: 81-character string of digits (0 or . for empty cells). Whitespace is tolerated. Returns: every solving step with technique name + human-readable explanation + action, the final solution string, a technique summary (counts), and tutorial links. Only uses logical techniques — never guesses. If the puzzle cannot be solved logically, the steps will end before completion. Use this when the user wants to understand how to solve a puzzle from scratch. The response includes a solve_url for continuing the same board interactively and tutorial_links for techniques used in the solution.
输入模式
{
"type": "object",
"properties": {
"puzzle": {
"type": "string",
"description": "81-character sudoku string. Digits 1–9 for given cells, 0 or . for empty. Whitespace is ignored."
}
},
"required": [
"puzzle"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢explain_next_step(puzzle, progress)
Get the next logical solving step for a sudoku puzzle, optionally from a partially-filled state. TWO-BOARD MODE (puzzle + progress) — use when you know both the original clue grid and the user's current work: puzzle: the original 81-char clue string (the given digits only, 0/. for empty cells). progress: the user's current 81-char board — must keep all original clue digits in place. This mode detects incorrect entries: if any user-filled cell contradicts the solution, the tool returns incorrect_cells instead of a step hint, so the user can correct errors before continuing. Use this when the user is solving a puzzle they received from get_sudoku_puzzle (puzzle is known). SINGLE-BOARD MODE (puzzle only, no progress) — use when the original clue grid is unknown (e.g. photo OCR): Pass the user's current full board as puzzle with no progress argument. The tool treats the board as both the clue grid and the current state, so it will not perform error checking (it cannot distinguish given digits from user entries). It simply returns the next logical step. Use this when you cannot separate the original clues from the user's entries. Returns: { technique, explanation, action, tutorial_links } on success, or { incorrect_cells, message } if errors found. Use this for step-by-step coaching — one hint at a time. Every response includes a solve_url for continuing the same board interactively and, on success, tutorial_links for the named technique.
输入模式
{
"type": "object",
"properties": {
"puzzle": {
"type": "string",
"description": "Original 81-char sudoku clue string (0 or . for empty cells)."
},
"progress": {
"type": "string",
"description": "Current board state (81-char string). Clue cells must remain unchanged. Optional — omit to get the very first hint."
}
},
"required": [
"puzzle"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_progress(puzzle, progress)
Check a user's current progress against the correct solution. Returns factual information only: whether the puzzle is complete, whether all filled cells are correct, which cells are incorrect (with the entered digit), and how many cells remain empty. Does not give hints or coaching — use explain_next_step for that. Use this when the user asks "am I done?" or "did I make any mistakes?" Every response includes a solve_url where the same puzzle can be continued in the interactive solver.
输入模式
{
"type": "object",
"properties": {
"puzzle": {
"type": "string",
"description": "Original 81-char sudoku clue string (0 or . for empty cells)."
},
"progress": {
"type": "string",
"description": "Current 81-char board state to check."
}
},
"required": [
"puzzle",
"progress"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据