Agent Handoff

io.github.jordan23wagner-ops由 GitHub 账号 jordan23wagner-ops 发布v1.0.0更新于 Nov 2, 2026

Pass messages between AI agents with cleaning, metadata enrichment, and metered billing.

已验证Streamable HTTP可网页运行效率与工作流AI 与机器学习

概览

AI 生成的概览

远程 MCP 中间件,让助手在 AI 代理之间传递消息,并提供清洗、元数据增强与按量计费。

可以做什么
  • 将消息移交给指定的下一个代理,一次调用完成处理与路由
  • 查询当前 API 密钥的使用统计
  • 在路由前清洗并增强消息元数据
  • 与 REST 移交端点共用同一套鉴权和计费流程
适用场景
适合在构建多代理流水线时,用托管服务清洗、增强并路由代理之间的消息,或查看某个 API 密钥的按量使用情况。
运行要求
远程 streamable HTTP 端点,无需本地安装。需要 agent-handoff API 密钥,并在每次 tools/call 请求的 x-api-key 请求头中发送。需要能访问该托管服务的网络。
安装前请注意
使用量通过 Stripe 按量计费:每次移交 0.001 美元,或每月 29 美元的 Pro 套餐,因此工具调用可能产生费用。API 密钥是机密,通过 x-api-key 请求头发送。消息与路由元数据会发送到第三方托管服务,计费失败记录会持久化到 Supabase。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agent Handoff,将其添加到工作区。
  2. 连接 x-api-key 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.jordan23wagner-ops%2Fagent-handoff/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "agent-handoff": {
      "type": "http",
      "url": "https://agent-handoff-production-573c.up.railway.app/mcp",
      "headers": {
        "x-api-key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

Agent Handoff Middleware

Serverless middleware for AI agent handoffs with built-in Stripe metered billing. Clean, enrich, and route messages between AI agents in one API call.

Live API

bash
https://agent-handoff-production-573c.up.railway.app```bash
## Endpoints
| Endpoint | Method | Description ||----------|--------|-------------|| /handoff | POST | Process and route a message to the next agent || /health | GET | Service health check || /stats | GET | Usage statistics (requires API key) || /mcp | POST | Model Context Protocol server (`handoff` + `get_usage_stats` tools) — same auth/billing path as REST |
## Quick Start
```bashcurl -X POST https://agent-handoff-production-573c.up.railway.app/handoff -H 'x-api-key: your-key' -H 'Content-Type: application/json' -d '{"message": {"task": "Summarize this"}, "next_agent": "summarizer"}'```bash
## PowerShell Module
```powershellInstall-Module AgentHandoff$env:HANDOFF_API_KEY = 'your-key'$result = Invoke-AgentHandoff -Message @{ task = 'Summarize this' } -NextAgent 'summarizer' -VerboseOutput```powershell
## Pricing
- Pay-per-use: $0.001 per handoff via Stripe- Pro tier: $29/month for unlimited handoffs
## Tech Stack
- FastAPI + Python- Railway deployment- Stripe metered billing- Slowapi rate limiting
## Links
- [PowerShell Gallery](https://www.powershellgallery.com/packages/AgentHandoff)- [Live API](https://agent-handoff-production-573c.up.railway.app/health)
## Recent changes (2026-07-27)
- **MCP server added** at `POST /mcp` — exposes `handoff` and `get_usage_stats` as MCP tools over JSON-RPC 2.0, discoverable via `tools/list`. Runs through the exact same auth → usage → billing path as the REST `/handoff` endpoint, so it can't become an unmetered bypass. `server.json` added for the official MCP registry (schema-validated); publishing via `mcp-publisher` is still pending.- **Durable billing-failure audit trail** — failures now persist to Supabase (`public.billing_failures`) instead of only an ephemeral local file that reset on every redeploy.

来源:README.md,提交 4d56f84

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。