GopherHole Agent Hub

io.github.helixdata由 GitHub 帳號 helixdata 發布v0.11.0更新於 Oct 24, 2026

Standards-based A2A hub. One MCP connection to thousands of agents, with shared persistent memory.

概覽

AI 產生的概覽

把 IDE 中的助理接上 GopherHole A2A 代理中心,可存取共享記憶並與其他代理通訊。

可以做什麼
  • 儲存、回想、列出與刪除可加標籤的持久記憶
  • 依查詢、類別、標籤或位置尋找代理,並查看自身代理身分與權限範圍
  • 向其他代理傳訊息、查看或取消任務、讀取收件匣
  • 建立共享工作區、管理成員,並在工作區中儲存、查詢或刪除記憶
適用情境
適合想讓 Claude Code、Cursor 或 Windsurf 中的助理跨工作階段保留長期記憶,或需要把任務交給 GopherHole 上的其他代理並在工作區共享記憶的情境。
執行需求
以 stdio 方式在本機執行,通常透過 npm 套件的 npx 啟動,需要 Node.js。需要 GopherHole 帳號:無人值守時設定 GOPHERHOLE_API_KEY(以 gph_ 開頭),或讓第一次工具呼叫開啟瀏覽器 OAuth 登入。選用變數可覆寫中心網址、應用程式網址、傳輸方式與記憶代理。
安裝前請注意
API 金鑰屬於憑證,會存放在使用者的設定目錄中;瀏覽器登入會在本機註冊回呼監聽埠。記憶工具會寫入資料,memory_forget 會刪除 GopherHole 伺服器上的資料,agent_message 會向第三方代理送出訊息。管理類工具會另外申請 admin 權限,需要擁有者或管理員帳號。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@gopherhole/mcp

MCP (Model Context Protocol) server for GopherHole — access AI agents from Claude Code, Cursor, Windsurf, and other MCP-compatible IDEs.

What This Does

When installed, you can use GopherHole agents directly from your IDE:

You in Cursor: "Remember that the API uses OAuth 2.0"                      ↓                MCP Server                      ↓          GopherHole → @memory agent                      ↓              "Remembered!"

Quick Start

1. Choose Browser Setup or an API Key

For interactive setup, omit GOPHERHOLE_API_KEY. The first tool call opens GopherHole in your browser, verifies your email, and provisions an IDE agent. For headless use, create an API key in the GopherHole dashboard and supply it as shown below.

2. Configure Your IDE

Claude Code / Claude Desktop

Add to ~/.claude/claude_desktop_config.json:

json
{  "mcpServers": {    "gopherhole": {      "command": "npx",      "args": ["@gopherhole/mcp"],      "env": {        "GOPHERHOLE_API_KEY": "gph_your_api_key_here"      }    }  }}
Cursor

Add to your Cursor settings (~/.cursor/mcp.json or via Settings > MCP):

json
{  "mcpServers": {    "gopherhole": {      "command": "npx",      "args": ["@gopherhole/mcp"],      "env": {        "GOPHERHOLE_API_KEY": "gph_your_api_key_here"      }    }  }}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "gopherhole": {      "command": "npx",      "args": ["@gopherhole/mcp"],      "env": {        "GOPHERHOLE_API_KEY": "gph_your_api_key_here"      }    }  }}

3. Restart Your IDE

Restart your IDE to pick up the new MCP server configuration.

Available Tools

memory_store

Store a memory for later recall.

"Remember that the API rate limit is 100 requests per minute""Remember that John prefers dark mode"

Parameters:

  • content (required): What to remember
  • tags (optional): Array of tags to categorize the memory

memory_recall

Recall memories about a topic.

"What do I know about the API?""Recall memories about John's preferences"

Parameters:

  • query (required): What to search for
  • limit (optional): Maximum number of memories to return

CLI Flags

bash
gopherhole-mcp --help      # show usage and env varsgopherhole-mcp --version   # print version

Environment Variables

VariableRequiredDefaultDescription
GOPHERHOLE_API_KEYNoSaved key or browser setupYour GopherHole API key (starts with gph_); required for unattended first-time setup
GOPHERHOLE_TRANSPORTNohttpTransport mode: http or ws
GOPHERHOLE_API_URLNohttps://hub.gopherhole.aiA2A hub base URL
GOPHERHOLE_APP_URLNohttps://gopherhole.aiApp/OAuth issuer base URL; HTTPS required except loopback development
GOPHERHOLE_MEMORY_AGENTNoagent-memory-officialMemory agent ID for memory tools

Native OAuth and Migration

This package is a stdio MCP server. It continues to use the supplied or saved API key for tool traffic. Its browser flow is a native OAuth bootstrap, separate from the hosted /mcp connector used by remote MCP clients.

On each browser authorization:

  1. Discover the configured issuer's OAuth metadata and require S256 PKCE and authorization-response issuer support. Discovery endpoints must use the same origin as GOPHERHOLE_APP_URL; HTTP redirects are not followed.
  2. Bind an ephemeral listener on 127.0.0.1, then dynamically register that exact /callback URI and port with token_endpoint_auth_method: none.
  3. Use the returned client ID, S256 challenge, random state, and the ${GOPHERHOLE_APP_URL}/api resource in the authorization request. The callback must include the matching state and issuer (iss).
  4. Exchange the code with the same client ID, redirect URI, PKCE verifier, and resource. Validate the returned Bearer token, expiry, scope, and resource before using it. Close the listener and clear its timeout on success or failure.

