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

Agent Handoff MCP

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

安装

概览

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

Bounded, auditable handoffs between AI agents through a local MCP server.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:HANDOFF_AGENT_ID, HANDOFF_MCP_REGISTRY, HANDOFF_MCP_DB

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: HANDOFF_AGENT_ID, HANDOFF_MCP_REGISTRY, HANDOFF_MCP_DB

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "agent-handoff": {
      "command": "npx",
      "args": [
        "-y",
        "@sarutobi-sasuke/agent-handoff-mcp",
        "stdio"
      ],
      "env": {
        "HANDOFF_AGENT_ID": "your-value",
        "HANDOFF_MCP_REGISTRY": "your-value",
        "HANDOFF_MCP_DB": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add agent-handoff --env HANDOFF_AGENT_ID=your-value --env HANDOFF_MCP_REGISTRY=your-value --env HANDOFF_MCP_DB=your-value -- npx -y @sarutobi-sasuke/agent-handoff-mcp stdio

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "agent-handoff": {
      "command": "npx",
      "args": [
        "-y",
        "@sarutobi-sasuke/agent-handoff-mcp",
        "stdio"
      ],
      "env": {
        "HANDOFF_AGENT_ID": "your-value",
        "HANDOFF_MCP_REGISTRY": "your-value",
        "HANDOFF_MCP_DB": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "agent-handoff": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sarutobi-sasuke/agent-handoff-mcp",
        "stdio"
      ],
      "env": {
        "HANDOFF_AGENT_ID": "your-value",
        "HANDOFF_MCP_REGISTRY": "your-value",
        "HANDOFF_MCP_DB": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • HANDOFF_AGENT_ID 必填 env
    Existing enabled identity in the operator-provisioned registry.
  • HANDOFF_MCP_REGISTRY 必填 env
    Absolute path to the operator-provisioned agent registry YAML.
  • HANDOFF_MCP_DB 必填 env
    Absolute path to the local handoff SQLite database.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Agent Handoff MCP 安全吗?

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

它需要哪些密钥或代码?

你需要填写:HANDOFF_AGENT_ID, HANDOFF_MCP_REGISTRY, HANDOFF_MCP_DB

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, arr-mcp

替代选择

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

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

Spec Driven Development

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

作者:formulahendry起步阶段↓ 66/周★ 44014个月前更新

在你的电脑上运行

Remote Desktop Commander

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

作者:desktop-commander正在增长★ 2113天前更新

在云端运行✓ desktopcommander.app

arr-mcp

One server, 40 tools, the whole media stack: *arrs, Jellyfin, Plex, Seerr, Cleanuparr, downloaders

作者:bardesss非常新今天更新

在你的电脑上运行

作者的 README

打开 README

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

Agent Handoff MCP

A local-first Model Context Protocol server for bounded, auditable handoffs between AI agents.

Agent Handoff MCP gives Claude, Codex, local agents, and other MCP clients a shared inbox without giving one model control over another. Agents can send structured work, acknowledge it, report a blocker, complete it, or cancel work they originally queued. Every transition is attributable and retained in SQLite.

Why this exists

Multi-agent systems often pass work through chat transcripts, ad hoc files, or vendor-specific orchestration. That loses ownership, lifecycle state, authorization boundaries, and a durable audit trail. This server turns a handoff into a small protocol object:

sender -> queued -> accepted -> completed

| ^ v | blocked --------+

sender may cancel only while queued

The server coordinates work; it does not execute agents, fetch references, read arbitrary files, or create autonomous agent loops.

MCP tools

ToolPurpose
handoff_whoamiShow the authenticated identity, boundaries, and policy revision.
handoff_sendSend a structured handoff to an authorized recipient.
handoff_inboxList handoffs addressed to the current identity.
handoff_getRead a handoff and its append-only event history.
handoff_acknowledgeAccept queued or blocked work.
handoff_update_statusMark work blocked/completed, or cancel it while queued.

Design properties

  • SQLite shared state with WAL mode and parameterized queries
  • Streamable HTTP and stdio transports
  • Opaque UUID handoff, event, and thread identifiers
  • Explicit send_to and receive_from authorization with no permissive defaults
  • Per-agent disclosure ceilings: public-safe, internal, or restricted
  • Strict registry validation: unknown keys, duplicates, and unsupported versions are rejected
  • Immutable policy snapshots: every operation is checked against the current registry, so disabling an identity, rotating a token, or narrowing a relationship takes effect on live sessions without a restart
  • Hashed, expiring bearer-token bindings for HTTP
  • Idempotency keys for safe retries
  • Maximum reply-chain depth to limit automated ping-pong
  • Strict message, array, reference, and request-size limits
  • Sender/recipient-only reads, re-authorized against current policy
  • Append-only lifecycle events; no MCP delete tool
  • References are stored as inert strings and never dereferenced

Command line

The package installs one dispatcher binary, agent-handoff-mcp, whose name matches the package so npx @sarutobi-sasuke/agent-handoff-mcp resolves directly once the package is published to npm. (It is not published yet; use a source checkout until then.)

CommandPurpose
httpStart the shared Streamable HTTP server.
stdioStart a stdio server bound to HANDOFF_AGENT_ID.
init --registry Create a starter registry with disabled synthetic identities.
validate --registry Validate a registry without reading tokens or the database.
issue --registry --agent --expires Issue an expiring token, printed once to stdout.
rotate ...Replace an existing token; the old one stops working immediately.
disable / enableToggle an identity across all transports.
revokeRemove an identity's token binding.
tokenGenerate a token and digest without touching a registry.

agent-handoff-http, agent-handoff-stdio, agent-handoff-token, and agent-handoff-validate are also installed as direct aliases.

Quick start

Requirements: Node.js 22.13 or newer.

For a source checkout:

git clone https://github.com/SarutobiSasuke8/agent-handoff-mcp.git

cd agent-handoff-mcp npm ci npm run build cp .env.example .env node dist/src/cli.js init --registry ./config/agents.yaml node dist/src/cli.js issue --registry ./config/agents.yaml --agent example-alpha --expires 2027-01-01T00:00:00Z node dist/src/cli.js issue --registry ./config/agents.yaml --agent example-beta --expires 2027-01-01T00:00:00Z node dist/src/cli.js enable --registry ./config/agents.yaml --agent example-alpha node dist/src/cli.js enable --registry ./config/agents.yaml --agent example-beta node dist/src/cli.js validate --registry ./config/agents.yaml npm run check npm start

Each issue command prints that identity's raw token exactly once; hand it to that client over a secure channel. Only SHA-256 digests are stored. See docs/QUICKSTART.md for complete PowerShell and POSIX clean-room flows.

The default endpoints are:

GET  http://127.0.0.1:3220/healthz   liveness and policy state

GET http://127.0.0.1:3220/readyz readiness; 503 while the policy is degraded POST http://127.0.0.1:3220/mcp Authorization: Bearer handoff_

The server binds to localhost by default. Put an authenticated private-network or TLS boundary in front of it before any remote deployment.

Stdio mode

Each stdio client supplies its identity through its own process environment while sharing the same SQLite database and registry:

{

"command": "node", "args": ["/absolute/path/agent-handoff-mcp/dist/src/cli.js", "stdio"], "env": { "HANDOFF_AGENT_ID": "example-beta", "HANDOFF_MCP_DB": "/absolute/shared/path/handoffs.sqlite", "HANDOFF_MCP_REGISTRY": "/absolute/path/agents.yaml" } }

Use HTTP when multiple clients should connect to one long-running service. Use stdio for local clients that can safely receive a fixed identity through their own configuration. Both transports re-check the registry on every operation, so revocation applies to running stdio sessions too.

Local HTTP conformance check

Run npm run conformance from a source checkout after npm ci. It validates server.json against the existing pinned Registry schema, starts an isolated loopback server and disposable SQLite registry fixture, checks missing and invalid bearer requests with curl, and runs the official framework plus an Inspector tools/list and read-only handoff_whoami call. It requires curl and network access for the exactly pinned npx tools. No operator registry, existing database, stored login or live service is used.

The asserted spec revision is 2026-07-28, using @modelcontextprotocol/conformance@0.2.0-alpha.12 --requirements 2026-07-28. The current HTTP transport targets 2025-11-25; stateless request handling alone does not establish support for the newer lifecycle. Inspector @modelcontextprotocol/inspector@2.11.0 explicitly uses its legacy protocol era for the application smoke. The upstream framework has no bearer-header flag, so a test-only fetch adapter adds the ephemeral fixture header solely to that loopback endpoint. Production authentication is exercised unchanged.

The check currently exits 1 on the revision gap. Findings and redacted logs go to ignored release-evidence/conformance/ (override with HANDOFF_CONFORMANCE_OUTPUT). Every check runs even when another fails. Failures are never silently baselined or repaired in the runner. See the first-run findings before proposing this as a release gate. This command does not publish or modify CI.

Bearer request negative tests

Run npm run test:auth-negative after npm ci in a source checkout. This dependency-free runner uses the existing disposable registry/SQLite harness on 127.0.0.1, with a random port and freshly generated fixture credentials. It accepts no remote endpoint or stored-token override. It runs every probe, prints only names and status codes, writes sanitised results under ignored release-evidence/auth-negative/results.json, and exits 1 if any expected response is missing. It does not change CI. A successful header-authenticated tools/list control guards against a broken fixture.

The numbered cases use RFC 6750 sections 2 and 3.1 for bearer error responses; they are a focused request-shape check, not a claim of full MCP/OAuth conformance.

CaseExpected responseObservation (first run 22 October, fix 25 October 2026)
1: no header401 plus Bearer challengePass
2: garbage token401 plus error="invalid_token" challengePass
3: expired static token401 plus error="invalid_token" challengePass; registry expiry is already supported
5: valid fixture token only in query400/401 plus Bearer challenge, never successPass: 401
6: valid header plus access_token in JSON body400 plus OAuth invalid_requestPass since 25 October: 400 plus invalid_request challenge (was a 400 JSON-RPC rejection)
6: valid header plus form-body token400 plus OAuth invalid_requestPass since 25 October: 400 plus invalid_request challenge (was a 415)
7: wrong scheme, missing space, empty Bearer400 invalid_request or 401 plus Bearer challengePass: 401 for all 3

Case 6 was a finding on the first run. Since 25 October /mcp rejects any JSON or form body that carries access_token, with or without a header, with HTTP 400 and a Bearer error="invalid_request" challenge, before the token is checked. Form bodies are parsed (16 KB cap) only to find that field; MCP requests must still be JSON. The form probe uses RFC 6750's form-encoded access_token; the JSON probe separately checks the same field on an otherwise valid MCP request.

Cases 4, 8-12 are N/A to this static-token profile today: no JWT audience, issuer, per-token OAuth scope hierarchy or Protected Resource Metadata is implemented. Revisit them with an OAuth resource-server migration; N/A is not evidence of compliance. Unknown tokens still fail even though an issuer claim is not evaluated. Case 3 is not N/A: static registry credentials already have expires_at, and this runner and existing e2e tests exercise expiry. Existing rotation, disabled-token and handoff authorisation tests also remain in place.

For external conformance tooling, the package names are mcp-spec-check and @modelcontextprotocol/conformance; the existing pinned official framework command above is unchanged. This runner installs neither package and adds no dependency. Proposed CI wiring belongs in the PR description until the response findings are resolved.

Operational metrics

Set HANDOFF_MCP_METRICS=1 to record in-process counters for handoffs created, accepted (claimed), expired and store errors, plus per-tool call duration histograms. Only the initial queued-to-accepted move counts as a claim. The default is off. When enabled, both HTTP and stdio servers write one JSON snapshot to local stderr at startup, every 60 seconds and on graceful shutdown. For example, HANDOFF_MCP_METRICS=1 agent-handoff-mcp stdio 2>metrics.jsonl captures the running process's snapshots without mixing them with MCP stdout. The snapshot from src/metrics.ts uses an OpenTelemetry OTLP JSON-shaped resourceMetrics/scopeMetrics structure. It has only fixed metric names, counts, timings and a bounded tool-name label; no handoff content, titles, agent text or tokens enter the recorder. No network exporter or public metrics endpoint is installed. The expired counter remains 0 because the current handoff lifecycle has no expiry transition.

Documentation

The draft MCP Registry manifest launches the npm binary with the stdio argument and requires HANDOFF_AGENT_ID, HANDOFF_MCP_REGISTRY and HANDOFF_MCP_DB from the operator. It creates no identities or credentials. The namespace uses the exact GitHub owner spelling, io.github.SarutobiSasuke8. prepublishOnly includes check:registry; publishing and registry login remain separate operator actions. Builds omit source maps and their JavaScript links.

  • [Clean-room quickstart](docs/QUICKSTART.m

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

问 PopNx