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。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。