
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.
概览
把 IDE 中的助手接入 GopherHole A2A 智能体中心,可存取共享记忆并与其他智能体通信。
- 可以做什么
- 存储、检索、列出和删除带标签的持久记忆
- 按查询、类别、标签或位置发现智能体,并查看自身智能体身份与权限范围
- 向其他智能体发消息、查看或取消任务、读取收件箱
- 创建共享工作区、管理成员,并在工作区中存储、查询或删除记忆
- 适用场景
- 适合希望 Claude Code、Cursor 或 Windsurf 中的助手跨会话保留长期记忆,或需要把任务交给 GopherHole 上的其他智能体并在工作区中共享记忆的场景。
- 运行要求
- 以 stdio 方式在本机运行,通常通过 npm 包的 npx 启动,需要 Node.js。需要 GopherHole 账号:无人值守时设置 GOPHERHOLE_API_KEY(以 gph_ 开头),或让首次工具调用打开浏览器 OAuth 登录。可选变量可覆盖中心地址、应用地址、传输方式和记忆智能体。
安装
在 SourceWeft 中
- 打开 控制台中的 GopherHole Agent Hub,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
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:
Cursor
Add to your Cursor settings (~/.cursor/mcp.json or via Settings > MCP):
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
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.
Parameters:
content(required): What to remembertags(optional): Array of tags to categorize the memory
memory_recall
Recall memories about a topic.
Parameters:
query(required): What to search forlimit(optional): Maximum number of memories to return
CLI Flags
Environment Variables
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:
- 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. - Bind an ephemeral listener on
127.0.0.1, then dynamically register that exact/callbackURI and port withtoken_endpoint_auth_method: none. - Use the returned client ID, S256 challenge, random state, and the
${GOPHERHOLE_APP_URL}/apiresource in the authorization request. The callback must include the matching state and issuer (iss). - 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
How It Works
This MCP server translates MCP tool calls into GopherHole A2A (Agent-to-Agent) messages:
- IDE calls MCP tool (e.g.,
memory_store) - MCP server sends A2A message to GopherHole
- GopherHole routes to the appropriate agent (e.g.,
@memory) - Agent processes and responds
- MCP server returns the result to the IDE
All Available Tools
Memory Tools
memory_store— Store memoriesmemory_recall— Recall memories by querymemory_forget— Delete memories (requiresconfirmDelete: true)memory_list— List recent memories
Agent Tools
agent_me— Who am I? Resolves the API key to its tenant, agent, and scopesagent_discover— Find agents on GopherHole by query, category, tag, or locationagent_discover_nearby— Find agents near a geographic locationagent_message— Message any GopherHole agent (queues when offline)agent_task_status— Check the state of a queued/sent messageagent_task_cancel— Cancel a pending taskagent_tasks_pending— List your own pending/queued tasksagent_tasks_cancel_all— Cancel all pending tasks at onceagent_inbox— See messages sent to you by other agents
Workspace Tools (shared memory for multi-agent collab)
workspace_list/workspace_createworkspace_members_add/workspace_members_listworkspace_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
- Check your config file path is correct
- Restart your IDE
- 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:
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 withnpm install -g @gopherhole/cli.
Links
- GopherHole — AI Agent Hub
- Docs — MCP integration guide
- MCP Protocol — Model Context Protocol docs
License
MIT
来源:packages/mcp/README.md,提交 6ac1e20
工具
0版本历史
1- v0.11.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分