
Gft Mcp
io.github.CoralLipsPublished by GitHub account CoralLipsv0.1.4Updated Oct 24, 2026
Bring your GFT (Git for Thought) white-box thinking map to any AI agent. 把你的思维脉络接给任何 agent。
Overview
Lets an assistant read and incrementally save the user's GFT (Git for Thought) thinking maps, so reasoning assets accumulate in the map.
- What you can do
- Connects an agent to the user's GFT thinking maps. It exposes commands to list maps, link the current conversation to one map, save new judgments from the conversation back into the map, and check or start login. Reads surface settled judgments, open questions and rejected directions; writes only append new nodes and never rewrite history, with a receipt of what was added. The package itself makes no AI calls and consumes no tokens; extraction is done by the user's own agent.
- When to use it
- Useful when someone already keeps thinking maps in GFT and wants an agent to work from those judgments and to store new conclusions back into the same map. It fits Claude Code, Cursor or any MCP-capable tool where the conversation should stay in the agent while the thinking assets stay in the map.
- Requirements
- Runs locally over stdio via npx, so Node.js 20 or newer is needed. No credentials are in the MCP configuration; login is done separately through a browser authorization page, and the resulting credential is stored locally under ~/.gft-mcp/. A GFT account and at least one existing map are needed. Optional environment variables GFT_WEB_URL, GFT_SUPABASE_URL and GFT_SUPABASE_ANON_KEY can override defaults.
Installation
In SourceWeft
- Open Gft Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
gft-mcp
把你在 GFT(Git for Thought) 确认过的思维脉络接给任何 AI agent—— Claude Code、Cursor,或任何支持 MCP 的工具。
用它们的 token,走 GFT 的规则。 对话发生在你的 agent 里,思考资产沉淀在你的图上。
- 🗺 读:agent 直接读到你已想通的判断、还悬着的问题、已否决的方向
- ✍️ 写:聊完说一句「存一下」,本场新判断增量长进图(只生长,不改写历史)
- 📬 知情:每次写入当场回执「加了什么」,新节点带未读标记,点开即消——不靠常驻视觉标
- 🔒 零转手:本包不调用任何 AI、不产生任何 token 消耗——推理全部由你的 agent 用你自己的额度完成
快速开始
Claude Code 用户(最推荐):装 plugin,一步全齐
装完重启,你会得到:
/gft:list、/gft:login—— 程序直答,秒回、零 token(UserPromptSubmit hook 拦截,不经过模型)/gft:link 图名、/gft:save—— 把图接进对话 / 把新判断存回图(AI 命令)- MCP server 自动配好,无需再手动
claude mcp add
方式一(推荐):把这段话贴给你的 AI
方式二:一行命令(Claude Code)
方式三:手动配置
把这段加进你的 MCP 配置文件(Claude Code:.mcp.json;Cursor:.cursor/mcp.json):
配置零凭证、所有人相同——登录在下一步,凭证只落在你本机 ~/.gft-mcp/。
需要 Node.js ≥ 20。配完重启你的 agent 生效。
登录
对 agent 说「登录 GFT」(或用 /gft:login 命令)——它会跑:
浏览器自动打开 GFT 授权页 → 点一下「授权接入」→ 完成。 密码不经过任何对话或终端;agent 拿到的是独立凭证,你浏览器里的登录不受影响。
还没有 GFT 账号?先去 gitforthought.com 聊一段、生成第一张思维脉络。
用法
装好后你的 agent 自动获得四个命令(MCP prompts,Claude Code 里也可用 /gft:* 短名):
不用命令也行,直接说人话:
「列一下我的 GFT 脉络」「带上『产品定位』那张图」「把刚才聊的存进脉络」
⚡ 零 AI 快速通道(不花 token、不等模型)
查名单、看图这类纯程序动作可以完全绕开 AI——终端直跑:
Claude Code 用户的妙用:在输入框用 ! 前缀跑(如 ! npx gft-mcp read 产品定位),
输出直接进入对话上下文——等于零 token 完成"链接"。
(save 没有零 AI 通道——从对话抽取判断本来就是模型的工作。)
写入规则由 GFT 端校验把关:只收用户真说过的判断、旧节点不可改写、时序不可倒挂——出格的提交会被打回并说明原因。
排错
给开发者
- 本包零 AI 调用:server 只做「验 / 存 / 供」(校验、增量合并、供图),抽取规则随
read(for_update)下发,由你的 agent 用自己的模型执行 - 在 GFT 仓库内运行时自动切换本地开发环境(授权页指
localhost:3000);GFT_WEB_URL/GFT_SUPABASE_URL/GFT_SUPABASE_ANON_KEY环境变量可覆盖一切默认值 - ⚠ 改
map.mjs的isOpen()必须同步 GFT 画布口径
MIT License · gitforthought.com
Source: README.md at commit 6932fd6
Tools
0Version history
1- v0.1.4LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.