Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Governed graph-native agent memory: knowledge extraction, fusion, hybrid RAG, scoped access tokens.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GCTRL_GATEWAY_URL, GCTRL_API_URL, GCTRL_API_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"gctrl": {
"command": "npx",
"args": [
"-y",
"gctrl-mcp"
],
"env": {
"GCTRL_GATEWAY_URL": "your-value",
"GCTRL_API_URL": "your-value",
"GCTRL_API_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add gctrl --env GCTRL_GATEWAY_URL=your-value --env GCTRL_API_URL=your-value --env GCTRL_API_TOKEN=your-value -- npx -y gctrl-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"gctrl": {
"command": "npx",
"args": [
"-y",
"gctrl-mcp"
],
"env": {
"GCTRL_GATEWAY_URL": "your-value",
"GCTRL_API_URL": "your-value",
"GCTRL_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"gctrl": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gctrl-mcp"
],
"env": {
"GCTRL_GATEWAY_URL": "your-value",
"GCTRL_API_URL": "your-value",
"GCTRL_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
GCTRL_GATEWAY_URL envGCTRL_API_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 GCTRL-TECH 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GCTRL_API_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.2.0)于2个月前进入注册中心。
支持 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、图片和脚本已被移除。链接会离开本站。
Exposes Ground Control's knowledge management as MCP tools for Claude and other AI agents.
| Tool | Description |
|---|---|
gctrl_extract | Extract knowledge from text → Neo4j entities + Qdrant vectors |
gctrl_query | Ask questions about knowledge graphs (hybrid RAG) |
gctrl_search_entities | Search for specific entities by name/type |
gctrl_list_graphs | List all knowledge graph compilations |
gctrl_fuse | Merge extraction jobs into unified graphs |
gctrl_list_ontologies | List available ontologies |
gctrl_list_extractions | List recent extraction jobs |
gctrl_store | Store knowledge (like Obsidian notes, but with KG extraction) |
gctrl_schema | Get the knowledge graph schema |
gctrl_code_index | Index a local repo into a Codebase KB (compilation type CODE). Direct mode only (it indexes THIS machine, so a gateway cannot serve it) and needs the optional gctrl-code-indexer package - without it the tool returns an install hint and every other tool keeps working. |
gctrl_code_symbol | Find code symbols by name/path/regex (proxied to the HTTP gateway) |
gctrl_code_trace | Trace callers/callees of a symbol (proxied to the HTTP gateway) |
gctrl_code_impact | Impact analysis for changed symbols/files (proxied to the HTTP gateway) |
gctrl_code_architecture | Languages, hotspots, communities for a Codebase KB (proxied to the HTTP gateway) |
Every tool above is also exposed under its legacy name for backwards compatibility with existing .mcp.json configs. The aliases log a deprecation warning to stderr on every invocation and will be removed in v2.0 — please migrate.
| Deprecated alias | Use instead |
|---|---|
borghive_extract | gctrl_extract |
borghive_query | gctrl_query |
borghive_store | gctrl_store |
borghive_fuse | gctrl_fuse |
borghive_search_entities | gctrl_search_entities |
borghive_list_graphs | gctrl_list_graphs |
borghive_list_ontologies | gctrl_list_ontologies |
borghive_list_extractions | gctrl_list_extractions |
borghive_schema | gctrl_schema |
Published on npm as gctrl-mcp and in the official MCP Registry as io.github.GCTRL-TECH/gctrl. Add to your MCP client config (Claude Code, Claude Desktop, Cursor, Codex, …):
{
"mcpServers": { "gctrl": { "command": "npx", "args": ["-y", "gctrl-mcp"], "env": { "GCTRL_GATEWAY_URL": "http://localhost:4000/api/agent/mcp", "GCTRL_API_TOKEN": "gctrl_..." } } } }
Requires a running GCTRL harness (get started).
Run the server in direct mode next to your gateway entry so the agent gets the local code tools, and let it keep the repository's Codebase KB current on its own:
{
"mcpServers": { "gctrl": { "command": "npx", "args": ["-y", "gctrl-mcp"], "env": { "GCTRL_GATEWAY_URL": "https:// /api/agent/mcp", "GCTRL_API_TOKEN": "gctrl_..." } }, "gctrl-code": { "command": "npx", "args": ["-y", "gctrl-mcp"], "env": { "GCTRL_API_URL": "https:// /api", "GCTRL_API_TOKEN": "gctrl_...", "GCTRL_MCP_TOOLS": "code", "GCTRL_CODE_AUTO_INDEX": "cwd" } } } }
With GCTRL_CODE_AUTO_INDEX=cwd the server indexes the directory the MCP client launched it in (incremental - a warm repo takes seconds) right after start-up, and the agent's first gctrl_code_symbol hits a current graph. The server's instructions carry the coding protocol every connected agent follows: index once per session, navigate through gctrl_code_symbol / gctrl_code_trace / gctrl_code_architecture BEFORE reading files, run gctrl_code_impact before changing a symbol, re-index after larger edits, ask gctrl_query for the why and store decisions next to the symbols with gctrl_store. Measured on GCTRL's own repository: structural questions answered through the graph used 95.6 % fewer tokens than grep-and-read.
| Env var | Purpose |
|---|---|
GCTRL_GATEWAY_URL | Recommended: URL of your harness's MCP gateway (http:// :4000/api/agent/mcp). The stdio server acts as a thin authenticated proxy. |
GCTRL_API_URL | Alternative direct mode: GCTRL API base URL (http:// :4000/api); tools run locally against the API. |
GCTRL_API_TOKEN | Scoped GCTRL Access Token (gctrl_…), created in Settings → Access Control with a clearance level + per-graph grants. Least privilege — the agent sees exactly what the token is cleared for. |
GCTRL_MCP_TOOLS | Optional tool-set filter. Set to code to register only the local code tools (gctrl_code_index, gctrl_code_symbol, gctrl_code_trace, gctrl_code_impact, gctrl_code_architecture) — used for the Anvil/Hermes gctrl-code stdio entry, kept separate from the HTTP-gateway gctrl/gctrl-projekt entries. Direct mode only: in gateway mode the gateway's own tool list is proxied verbatim, so the filter has no effect and the server says so on startup. |
| GCTRL_CODE_AUTO_INDEX | Direct mode: cwd (or a repository path) indexes that repository in the background right after start-up - incremental, never fatal. Makes the Codebase KB automatic instead of a habit. | | GCTRL_CODE_COMPILATION_ID | Direct mode: the CODE compilation gctrl_code_index uses when the agent passes none (one project = one repo = one code graph). An explicit compilationId from the agent still wins. | | GCTRL_CODE_FOLDER | Direct mode: folder path (Users/ /Code) for a code graph the server auto-creates as (code). Hosts that launch the server per user (Anvil) set it so every colleague's code lands in their own folder; without it GCTRL files under the account owner's Users/ /Code. |
Dev-only fallback: GCTRL_EMAIL + GCTRL_PASSWORD (full-clearance JWT). Avoid in production.
cd borghive/services/mcp
npm install npm run build
gctrl-code-indexer is an optional dependency and is not on npm yet, so a plain npm install here will not fetch it. To develop or test gctrl_code_index against the in-repo package, link it once:
cd borghive/packages/code-indexer && npm ci && npm run build
cd ../../services/mcp && npm install ../../packages/code-indexer --no-save
The server's types for the indexer are declared locally, so npm run build passes with or without the package installed - the difference is only whether gctrl_code_index works at runtime or returns its install hint.
gctrl-mcp and gctrl-code-indexer are two npm packages and must go out in this order:
gctrl-code-indexer@0.1.0.optionalDependencies in services/mcp/package.json to a real registry range (it already reads ^0.1.0; confirm it resolves) and re-run npm install.gctrl-mcp to 1.1.0 (package.json + package-lock.json root).gctrl-mcp.Bumping gctrl-mcp BEFORE the indexer is on npm would break npx gctrl-mcp for every existing user - which is exactly why the version sits at 1.0.1 today.