Gctrl

io.github.GCTRL-TECH由 GitHub 帳號 GCTRL-TECH 發布v1.2.0更新於 Oct 24, 2026

Governed graph-native agent memory: knowledge extraction, fusion, hybrid RAG, scoped access tokens.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

GCTRL MCP 伺服器把 Ground Control 受管控的知識圖譜記憶開放給 AI 助理:擷取知識、以混合 RAG 查詢圖譜、導覽程式碼

可以做什麼
從文字擷取知識並寫入圖實體與向量;以類似筆記的方式儲存知識並自動做知識圖譜擷取;合併擷取工作為統一圖譜,檢視圖譜結構與本體。以混合 RAG 對知識圖譜提問,依名稱或類型搜尋實體,列出圖譜與最近的擷取工作。把本機程式碼儲存庫索引為程式碼知識庫,依名稱、路徑或正規表示式尋找程式碼符號,追蹤呼叫端與被呼叫端,對變更的符號做影響分析,並彙整語言、熱點與社群。
適用情境
適合讓助理跨工作階段建立並查詢受管控的知識庫,或讓編碼代理透過程式碼圖譜而非逐檔搜尋來理解儲存庫。README 稱透過圖譜回答結構性問題所用的 token 明顯較少。
執行需求
透過 npx 從 npm 套件 gctrl-mcp 以 stdio 在本機執行,僅支援桌面用戶端。需要執行中的 GCTRL harness,並在 GCTRL_API_TOKEN 提供限定範圍的存取權杖;另需 GCTRL_GATEWAY_URL(建議的代理模式)或 GCTRL_API_URL(直連模式)。本機程式碼索引需要選用的 gctrl-code-indexer 套件。
安裝前請注意
存取權杖帶有建立時設定的權限等級與各圖譜授權,應以最小權限建立。README 列出僅供開發的 GCTRL_EMAIL 與 GCTRL_PASSWORD 備援方式,會取得完整權限的 JWT,並建議不要用於正式環境。多個工具會寫入資料:擷取、合併、儲存筆記與程式碼索引都會在你的 GCTRL 執行個體中建立或修改內容。程式碼索引會讀取本機儲存庫目錄,設定 GCTRL_CODE_AUTO_INDEX=cwd 時會在啟動後自動索引該目錄。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Gctrl,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Ground Control (GCTRL) MCP Server

Exposes Ground Control's knowledge management as MCP tools for Claude and other AI agents.

Tools Available

ToolDescription
gctrl_extractExtract knowledge from text → Neo4j entities + Qdrant vectors
gctrl_queryAsk questions about knowledge graphs (hybrid RAG)
gctrl_search_entitiesSearch for specific entities by name/type
gctrl_list_graphsList all knowledge graph compilations
gctrl_fuseMerge extraction jobs into unified graphs
gctrl_list_ontologiesList available ontologies
gctrl_list_extractionsList recent extraction jobs
gctrl_storeStore knowledge (like Obsidian notes, but with KG extraction)
gctrl_schemaGet the knowledge graph schema
gctrl_code_indexIndex 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_symbolFind code symbols by name/path/regex (proxied to the HTTP gateway)
gctrl_code_traceTrace callers/callees of a symbol (proxied to the HTTP gateway)
gctrl_code_impactImpact analysis for changed symbols/files (proxied to the HTTP gateway)
gctrl_code_architectureLanguages, hotspots, communities for a Codebase KB (proxied to the HTTP gateway)

Deprecated names (alias, removal in v2)

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 aliasUse instead
borghive_extractgctrl_extract
borghive_querygctrl_query
borghive_storegctrl_store
borghive_fusegctrl_fuse
borghive_search_entitiesgctrl_search_entities
borghive_list_graphsgctrl_list_graphs
borghive_list_ontologiesgctrl_list_ontologies
borghive_list_extractionsgctrl_list_extractions
borghive_schemagctrl_schema

Quickstart (npm)

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, …):

json
{  "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).

Coding with GCTRL (recommended for coding agents)

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:

json
{  "mcpServers": {    "gctrl":      { "command": "npx", "args": ["-y", "gctrl-mcp"],                    "env": { "GCTRL_GATEWAY_URL": "https://<host>/api/agent/mcp", "GCTRL_API_TOKEN": "gctrl_..." } },    "gctrl-code": { "command": "npx", "args": ["-y", "gctrl-mcp"],                    "env": { "GCTRL_API_URL": "https://<host>/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.

Configuration

Env varPurpose
GCTRL_GATEWAY_URLRecommended: URL of your harness's MCP gateway (http://<host>:4000/api/agent/mcp). The stdio server acts as a thin authenticated proxy.
GCTRL_API_URLAlternative direct mode: GCTRL API base URL (http://<host>:4000/api); tools run locally against the API.
GCTRL_API_TOKENScoped 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_TOOLSOptional 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/<name>/Code) for a code graph the server auto-creates as <repo> (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/<owner>/Code. |

Dev-only fallback: GCTRL_EMAIL + GCTRL_PASSWORD (full-clearance JWT). Avoid in production.

Build from source

bash
cd borghive/services/mcpnpm installnpm run build

Working on the code indexer

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:

bash
cd borghive/packages/code-indexer && npm ci && npm run buildcd ../../services/mcp && npm install ../../packages/code-indexer --no-save# or: npm link ../../packages/code-indexer

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.

Publish order

gctrl-mcp and gctrl-code-indexer are two npm packages and must go out in this order:

  1. Publish [email protected].
  2. Switch 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.
  3. Bump gctrl-mcp to 1.1.0 (package.json + package-lock.json root).
  4. Publish 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.

來源:services/mcp/README.md,提交 80186ae

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分