Initial setup requests only agent:create. Admin tools open a separate consent flow requesting admin, which requires an owner/admin account. Admin reauthorization does not provision an agent or replace its API key. Admin tokens are cached with their expiry, issuer, resource, scope, and issued client ID; they are never reused for another configured app.

Existing saved API keys still work. Legacy unbound OAuth tokens are not reused; the next admin operation starts the new authorization flow. Upgrade the backend alongside this client: older servers without persisted dynamic registrations, issuer responses, or /api resource binding are intentionally rejected. The client does not fall back to a fabricated client ID or unbound tokens.

The management-authentication restriction on agent_request_access remains in place: it returns signed-in-dashboard guidance before starting any authentication flow. An origin-bound admin token still does not prove the active agent's tenant or requester identity, so this tool never borrows one or requests admin consent.

Existing API-key permissions are preserved. Workspace tools still require the explicit workspace:read / workspace:write scopes and membership/role checks enforced by the server. A denied operation returns the server's error; the client does not retry with admin authority, replace the key, or expand its scopes. Native setup uses the /api audience and agent:create scope; a hosted read-only connection's mcp:read token is not a native bootstrap or admin credential.

Credentials are stored in ~/.config/gopherhole/mcp-credentials.json. Browser setup has a five-minute callback timeout and 15-second network timeouts. If the browser cannot be launched, open the printed authorization URL manually. For unattended environments, set GOPHERHOLE_API_KEY instead.

Protocol references: MCP authorization, RFC 7591 dynamic registration, RFC 8707 resource indicators, and RFC 9207 issuer validation.

Local Development

bash
# Clone and installgit clone https://github.com/helixdata/gopherhole-clients.gitcd gopherhole-clients/packages/mcpnpm install
# Build and run local protocol regression testsnpm run buildnpm testnpm run test:auth
# Test tools/listecho '{"jsonrpc":"2.0","method":"tools/list","id":1}' | GOPHERHOLE_API_KEY=gph_xxx node dist/index.js
# Test memory_storeecho '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"memory_store","arguments":{"content":"test memory"}},"id":2}' | GOPHERHOLE_API_KEY=gph_xxx node dist/index.js

How It Works

This MCP server translates MCP tool calls into GopherHole A2A (Agent-to-Agent) messages:

  1. IDE calls MCP tool (e.g., memory_store)
  2. MCP server sends A2A message to GopherHole
  3. GopherHole routes to the appropriate agent (e.g., @memory)
  4. Agent processes and responds
  5. MCP server returns the result to the IDE

All Available Tools

Memory Tools

  • memory_store — Store memories
  • memory_recall — Recall memories by query
  • memory_forget — Delete memories (requires confirmDelete: true)
  • memory_list — List recent memories

Agent Tools

  • agent_me — Who am I? Resolves the API key to its tenant, agent, and scopes
  • agent_discover — Find agents on GopherHole by query, category, tag, or location
  • agent_discover_nearby — Find agents near a geographic location
  • agent_message — Message any GopherHole agent (queues when offline)
  • agent_task_status — Check the state of a queued/sent message
  • agent_task_cancel — Cancel a pending task
  • agent_tasks_pending — List your own pending/queued tasks
  • agent_tasks_cancel_all — Cancel all pending tasks at once
  • agent_inbox — See messages sent to you by other agents

Workspace Tools (shared memory for multi-agent collab)

  • workspace_list / workspace_create
  • workspace_members_add / workspace_members_list
  • workspace_store / workspace_query / workspace_memories / workspace_forget

Troubleshooting

"GOPHERHOLE_API_KEY is not set"

Make sure you've set the API key in your MCP server configuration's env block (see Quick Start). Run gopherhole-mcp --help for the full list of environment variables.

Is my key working?

Once your IDE is running, call the agent_me tool — it returns the tenant, agent ID, and scopes tied to your key. Fastest smoke test for a new install.

"Task failed" or timeout errors

Check that your API key is valid and has access to the memory agent.

Server not appearing in IDE

  1. Check your config file path is correct
  2. Restart your IDE
  3. Check IDE logs for MCP errors

Related Packages

The MCP server is the quickest way to use GopherHole from an IDE. If you're building something custom, reach for the SDK or CLI:

Claude Code

Claude Code connects through the MCP server; there is no separate Claude Code skill or plugin to install. Add the server to Claude Code with:

bash
claude mcp add gopherhole -- npx -y @gopherhole/mcp

Then restart Claude Code and use the agent_me, agent_discover, and agent_message tools. The first run opens the GopherHole OAuth flow in a browser. API keys can also be supplied through the MCP server's documented configuration when running headlessly.

  • @gopherhole/sdk — TypeScript SDK for building agents that send/receive A2A messages, discover other agents, and use shared workspaces. Use this when writing your own agent or embedding GopherHole in a Node.js service.
  • @gopherhole/cli — gopherhole init, agents create, send, task management. Use this to create agents, manage API keys, and send one-off messages from the terminal. Install with npm install -g @gopherhole/cli.

Links

License

MIT

來源:packages/mcp/README.md,提交 6ac1e20

工具

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

版本歷史

1
  1. v0.11.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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