Skip to main content
Glama
mcp-sequentialthinking-tools

mcp-sequentialthinking-tools

by spences10

mcp-sequentialthinking-tools

built with vite+ tested with vitest

逐次的な推論ステップを記録するための軽量な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 — 履歴バケット。デフォルトは default

  • is_revision, revises_thought

  • branch_from_thought, branch_id

  • needs_more_thoughts

  • available_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 — デフォルトは default

  • branch_id — オプションのブランチフィルタ

  • limit — 返すレコードの最大数。デフォルトは 50、最大は 500

clear_thinking_history

1つのセッションまたはすべてのセッションをクリアします。

パラメータ:

  • session_id — デフォルトは default

  • all_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 を参照してください。

謝辞

Available Tools

3 tools
clear_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

    B3/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency3/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A 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.
      1
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      2
      Apache 2.0