An adaptation of the MCP Sequential Thinking Server to guide tool usage. This server provides recommendations for which MCP tools would be most effective at each stage.。主要特性包括:breaking a messy problem into steps;、revising or branching a plan;、keeping a small reasoning history by session;。还包含 2 个其他特性。
An adaptation of the MCP Sequential Thinking Server to guide tool usage. This server provides recommendations for which MCP tools would be most effective at each stage.。主要特性包括:breaking a messy problem into steps;、revising or branching a plan;、keeping a small reasoning history by session;。还包含 2 个其他特性。
A lightweight MCP server for recording sequential reasoning steps. It
is a scratchpad with history, branching, revision metadata, and
optional validation for model-authored tool plans.
It does not discover your other MCP tools and it does not
choose tools for the model. If you pass available_tools andrecommended_tools, the server validates that the recommended names
exist and stores the step.
Use this when a task benefits from explicit, inspectable reasoning:
Do not use it for trivial requests. It adds overhead.
sequentialthinking_toolsRecords one thought.
Required parameters:
thought — current reasoning stepthought_number — current step numbertotal_thoughts — current estimate; automatically raised if lowerthought_numbernext_thought_needed — whether another thought is neededOptional parameters:
session_id — history bucket; defaults to defaultis_revision, revises_thoughtbranch_from_thought, branch_idneeds_more_thoughtsavailable_tools — array of tool names or { name, description }recommended_tools — model-authored recommendations toremaining_steps — short list of upcoming stepsExample:
{
"session_id": "svelte-debug",
"thought": "First inspect the route files, then run the failing check.",
"thought_number": 1,
"total_thoughts": 3,
"next_thought_needed": true,
"available_tools": ["read", "bash"],
"recommended_tools": [
{
"tool_name": "read",
"confidence": 0.9,
"rationale": "Need to inspect the relevant files before editing.",
"priority": 1
}
]
}
If recommended_tools contains a name not present inavailable_tools, the call returns isError: true and does not store
the thought.
The server treats thought text, tool descriptions, rationales, and
remaining-step text as untrusted input. Prompt-injection-like text is
scanned and redacted before it is stored or returned in history. Calls
with redactions include security_warnings showing which fields
matched.
This is defensive filtering, not a guarantee that arbitrary
adversarial text is safe. Do not put secrets in thoughts or tool
descriptions.
get_thinking_historyReturns stored thoughts for a session.
Parameters:
session_id — defaults to defaultbranch_id — optional branch filterlimit — max records to return; default 50, max 500clear_thinking_historyClears one session or every session.
Parameters:
session_id — defaults to defaultall_sessions — clear all history bucketssequential-thinking-guidanceA short prompt that tells the model how to use this server honestly:
as a scratchpad and validator, not as an external reasoning engine.
{
"mcpServers": {
"mcp-sequentialthinking-tools": {
"command": "npx",
"args": ["-y", "mcp-sequentialthinking-tools"],
"env": {
"MAX_HISTORY_SIZE": "1000"
}
}
}
}
MAX_HISTORY_SIZE is per session and defaults to 1000.
The server uses tmcp and includes a small stdio transport that
accepts both standard Content-Length framed MCP messages and
newline-delimited JSON used by older tmcp tooling.
pnpm install
pnpm test
pnpm build
pnpm check
This project uses vite-plus for build, test, format, and lint
orchestration.
pnpm changeset
pnpm changeset version
pnpm release
MIT License — see LICENSE.
# 克隆仓库
git clone https://github.com/spences10/mcp-sequentialthinking-tools
# 进入目录
cd mcp-sequentialthinking-tools
# 查看文档
cat README.md