cot-widget-spike
CoT Reasoning Map
从 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;npm run serve:http用于在 :3001 上提供 Streamable HTTP)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