SM

spences10/mcp-sequentialthinking-tools

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

587 stars 81 forks 质量 86 趋势 20MIT

🧠 对MCP顺序思维服务器的调整,用于指导工具的使用。该服务器提供在各阶段最有效的MCP工具推荐。

概览

一个轻量级MCP服务器,用于记录顺序推理步骤。它是一个带有历史、分支、修订元数据以及可选验证的模型自述工具计划的临时文件。 它会发现你的其他MCP工具,并为模型选择工具。如果你通过available_tools和recommended_tools,服务器会验证推荐名称的存在并存储步骤。 当任务受益于明确且可检查的推理时,使用此方法: - 将复杂问题拆解为步骤;- 修订或分支计划;- 按会话保持小型推理历史;- 验证工具计划名称与提供的工具列表;- 在长时间代理运行中清除或检查推理历史。 不要用它来处理琐碎的请求。这会增加开销。

概述(AI 翻译)

一个用于记录顺序推理步骤的轻量级MCP服务器。它 是一个带有历史、分支、修订元数据的草稿本,以及 模型自制工具计划的可选验证。

它不会发现你的其他MCP工具,而且它不会 为模型选择工具。如果你通过available_tools 和 recommended_tools,服务器会验证推荐名称 存在并存储该步骤。

为什么要用它?

当任务受益于明确且可检查的推理时,使用此方法:

  • 将混乱的问题拆解为多个步骤;
  • 修改或分支计划;
  • 按会话保持一个简短的推理历史;
  • 验证工具计划名称与提供的工具列表;
  • 在长时间代理运行中清除或检查推理历史。

不要用它来处理琐碎的请求。这会增加开销。

工具

sequentialthinking_tools

记录一个想法。

所需参数:

  • thought — 当前推理步骤
  • thought_number — 当前步数
  • total_thoughts — 当前估计;若低于,则自动提高 比thought_number
  • next_thought_needed — 是否需要另一个思考

可选参数:

  • session_id — 历史桶;默认为 default

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mcp-sequentialthinking-tools

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 and recommended_tools, the server validates that the recommended names exist and stores the step.

Why use it?

Use this when a task benefits from explicit, inspectable reasoning:

  • breaking a messy problem into steps;
  • revising or branching a plan;
  • keeping a small reasoning history by session;
  • validating tool-plan names against a supplied tool list;
  • clearing or inspecting reasoning history during a long agent run.

Do not use it for trivial requests. It adds overhead.

Tools

sequentialthinking_tools

Records one thought.

Required parameters:

  • thought — current reasoning step
  • thought_number — current step number
  • total_thoughts — current estimate; automatically raised if lower than thought_number
  • next_thought_needed — whether another thought is needed

Optional parameters:

  • session_id — history bucket; defaults to default
  • is_revision, revises_thought
  • branch_from_thought, branch_id
  • needs_more_thoughts
  • available_tools — array of tool names or { name, description } objects
  • recommended_tools — model-authored recommendations to validate/store
  • remaining_steps — short list of upcoming steps

Example:

{
	"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 in available_tools, the call returns isError: true and does not store the thought.

Security posture

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.

在 GitHub 查看完整 README

安装

npx -y mcp-sequentialthinking-tools
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-sequentialthinking-tools": { "command": "npx", "args": ["-y", "mcp-sequentialthinking-tools"], "env": { "MAX_HISTORY_SIZE": "1000" } } } }