原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Agent MCP Hub

作者:blackaxgit版本 0.6.2i★ –i在你的电脑上运行
注册名称io.github.blackaxgit/agent-mcp-hub

安装

概览

作者提供的说明(英文原文)

One MCP server bridging the Codex, Cursor, OpenCode, Claude, and Antigravity CLI agents

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "agent-hub": {
      "command": "npx",
      "args": [
        "-y",
        "agent-mcp-hub"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add agent-hub -- npx -y agent-mcp-hub

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-hub": {
      "command": "npx",
      "args": [
        "-y",
        "agent-mcp-hub"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "agent-hub": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agent-mcp-hub"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 blackaxgit 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32680 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32680 个服务器的 52% 更新
  • 基础检查结果等于或优于此分类中其他 32680 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Agent MCP Hub 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.6.2)于37天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, EmbeddedCI BenchPod

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

EmbeddedCI BenchPod

作者:embeddedci-com

Drive a BenchPod hardware-in-the-loop bench: power, flash, UART, I2C, CAN, analog and logic.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

agent-mcp-hub

One MCP server that bridges multiple CLI coding agents — Codex, Cursor, OpenCode, Claude, and Antigravity — into any MCP client.

stdio only — by design. The hub ships no Docker image and no HTTP

transport (both were removed during the 0.5.x line). A containerised or remote

server cannot see the caller's repository path and cannot reuse the caller's

CLI logins — it would break the product contract on both halves. The hub runs

as a child process of your MCP client, on your machine, as you.

Tools

ToolDescription
codexDelegate a prompt to codex exec (prompt piped via stdin)
cursorDelegate a prompt to cursor-agent -p (prompt piped via stdin)
opencodeDelegate a prompt to opencode run
claudeDelegate a prompt to the Claude Code CLI (prompt piped via stdin)
agyDelegate a prompt to Google Antigravity (agy --print=…, prompt passed as a flag value)
run_allSame prompt to all agents in parallel, results side by side
list_agentsWhich agent CLIs are installed and on PATH
pingHealth check

Agent tools accept prompt (required), model, cwd, timeoutMs (total runtime cap, default 1800000 = 30 min), and idleTimeoutMs (inactivity cap, default 300000 = 5 min). See Long-running tasks & timeouts.

Known limitation: opencode prompts may not start with - (its CLI could parse them as flags); the tool returns an actionable error instead of guessing.

Choosing models per agent

Model ids are agent-specific and do not overlap. o3 means nothing to agy, gemini-3.6-flash-low means nothing to codex, and opencode namespaces its own (opencode/big-pickle). So a single model value is valid for at most one agent in a fan-out.

  • run_all takes `models` — a per-agent map. Agents you don't list fall back to model, then to their own CLI default.
  • review_change takes `runnerModel` and `reviewerModel`, so the agent writing the change and the agent judging it can use different engines *and* tiers. model remains a fallback for both.
{

"tool": "run_all", "arguments": { "prompt": "Explain the retry logic in src/exec.ts", "models": { "codex": "o3", "agy": "gemini-3.6-flash-low", "claude": "haiku" } } }

An unknown agent name in models is rejected with the list of enabled agents — a typo never silently falls back to the default model.

Where to find valid ids: opencode models, cursor-agent models and agy models list them. codex and claude have no such command — codex reads its default from ~/.codex/config.toml, and claude accepts the documented aliases (opus, sonnet, haiku, fable). Note claude models is not a subcommand: it is treated as a prompt, so its "model list" is generated text, not a source of truth.

Error handling

When a wrapped CLI fails, the hub classifies the failure and returns a clean, ANSI-free, actionable isError result — never a raw terminal dump — naming the class and the exact fix:

ClassExample remediation
not_installedinstall the CLI (e.g. npm i -g @openai/codex) / fix PATH
not_authenticatedcodex login · cursor-agent login · opencode auth login · claude → /login · agy → sign in on first run (or set the matching API key)
not_configuredset a model/provider in the CLI's config
timed_outraise timeoutMs, or check the agent/model is responsive
stream_stalledthe agent reached the network but its stream keeps dropping (e.g. cursor behind a TLS-intercepting proxy) — treat that agent as unavailable; raising timeoutMs will not help
server_busyretry shortly (upstream rate-limit, or the local agent-spawn queue is full)
tool_failuregeneric non-zero exit — the message includes (exit N) and a trimmed output tail

For example, an unauthenticated cursor no longer returns its ANSI "press any key to sign in" banner — it returns cursor is not authenticated … Fix: run cursor-agent login.

Review a change (review_change)

Runs a runner agent in a git cwd to make a change, captures the actual git diff of what changed, then has a reviewer agent judge that diff. Returns the runner's output, the diff (--stat), and a PASS / WARN / FAIL verdict with findings.

Inputs: runner, reviewer (agent names), prompt, cwd (must be a git worktree), optional runnerModel, reviewerModel, model (fallback for both), timeoutMs.

Key notes:

  • Cross-agent by design — e.g. codex writes, claude reviews.
  • Returns the concrete diff that the plain agent tools don't expose.
  • Newly-created (untracked) files are surfaced to the reviewer with their contents (bounded: 64 KiB per file, 50 files; excess is truncated and flagged). git diff alone would omit them entirely.
  • If the worktree was already dirty, the diff may include pre-existing changes (noted in the output).
  • Complements — does not replace — client-side stop-hooks or PR-time CI review.
  • The confirm gate (MCP_CONFIRM) applies.
  • The reviewer runs least-privilege — but how much that guarantees depends on the agent. The reviewer's prompt embeds an attacker-influenced diff, so it is run read-only rather than with the write grant the runner gets. Only two of the five are real restrictions:
ReviewerRead-only mechanismEnforced?
codex-s read-onlyYes — OS-level sandbox
claude--disallowedTools Write,Edit,…,BashYes — harness-level deny
cursor--trust --mode plan (no --force)No — model-advisory only
agypermission grant withheldPartly — headless auto-deny, not a sandbox
opencode*none available*No — unrestricted

Pick codex or claude as the reviewer if you want the restriction to be real. This is defense-in-depth alongside the nonce-fenced diff and the throwaway temp cwd; none of it is a sandbox.

{

"tool": "review_change", "arguments": { "runner": "codex", "reviewer": "claude", "prompt": "Add retry with exponential backoff to the API client", "cwd": "/Users/you/projects/my-app" } }

Prerequisites

Install and authenticate the CLIs you want to use (any subset works):

  • Codex: npm i -g @openai/codex && codex login
  • Cursor: curl https://cursor.com/install -fsS | bash && cursor-agent login
  • OpenCode: npm i -g opencode-ai && opencode auth login
  • Claude Code: npm i -g @anthropic-ai/claude-code && claude (first run logs in)
  • Antigravity: install the Antigravity CLI (e.g. brew install --cask antigravity-cli), then run agy once and sign in — it has no login subcommand and stores credentials in the OS keyring, so there is no API-key env var to set

Install

Recommended — global install (fast, reliable startup): install the pinned version once, then point your client at the agent-mcp-hub binary. Startup is instant and the client connects reliably.

npm i -g agent-mcp-hub@0.5.0
Claude Code
claude mcp add agent-hub -- agent-mcp-hub
Cursor / generic mcp.json
{

"mcpServers": { "agent-hub": { "command": "agent-mcp-hub" } } }

Zero-install alternative (npx)

No global install, but npx re-resolves the package on every launch, so first start is slower and can occasionally trip a client's connection-probe timeout (the server itself is fine — just retry). Prefer the global install for a persistent setup.

claude mcp add agent-hub -- npx -y agent-mcp-hub@0.5.0

mcp.json: "command": "npx", "args": ["-y", "agent-mcp-hub@0.5.0"]

Pre-release / fallback: To test an unreleased commit, run directly from

GitHub: npx -y github:blackaxgit/agent-mcp-hub# . This builds

from source on first fetch, so under npm v12+ you must allow the prepare

script.

Configuration

`MCP_AGENTS` — comma-separated allowlist of the agents to expose (codex,cursor,opencode,claude,agy). Unset or empty exposes all agents. Disabled agents get no tool and are absent from list_agents/run_all. An unknown name fails at startup with an error listing the valid names, so typos never silently disable an agent.

For stdio, set it in the client's mcp.json:

{

"mcpServers": { "agent-hub": { "command": "npx", "args": ["-y", "agent-mcp-hub@0.5.0"], "env": { "MCP_AGENTS": "codex,claude" } } } }

Confirm before running an agent — MCP_CONFIRM

Set MCP_CONFIRM=1 (values 1/true/on/all; default off) to require a confirmation before any agent tool — and run_all — actually spawns a CLI. The server sends a brief summary (agent · prompt · cwd · model) and waits: accept runs the agent, decline runs nothing and returns a terminal cancellation.

This uses the standard MCP elicitation capability, so it is client/IDE-agnostic — it works with any MCP client that supports form elicitation (Claude Code, Cursor, VS Code, Zed, Windsurf, custom SDK clients, …); the gate keys on the protocol capability, never a product name. Clients that don't support elicitation transparently run without a prompt (no hang, no error).

{

"mcpServers": { "agent-hub": { "command": "npx", "args": ["-y", "agent-mcp-hub@0.5.0"], "env": { "MCP_CONFIRM": "1" } } } }

Long-running tasks & timeouts

A complex agent task can run for many minutes. The hub bounds each run with two independent timers so a productive long run survives while a genuinely stuck one fails fast:

  • Idle (inactivity) timeout — idleTimeoutMs (per call) / MCP_AGENT_IDLE_TIMEOUT_MS (env), default 300000 (5 min). The timer resets on every chunk of output the CLI produces, so an agent that keeps working (streaming output) never trips it. An agent that goes silent — e.g. opencode stuck on an unreachable model backend — is killed after the idle window with an actionable "no output — the agent may be hung or its model/backend is unreachable" error, instead of burning the full cap.
  • Total runtime cap — timeoutMs (per call) / MCP_AGENT_TIMEOUT_MS (env), default 1800000 (30 min). A hard upper bound regardless of activity.

Whichever fires first kills the agent's process group. Tradeoff: the idle reset assumes the CLI streams intermediate output. codex and opencode do; claude -p, cursor-agent -p and agy --print may emit only the final result, so a long silent task on those can be idle-killed at 5 min — raise idleTimeoutMs / MCP_AGENT_IDLE_TIMEOUT_MS for such tasks, or rely on the total cap.

agy is the strongest case here: it emits its entire answer in one flush at the end (measured — every line of a 12-line reply arrived at the same instant), and the hub raises its internal --print-timeout to 48h so that agy's own 5-minute default can never truncate a run. The idle timer is therefore agy's only protection against a genuine hang; budget idleTimeoutMs accordingly for long autonomous agy tasks.

While an agent runs, the hub emits MCP progress notifications to clients that request them (_meta.progressToken) — live feedback during long runs. Note: on Claude Code (stdio) the per-server request timeout in .mcp.json (or the MCP_TOOL_TIMEOUT env var it honors) is a hard wall-clock that progress does not reset (default ~28h) — raise it if you lowered it below your longest run.

Upgrading

Global install: install the new version — the pinned agent-mcp-hub command in your MCP config picks it up on the next client start:

npm i -g agent-mcp-hub@0.6.0

npx (pinned): bump the pinned version in your MCP config — e.g. change agent-mcp-hub@0.5.0 to agent-mcp-hub@0.6.0 everywhere.

Always-latest (not recommended for shared configs): use `agent-

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx