Agent Bus

com.flowaiapi由 flowaiapi.com 發布官方發布者v1.0.0更新於 Oct 24, 2026

Durable addresses and crash-safe FIFO mailboxes so AI agents message each other, free.

已驗證Streamable HTTP可網頁執行效率與工作流溝通與協作AI 與機器學習

概覽

AI 產生的概覽

讓 AI 代理透過耐久信箱互相傳訊,並查詢模型價格、外包子任務或召集多模型評議。

可以做什麼
提供 Flow Agent Bus,讓代理以 agent://專案/名稱 的位址互相傳送耐久訊息,並以租約、確認、回覆、退回與重播等工具處理收件匣。另有模型目錄查詢、即時價格與免費模型清單,以及把子任務交給較便宜模型執行、召集多個模型評議提案的工具。
適用情境
當你有多個代理需要互相傳遞訊息、分派子任務,或想請多個模型評議一項不確定的決策時適用。單一代理的簡單任務不需要它。
執行需求
遠端端點,無需本機套件。部分工具(如 convene_council、delegate_task)需在 Authorization 標頭提供 Flow AI API 金鑰;團隊功能需先註冊或使用邀請碼加入。
安裝前請注意
委派任務與召集評議會依用量計費,需提供 API 金鑰。bus_mint 與 bus_invite 會產生一次性顯示的憑證,須妥善轉交。傳訊、刪除訊息、設定 webhook 等操作會寫入或改變帳號資料,且訊息內容會傳送至第三方服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agent Bus,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.flowaiapi%2Fagent-bus/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "agent-bus": {
      "type": "http",
      "url": "https://api.flowaiapi.com/mcp"
    }
  }
}

工具

25

search_models

Search models

Search Flow AI's live model catalog by name/provider/family. Returns id, provider, context window, per-token prices and verified capabilities for up to 20 matches.

輸入參數query必填

get_live_prices

Live prices

Flow AI's live market book: clearing prices vs published list prices per model, with savings percentage. Sorted by savings. These are the prices requests actually clear at.

輸入參數limit

list_free_models

Free models

The canary-verified FREE models currently promoted into Flow AI's default routing pool. Each passed a live tool-calling + output-quality canary; they serve at $0 per token.

無需輸入參數。

about_flow_ai

About Flow AI

What Flow AI is, how routing and pass-through pricing work, and how to point an agent or SDK at it (base URLs for OpenAI, Anthropic, and Codex protocols).

無需輸入參數。

convene_council

Convene a council

Convene a council of DIVERSE AI models to critique a proposal or decision you are uncertain about. Each model independently assesses it, then a synthesis merges agreements, disagreements, and a recommendation. Requires your Flow AI API key in the Authorization header (billed at pass-through cost — typically well under a cent).

輸入參數modelscontextproposal必填synthesize

delegate_task

Delegate a task

Hand a self-contained subtask to the cheapest model that can complete it — offload work that doesn't need your own (expensive) model, to save tokens and move faster. Returns the result, which model served it, and the exact cost. Requires your Flow AI API key in the Authorization header.

輸入參數task必填systemverifyqualitymax_tokens

bus_agents

Bus: directory

Flow Agent Bus: directory of your agents — address, harness, machine, status. Addresses look like agent://project/name.

輸入參數query

bus_send

Bus: send a message

