cot-widget-spike
CoT 推論マップ
Claude の思考連鎖から学ぶ。拡張思考トレースをインタラクティブな推論マップに変換する、Claude Code 向け MCP アプリ (SEP-1865) — 型付きムーブ(フレーミング、仮説、 検証、バックトラック、自己修正、洞察、アクション、結論)を依存関係エッジと破棄エッジを持つグラフ、努力タイムライン、リプレイモード、 そして CoT の逐語的な抜粋へのクリックスルーとしてレイアウトします。
API キーは不要です。すでに実行中の Claude セッションがアノテーションを行います。
仕組み
list_sessions— 思考ブロックを含む最近の Claude Code トランスクリプト (~/.claude/projects/**/*.jsonl) を検索しますget_thinking— セッションから番号付きの思考ブロックとツール呼び出しスケルトンを抽出します呼び出し元の Claude が思考を型付きムーブと逐語的な抜粋にアノテーションします
show_reasoning_map— ムーブをチャット内にインラインでインタラクティブウィジェットとしてレンダリングします (Claude Code デスクトップアプリ / claude.ai; ターミナル CLI ではテキストフォールバック)
「最後のセッションの推論をマップして」や「デモの推論マップを見せて」のように言ってください (引数なしの呼び出しではサンプルデータをレンダリングします)。
Related MCP server: Sequential Thinking MVP Server
インストール
Node 18+ が必要です。
git clone https://github.com/matanma12/cot-widget-spike.git
cd cot-widget-spike
npm install && npm run build
claude mcp add cot-spike --scope user -- node "$(pwd)/server.js"Claude Code を再起動し、推論マップを依頼してください。
開発
server.js— MCP サーバー(stdio; Streamable HTTP の場合はnpm run serve:httpで :3001 を使用)mcp-app.html+src/mcp-app.js— ウィジェット(@modelcontextprotocol/ext-appsのApp)npm run build—dist/mcp-app.htmlにバンドル(vite-plugin-singlefile)node test-client.js— stdio 経由のプロトコルスモークテスト
ステータス / ロードマップ
動作中: 取り込み、ホストモデルアノテーションループ、グラフ + タイムライン + リプレイ + 抜粋、Claude Code デスクトップでのインラインレンダリング確認済み。 次: フックによるライブセッションフォロー、トレース間のパターンライブラリ、次のムーブ予測リプレイ、claude.ai へのデプロイ。
MIT ライセンス。
This server cannot be deployed
Maintenance
Related MCP Connectors
- MindlifyOAuthco.mindlify
Turn AI conversations into visual knowledge maps. Create, connect, search, and organize thoughts.
Turn calls and notes into process flow diagrams in Claude, ChatGPT, VS Code, Cursor, and Teams.
Turn grounded AI answers into trusted comparisons, plans, timelines, and decision views.
Interactive data visualization and executive PDF dashboards for ChatGPT, Claude, and Cursor.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceProvides structured sequential thinking capabilities for AI assistants to break down complex problems into manageable steps, revise thoughts, and explore alternative reasoning paths.29-
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants to perform structured, step-by-step reasoning by breaking down complex problems into numbered thoughts, with support for revising previous steps and exploring alternative reasoning paths.5-
- AlicenseAqualityCmaintenanceEnables structured step-by-step reasoning with branching, revisions, and self-critique to help break down complex problems into manageable steps with confidence tracking and thought history search.78 npm7MIT
- AlicenseBqualityDmaintenanceProvides 10 structured reasoning strategies (Chain of Thought, ReAct, Tree of Thoughts, etc.) for complex problem-solving with session persistence, branching, and tool integration capabilities.38 npm28MIT