cot-widget-spike
Enables users to visualize and interact with Claude's chain-of-thought reasoning from extended thinking traces, turning them into interactive reasoning maps with typed moves, dependency graphs, timelines, and replay mode.
README
CoT Reasoning Map
Learn from Claude's chain of thought. An MCP App (SEP-1865) for Claude Code that turns extended-thinking traces into interactive reasoning maps — typed moves (framing, hypothesis, verification, backtrack, self-correction, insight, action, conclusion) laid out as a graph with dependency and discard edges, an effort timeline, replay mode, and click-through to the verbatim CoT excerpts.
No API key needed: the Claude session you're already running does the annotation.
How it works
list_sessions— finds recent Claude Code transcripts (~/.claude/projects/**/*.jsonl) containing thinking blocksget_thinking— extracts the numbered thinking blocks + tool-call skeleton from a session- The calling Claude annotates the thinking into typed moves with verbatim excerpts
show_reasoning_map— renders the moves as an interactive widget inline in the chat (Claude Code desktop app / claude.ai; text fallback in the terminal CLI)
Say things like: "map the reasoning of my last session" or "show me a demo reasoning map" (no-args call renders sample data).
Install
Requires 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"
Restart Claude Code and ask for a reasoning map.
Development
server.js— MCP server (stdio;npm run serve:httpfor Streamable HTTP on :3001)mcp-app.html+src/mcp-app.js— the widget (Appfrom@modelcontextprotocol/ext-apps)npm run build— bundles todist/mcp-app.html(vite-plugin-singlefile)node test-client.js— protocol smoke test over stdio
Status / roadmap
Working: ingestion, host-model annotation loop, graph + timeline + replay + excerpts, verified inline rendering in Claude Code desktop. Next: live session following via hooks, pattern library across traces, predict-the-next-move replay, claude.ai deployment.
MIT licensed.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.