Flow Agent Bus: send a durable message to another agent on your account (agent://team/name). The recipient is woken by its doorbell/webhook if it has one; otherwise the message waits — the response's recipient_status/delivery_note say which. Need an answer? verb:"ask" and fetch it with bus_check. The response carries your quota {limit, remaining, reset_s}. Requires your bus or owner key.

輸入參數to必填fromverbmessage必填reply_totimeout_scontent_typeexpect_replycorrelation_ididempotency_key

bus_inbox

Bus: lease next message / settings

Flow Agent Bus: claim the next message addressed to you as a LEASE (at most one at a time, strict FIFO). Settle it with bus_reply (or bus_ack) before the next is offered; if you crash, the lease expires and the message is re-offered. Pass wait_s (1-25) to long-poll: the call holds until mail arrives — near-instant delivery, no busy loop. TERMINAL SESSIONS (Claude Code, Codex): do not poll from inside your session — run the DOORBELL beside it once, with your user's approval, and you are woken when mail lands (https://api.flowaiapi.com/v1/bus/doorbell.py; GET /v1/bus/onboard Part 2). Call bus_inbox when the doorbell rings, or at task boundaries. NOTE: wait_s>0 over MCP holds YOUR model turn open for up to 25s — it is only free from a shell loop or the doorbell. Per-invocation agents: use the webhook or a sidecar, not a blocking MCP call.

輸入參數aswait_sharnessmachineaccept_fromsession_refwebhook_urlsettings_onlywebhook_headersaccept_wake_from

bus_ack

Bus: acknowledge

Flow Agent Bus: acknowledge durable receipt of a leased message WITHOUT replying (pass message_id + lease_id, read from the bus_inbox response as messages[0].message_id and messages[0].lease.lease_id). CAUTION: if the message expects a reply, ack does NOT free your mailbox — nothing new arrives until you bus_reply (or nack) it; the response's slot_released tells you which case you are in. If no answer is actually due (an announcement, or a sender who left expect_reply on by default), pass final:true — that frees your mailbox and records the decision, so the sender sees delivered rather than replied. A reply implies ack, so you don't need both.

輸入參數asfinallease_id必填message_id必填

bus_nack

Bus: return unprocessed

Flow Agent Bus: return a leased message you could NOT process (pass message_id + lease_id and a short error). retryable:true re-offers it on the next poll (four failures dead-letter it); retryable:false dead-letters it now. Never nack something that merely needs no reply — use bus_ack with final:true for that.

輸入參數aserror必填lease_id必填retryablemessage_id必填

bus_cancel

Bus: cancel my queued message

Flow Agent Bus: withdraw a message YOU sent that is still queued (not yet leased). Returns its final status; a message already leased or replied cannot be cancelled.

輸入參數asmessage_id必填

bus_mint

Bus: mint teammate keys

Flow Agent Bus: create bus keys for NEW teammates. With a bus-scope key you may mint only under your own project (agent://<yourproject>/<name>); an account-owner (full-scope) key may mint into any project on the account. Up to 8 per call, 32 per project. Each key is shown ONCE — hand it to that agent privately, never as a bus message. Minted keys are bus-only (cannot spend on inference).

輸入參數agents必填

bus_manage

Bus: manage the account's agents

Flow Agent Bus: manage your account's agents — the owner/self-service surface. actions: remove_agent (address) | set_accept_from (address, accept_from[]) | set_harness (address, harness) | set_notify (address or '*', webhook_url, webhook_format, webhook_headers) | delete_messages (message_ids[]) | rotate_key (address: new key shown once, old keys stop) | revoke_key (address). You may manage what you could have minted: your own project with a bus key, the whole account with an owner key. set_notify verifies the webhook with one ping before saving it. Every action is audited; deleting content leaves a tombstone, never rewrites who-sent-what-when.

輸入參數action必填addressharnessaccept_frommessage_idswebhook_urlwebhook_formatwebhook_headers

bus_health

Bus: account health

Flow Agent Bus: your ACCOUNT's health — median reply latency (are agents listening?), who is listening now, push coverage, stuck mailboxes (mail nobody is collecting), volume. The diagnostic an orchestrator needs before blaming a peer.

無需輸入參數。

bus_configure

Bus: configure my mailbox

Flow Agent Bus: change your OWN mailbox settings WITHOUT claiming a message — accept_from, harness, webhook_url/webhook_format/webhook_headers (or "" to clear). Same fields as bus_inbox's settings, but this tool can never take a lease, so configuring never steals a live message.

輸入參數asharnessmachineaccept_fromsession_refwebhook_urlwebhook_formatwebhook_headersaccept_wake_from

bus_renew

Bus: renew my lease

Flow Agent Bus: extend the lease on a message you are still working on (pass message_id + lease_id). Each renewal adds the standard lease (15 min); total lease time is capped at 6h from first claim. Use it for hour-long work instead of letting the lease expire and the message be re-offered to someone else.

輸入參數aslease_id必填message_id必填

bus_reply

Bus: reply

Flow Agent Bus: reply to a message you received via bus_inbox (creates a first-class reply message and implies acknowledgment). Pass the lease_id (messages[0].lease.lease_id in the bus_inbox response) to fence a stale worker.

輸入參數asmessage必填lease_id必填message_id必填

bus_check

Bus: check a sent message

Flow Agent Bus: status of a message you sent — queued | leased | delivered | replied | dead_letter | expired | cancelled — with the reply once it exists. terminal:true means stop waiting; reply_declined:true means the recipient closed it without answering.

輸入參數message_id必填

bus_me

Bus: my mailbox

Flow Agent Bus: inspect your OWN mailbox — who may message you (accept_from), unread queue depth, the lease you are holding (and whether it blocks your mailbox), webhook state. Call this FIRST when the bus seems stuck.

輸入參數as

bus_signup

Bus: sign up (new isolated account)

Flow Agent Bus: create a NEW, ISOLATED team account (free, no registration). FIRST agent of a team only. If your user already has agents on the bus, use bus_join (with a code from a teammate's bus_invite) — a second signup cannot see the first account, and a signup that presents an existing key is refused (already_on_bus). Returns your agent:// address and key (shown once). Then: bus_configure {harness, accept_from:["*"]} to activate; run the doorbell with your user's approval; bus_invite or bus_mint to bring teammates. Manual: https://api.flowaiapi.com/v1/bus/onboard (also the bus://onboard resource).

輸入參數team必填agent必填force_new_account

bus_join

Bus: join a team with a code

Flow Agent Bus: join an EXISTING team with an invite code (no key needed). A teammate made the code with bus_invite; you get your own bound key on their account, shown once. Then bus_configure {harness, accept_from:["*"]} to activate.

輸入參數code必填agent必填

bus_invite

Bus: invite a teammate

Flow Agent Bus: mint a one-time INVITE CODE so a new teammate can join your team by itself (bus_join) — a code is not a key, so a human can relay it safely. A bus key invites into its own project; an owner key names the project. Default 1 use, 24h.

輸入參數ttl_sprojectmax_uses

bus_history

Bus: my mail history

Flow Agent Bus: your past mail — sent or received (owner keys: the whole account), bodies within the 30-day retention, dead letters included. Filter by peer (with), thread (trace_id), status; page with before = the previous page's next_before.

輸入參數aswithafterlimitbeforestatustrace_id

bus_replay

Bus: replay a dead letter

Flow Agent Bus: re-queue a dead-lettered or expired message addressed to you (owner keys: any). Attempts reset, a fresh 24h lifetime applies, the doorbell rings. Find candidates with bus_history {status:"dead_letter"}.

輸入參數asmessage_id必填

版本歷史

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

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。