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 分

    請在儲存庫或註冊中心條目中宣告授權條款。