mcp-sequentialthinking-tools
mcp-sequentialthinking-tools
逐次的な推論ステップを記録するための軽量なMCPサーバーです。これは、履歴、ブランチ、リビジョンメタデータ、およびモデルが作成したツールプランのオプションの検証機能を備えたスクラッチパッドです。
このサーバーは、他のMCPツールを自動的に検出したり、モデルのためにツールを選択したりすることはありません。available_tools と recommended_tools を渡すと、サーバーは推奨された名前が存在するかどうかを検証し、そのステップを保存します。
なぜこれを使うのか?
明示的で検証可能な推論がタスクに役立つ場合に使用してください:
複雑な問題をステップに分解する
プランの修正や分岐を行う
セッションごとに小さな推論履歴を保持する
提供されたツールリストに対してツールプラン名を検証する
長いエージェント実行中に推論履歴をクリアまたは確認する
些細なリクエストには使用しないでください。オーバーヘッドが増加します。
Related MCP server: Sequential-Thinking
ツール
sequentialthinking_tools
思考を1つ記録します。
必須パラメータ:
thought— 現在の推論ステップthought_number— 現在のステップ番号total_thoughts— 現在の推定値。thought_numberより小さい場合は自動的に引き上げられますnext_thought_needed— 次の思考が必要かどうか
オプションパラメータ:
session_id— 履歴バケット。デフォルトはdefaultis_revision,revises_thoughtbranch_from_thought,branch_idneeds_more_thoughtsavailable_tools— ツール名の配列、または{ name, description }オブジェクトrecommended_tools— 検証/保存するためのモデル作成による推奨事項remaining_steps— 今後のステップの短いリスト
例:
{
"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
}
]
}recommended_tools に available_tools に存在しない名前が含まれている場合、呼び出しは isError: true を返し、思考は保存されません。
セキュリティ体制
このサーバーは、思考テキスト、ツール説明、根拠、および残りのステップのテキストを信頼できない入力として扱います。プロンプトインジェクションのようなテキストはスキャンされ、保存または履歴で返される前に編集(削除)されます。編集が行われた呼び出しには、どのフィールドが一致したかを示す security_warnings が含まれます。
これは防御的なフィルタリングであり、任意の敵対的テキストが安全であることを保証するものではありません。思考やツールの説明に秘密情報を含めないでください。
get_thinking_history
セッションの保存された思考を返します。
パラメータ:
session_id— デフォルトはdefaultbranch_id— オプションのブランチフィルタlimit— 返すレコードの最大数。デフォルトは50、最大は500
clear_thinking_history
1つのセッションまたはすべてのセッションをクリアします。
パラメータ:
session_id— デフォルトはdefaultall_sessions— すべての履歴バケットをクリアする
プロンプト
sequential-thinking-guidance
このサーバーを外部の推論エンジンとしてではなく、スクラッチパッドおよびバリデーターとして誠実に使用する方法をモデルに伝える短いプロンプトです。
設定
Claude Desktop / 互換性のあるMCPクライアント
{
"mcpServers": {
"mcp-sequentialthinking-tools": {
"command": "npx",
"args": ["-y", "mcp-sequentialthinking-tools"],
"env": {
"MAX_HISTORY_SIZE": "1000"
}
}
}
}MAX_HISTORY_SIZE はセッションごとで、デフォルトは 1000 です。
このサーバーは tmcp を使用しており、標準の Content-Length でフレーム化されたMCPメッセージと、古い tmcp ツールで使用される改行区切りのJSONの両方を受け入れる小さなstdioトランスポートが含まれています。
開発
pnpm install
pnpm test
pnpm build
pnpm checkこのプロジェクトは、ビルド、テスト、フォーマット、およびリントのオーケストレーションに vite-plus を使用しています。
公開
pnpm changeset
pnpm changeset version
pnpm releaseライセンス
MIT License — LICENSE を参照してください。
謝辞
Model Context Protocol に基づいて構築されています
MCP Sequential Thinking Server から適応されました
Available Tools
3 toolsclear_thinking_historyClear recorded sequential-thinking history for one session or all sessions.C
Clear recorded sequential-thinking history for one session or all sessions.
Inputs: session_id, all_sessions.
get_thinking_historyReturn recorded thoughts for a session. Use this to inspect or resume prior reasoning.C
Return recorded thoughts for a session. Use this to inspect or resume prior reasoning.
Inputs: limit, branch_id, session_id.
sequentialthinking_toolsRecord one step of sequential reasoning. Optionally include available_tools and recommended_tools; recommendations are validated, not generated, by this server.C
Record one step of sequential reasoning. Optionally include available_tools and recommended_tools; recommendations are validated, not generated, by this server.
Inputs: thought (required), thought_number (required), total_thoughts (required), next_thought_needed (required), +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools map cleanly to distinct actions on the same resource: write a thought, read the history, and clear it. There is no overlap or risk of misselection between recording, retrieving, and clearing.
get_thinking_history and clear_thinking_history follow a consistent verb_noun pattern, but sequentialthinking_tools breaks it entirely, using a compound noun with no verb and no clear action cue. The mix is readable but not uniform.
Three tools is lean but adequate for a reasoning-history server covering write, read, and clear. It is on the thin side, with no session-listing or search capability to round it out.
The record/get/clear trio covers the basic lifecycle of a thinking log with no dead ends. Minor gaps exist, such as listing sessions or fetching a single thought by id, which agents could work around.
Maintenance
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for generating rough-draft project plans from natural-language prompts.
Hybrid human + AI expertise for faster, trusted answers and decisions via MCP Server.
Related MCP Servers
- AlicenseAqualityBmaintenanceThis server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.577 PyPI962MIT
- AlicenseAqualityDmaintenanceA MCP server that implements sequential thinking protocols, provides structured problem-solving methods, decomposes complex problems into manageable steps, and supports iterative optimization and alternative reasoning paths.12Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA sequential thinking tool based on the MCP protocol, used to break down complex problems into manageable steps and provide intelligent tool recommendations for each step.2Apache 2.0
- AlicenseAqualityDmaintenanceA structured problem-solving MCP server that breaks down complex tasks into sequential steps, supports iterative refinement and branching, and helps maintain context and explore alternative reasoning paths.141MIT