Threadmap Mcp

io.github.Advertflair由 GitHub 账号 Advertflair 发布v1.0.0更新于 Nov 3, 2026

Conversation drift visualization for Claude. Color-coded inflection points and one-click forking.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

追踪 Claude Code 对话的偏离程度,为每条消息按原始意图打分,并可从任意节点分叉出干净的分支。

可以做什么
  • 在指定会话中记录消息,获得偏离分数与颜色标记
  • 查看整段对话的彩色时间线地图
  • 从任意消息序号分叉出命名分支
  • 为分支提取干净的上下文摘要,便于交接
  • 查看当前偏离状态、归档并重置会话、显示颜色图例
适用场景
适合 Claude Code 长会话逐渐偏离最初目标时,用来定位转折点并从干净上下文重新开始。也适合在团队交接前整理已确定的决策。
运行要求
通过 npx threadmap-mcp 以 stdio 在本地运行,需要 Node.js 与 npx。未声明任何账号、API 密钥、环境变量或请求头。README 说明可添加到 Claude Code 或 Claude 桌面端配置文件中。
安装前请注意
传给追踪工具的对话内容会按会话 ID 保存在本机,请勿在受追踪的消息中粘贴机密信息。分叉与重置工具会创建分支、归档会话,改变已保存的会话状态。另附的 Chrome 扩展需开启开发者模式,并会注入 claude.ai 页面。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Threadmap Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

🗺️ ThreadMap MCP for Claude

Conversation drift visualization and forking for Claude.

Stop losing your original intent. See exactly where your conversation drifted. Fork from any point and pick up with clean context.


See it in action

Color dots on every message — live drift tracking:

[ThreadMap drift dots demo]

Timeline panel with fork buttons at every inflection point:

[ThreadMap timeline panel]


Two ways to use ThreadMap

MCP ServerChrome Extension
Works inClaude Code (terminal)claude.ai (browser)
Installclaude mcp add threadmap npx threadmap-mcpLoad unpacked from chrome-extension/ folder
What you get7 tools — track, timeline, fork, branchColor dots on every message, timeline panel, one-click fork
Best forDevelopers building with Claude CodeAnyone using claude.ai daily

Both are in this repo. Use one or both.


Chrome Extension — Visual dots in claude.ai

The Chrome extension injects ThreadMap directly into the claude.ai interface. No config. Just install and open Claude.

Install (2 minutes)

1. Clone or download this repo2. Open Chrome → chrome://extensions3. Enable Developer mode (top right toggle)4. Click Load unpacked → select the chrome-extension folder5. Open any Claude conversation — ThreadMap activates automatically

What you see

  • Color dot next to every message showing drift % from your original intent
  • Sticky bar at the top with live drift status and message count
  • ↺ rescan — loads all messages from long previous conversations
  • timeline — full conversation map, click any row to jump to that message
  • ⑂ fork — opens a new Claude chat with full context pre-loaded in the input

How forking works

  1. Click ⑂ fork in the timeline or next to any message bubble
  2. A new claude.ai tab opens automatically
  3. The full context (origin intent + all messages up to that point) is pasted into the input
  4. Review and hit Send — Claude picks up from the clean version

Chrome extension files

chrome-extension/├── manifest.json     — Extension config (Manifest v3)├── content.js        — Core drift engine + DOM injection├── threadmap.css     — All injected styles├── popup.html        — Extension popup with color legend├── icon16.png        — Icons├── icon48.png└── icon128.png

Heads up: The extension uses Developer mode (load unpacked). A Chrome Web Store version is on the roadmap.


MCP Server — Claude Code integration

The MCP server adds 7 tools to Claude Code for programmatic drift tracking.

Install

bash
claude mcp add threadmap npx threadmap-mcp

Or manually add to ~/.claude/claude_desktop_config.json:

json
{  "mcpServers": {    "threadmap": {      "command": "npx",      "args": ["threadmap-mcp"]    }  }}

Quick start

threadmap_track(sessionId="myproject", role="user", content="build me a login system with JWT auth")→ 🔵 Blue — Drift: 0% — Origin intent set
threadmap_track(sessionId="myproject", role="user", content="the refresh token keeps expiring after 30 seconds")→ 🟠 Orange — Drift: 63% — ⚡ INFLECTION POINT detected
threadmap_timeline(sessionId="myproject")→ Full color-coded map of all messages with fork instructions
threadmap_fork(sessionId="myproject", messageIndex=6, branchName="jwt-debug")→ 🌿 Branch created — clean context from messages 1–7

All 7 tools

ToolWhat it does
threadmap_trackTrack a message, get drift score + color
threadmap_timelineFull color-coded conversation map
threadmap_forkFork from any message index
threadmap_branch_contextClean context packet for any branch
threadmap_statusQuick current drift check
threadmap_resetArchive thread, start fresh
threadmap_legendShow color reference guide

Color system

ColorDriftMeaning
🔵 Blue0–15%On track — core intent
🟢 Green16–35%Productive expansion
🟡 Yellow36–55%Adjacent drift
🟠 Orange56–72%Inflection point — meaningful pivot
🔴 Red73–88%Full context break
🟣 Purple89–95%Meta — talking about the conversation
⚪ White96–100%Resolution

Orange and Red = fork candidates. The conversation has left your original intent behind.


Real-world use cases

Claude Code — architecture integrity Track every message while building. Orange = scope creep. Fork before the drift gets worse. Architecture decisions from the first 10 messages stay clean.

Long previous conversations Click ↺ rescan in the Chrome extension. ThreadMap scrolls to the top, loads all messages, scans every one, then returns you to the bottom — all dots appear.

Team handoffs Use threadmap_branch_context to extract a clean summary of what was decided. Paste it into a new session — no scrolling through 200 messages.


Why open source?

Non-linear conversation navigation is the missing primitive for AI-native work. Right now Claude conversations are books with no table of contents, no chapters, no bookmarks.

ThreadMap is the table of contents. If this becomes the standard, it travels across Claude, GPT, Gemini, anything. Nobody owns it. Everybody benefits.


Roadmap

  • Local embedding model (MiniLM) for richer semantic scoring
  • Chrome extension on Chrome Web Store (no developer mode required)
  • Cross-session persistence (SQLite mode)
  • Visual timeline export (SVG/HTML)
  • GPT / Gemini compatibility

Contributing

MIT licensed. See CONTRIBUTING.md.

bash
git clone https://github.com/Advertflair/threadmap-mcpcd threadmap-mcpnpm installnpm run build

PRs welcome especially for: better drift scoring, Chrome extension improvements, and other AI platform support.


License

MIT — see LICENSE


Built by Advertflair. Open source. Ship it.

来源:README.md,提交 9bfa530

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分