gctrl

v1.2.0
io.github.GCTRL-TECH/gctrl Checked 1 day ago Published 3 months ago

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

Values you need

VariableWhat it is
GCTRL_GATEWAY_URLoptional URL of your GCTRL harness MCP gateway, e.g. http://localhost:4000/api/agent/mcp (recommended mode)
GCTRL_API_URLoptional Direct GCTRL API base URL (alternative to gateway mode), e.g. http://localhost:4000/api
GCTRL_API_TOKENrequired 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.0
Add 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

  1. Ask the user for: GCTRL_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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