gctrl
v1.2.0Governed graph-native agent memory: knowledge extraction, fusion, hybrid RAG, scoped access tokens.
Values you need
| Variable | What it is | |
|---|---|---|
GCTRL_GATEWAY_URL | optional | URL of your GCTRL harness MCP gateway, e.g. http://localhost:4000/api/agent/mcp (recommended mode) |
GCTRL_API_URL | optional | Direct GCTRL API base URL (alternative to gateway mode), e.g. http://localhost:4000/api |
GCTRL_API_TOKEN | required secret | Scoped GCTRL Access Token (gctrl_…) created in Settings → Access Control |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add gctrl -e 'GCTRL_API_TOKEN=<GCTRL_API_TOKEN>' -- npx -y gctrl-mcp@1.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"gctrl": {
"args": [
"-y",
"gctrl-mcp@1.2.0"
],
"command": "npx",
"env": {
"GCTRL_API_TOKEN": "<GCTRL_API_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gctrl": {
"args": [
"-y",
"gctrl-mcp@1.2.0"
],
"command": "npx",
"env": {
"GCTRL_API_TOKEN": "<GCTRL_API_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GCTRL_API_TOKEN",
"id": "gctrl-api-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"gctrl": {
"args": [
"-y",
"gctrl-mcp@1.2.0"
],
"command": "npx",
"env": {
"GCTRL_API_TOKEN": "${input:gctrl-api-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gctrl]
command = "npx"
args = ["-y", "gctrl-mcp@1.2.0"]
env = { "GCTRL_API_TOKEN" = "<GCTRL_API_TOKEN>" }For AI agents
- Ask the user for: GCTRL_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: gctrl_extract, borghive_extract, gctrl_query, borghive_query, gctrl_search_entities, borghive_search_entities, gctrl_get_dossier, borghive_get_dossier, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json