Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Branchable LLM history DAG + encrypted context capsules agents can save, restore, and crypto-shred.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"forkmind": {
"command": "npx",
"args": [
"-y",
"forkmind"
]
}
}
}在终端中运行这条命令
claude mcp add forkmind -- npx -y forkmind粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"forkmind": {
"command": "npx",
"args": [
"-y",
"forkmind"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"forkmind": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"forkmind"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Medhovarsh 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.9.0)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Treat your AI conversation history like a Git repository — capture every call, branch from any turn, and diff outcomes side by side. All on your machine.
Try in 10s · Features · Install · Quick start · MCP · Capsules
What you're seeing: the conversation DAG with a fork off the debug turn,
the node inspector (request/response, tokens, provenance), and the ⇄ Compare
view diffing two branches with per-token deltas. The green ● streaming
badge shows live capture — nodes appear as they're recorded.
ForkMind captures every LLM call into a local .forkmind/ directory, visualizes the conversation as a Directed Acyclic Graph (DAG), and lets you branch, diff, and replay from any point in the history. Works with any OpenAI-compatible API, defaulting to free, open-source models via Ollama — also Anthropic, Groq, OpenRouter, Together, vLLM, and LM Studio.
Static screenshot
Debugging agentic / tool-calling flows means re-running the same prompt with tiny tweaks over and over, then scrolling through terminal logs to see what changed. ForkMind records each run as a node in a conversation tree, so instead of re-reading logs you see the whole history, branch from any turn, and compare outcomes visually.
Everything is plain JSON on disk. No database, no account, no telemetry — nothing leaves your machine except the LLM call you were already making.
.forkmind/. Works from any language via an OpenAI-compatible proxy; streaming responses are reconstructed (text and fragmented tool-call args)..forkmind/ history mid-task (recall what they tried, trace how they got somewhere, self-correct).npx forkmind demo
No API key, no setup: the dashboard opens with a pre-seeded conversation DAG — a coding-agent debug session that forks into a failed fix and a winning fix, plus an archived context capsule. Everything lives in a throwaway temp directory; your project is never touched. If a local Ollama is running, Fork from here works live against your local model.
Once you're in, try:
# Run without installing (published on npm)
npx forkmind init npx forkmind start
npm install -g forkmind forkmind start
No npm registry needed either — ForkMind runs straight from the git link, and the dashboard builds automatically on install:
# Run without installing, from GitHub
npx github:medhovarsh/forkmind init npx github:medhovarsh/forkmind start
git clone https://github.com/medhovarsh/forkmind cd forkmind && npm install
ForkMind ships a Claude Code plugin (skill + /forkmind command) so Claude knows when and how to drive it — same install flow as any marketplace plugin:
/plugin marketplace add Medhovarsh/forkmind
/plugin install forkmind
The plugin bundles:
.forkmind/ history (recall attempts, trace lineage, self-correct) with zero manual config.The CLI is still what runs the proxy + dashboard; the plugin is the glue that teaches Claude to use it.
# 1. Install a free local model
ollama pull llama3
npx github:medhovarsh/forkmind init # create .forkmind/ in your project npx github:medhovarsh/forkmind start # proxy on http://localhost:4500 + dashboard
open http://localhost:4500
npm i openai # the wrapper extends the official SDK
const { ForkMindOpenAI } = require('forkmind');
const client = new ForkMindOpenAI({ apiKey: 'ollama', // ignored by Ollama; required by SDK upstream: 'http://localhost:11434', // free local open-source models });
// Each call is recorded; sequential calls auto-chain into a conversation tree. const res = await client.chat.completions.create({ model: 'llama3', messages: [{ role: 'user', content: 'Explain backpropagation simply.' }], });
Run the full example:
node examples/chain.js
The SDK wrapper is convenience, not a requirement. ForkMind's proxy speaks the OpenAI-compatible wire protocol, so capture works from *any* language: set your client's base URL to http://localhost:4500/v1 and you're recorded. Chain turns into a tree by passing back the x-forkmind-node-id from the previous response as the next request's x-forkmind-parent header (the JS wrapper just automates this).
# Python — official openai client, zero ForkMind code
from openai import OpenAI
client = OpenAI(base_url="http://localhost:4500/v1", api_key="ollama") res = client.chat.completions.create( model="llama3", messages=[{"role": "user", "content": "Explain backpropagation simply."}], extra_headers={"x-forkmind-upstream": "http://localhost:11434"}, )
# curl — anything that can POST JSON
curl http://localhost:4500/v1/chat/completions \ -H 'content-type: application/json' \ -H 'x-forkmind-upstream: http://localhost:11434' \ -d '{"model":"llama3","messages":[{"role":"user","content":"hi"}]}' -i
x-forkmind-node-id: → pass as x-forkmind-parent next call
Go, Ruby, Rust, Java — same deal: base URL + the two headers. The dashboard, branching, MCP, and regression testing all work regardless of source language.
ForkMind ships thin adapters for the two biggest JS LLM ecosystems. Both route through the same proxy, so capture, branching, the dashboard, MCP, and regression all work unchanged — no model-class swap, no callbacks.
npm i @langchain/openai @langchain/core
const { ChatOpenAI } = require('@langchain/openai');
const { forkmind } = require('forkmind/langchain');
const fm = forkmind({ upstream: 'http://localhost:11434' }); // free local Ollama const model = new ChatOpenAI({ apiKey: 'ollama', model: 'llama3', configuration: fm.configuration, // baseURL → proxy + chaining fetch });
await model.invoke('Explain backpropagation simply.'); // sequential calls on fm auto-chain; fm.setParent(id) to branch from a node.
npm i ai @ai-sdk/openai
const { generateText } = require('ai');
const { forkmindOpenAI } = require('forkmind/vercel');
const openai = forkmindOpenAI({ upstream: 'http://localhost:11434' }); const { text } = await generateText({ model: openai('llama3'), prompt: 'Explain backpropagation simply.', }); // openai.setParent(id) / openai.resetParent() control the branch point.
Both honor FORKMIND_PROXY (proxy base URL) and take an explicit baseURL / upstream per instance.
ForkMind is provider-agnostic — it forwards your auth headers verbatim and lets you set the upstream per client. Anything OpenAI-compatible just works:
| Provider | upstream | apiKey |
|---|---|---|
| Ollama (local) | http://localhost:11434 | any string |
| LM Studio (local) | http://localhost:1234 | any string |
| Groq (free tier) | https://api.groq.com/openai | gsk_... |
| OpenRouter | https://openrouter.ai/api | sk-or-... |
| Together | https://api.together.xyz | your key |
| OpenAI | https://api.openai.com (default) | sk-... |
new ForkMindOpenAI({ apiKey: process.env.GROQ_API_KEY,
upstream: 'https://api.groq.com/openai' });
You can also override per request with the x-forkmind-upstream header if you call the proxy directly instead of
只显示了开头部分;其余内容请在仓库中阅读