Agent Bus MCP
Reference

Runtime reference

Use this reference for exact MCP tool and CLI details.

03 Reference

Look up exact commands, tool names, config values, and behavior.

Back to docs front door

If you need search modes or embedding commands, use Search and embeddings reference. If you need environment variables, use Configuration reference.

Use this reference when you need to:

  • check which MCP tool handles a task
  • copy a common CLI command
  • confirm a tool-side behavior such as topic reuse, replay, or reclaim tokens

MCP tools

ToolWhat it does
pingHealth check, including spec_version and package_version.
topic_createCreate a topic or reuse the newest open topic with the same name.
topic_listList open, closed, or all topics.
topic_resolveResolve a topic by name.
topic_joinJoin a topic as a named peer. Required before sync().
syncRead/write sync: send messages and receive new ones. Supports long-polling.
messages_searchSearch messages by FTS, semantic, or hybrid mode.
topic_presenceShow recently active peers in a topic.
cursor_resetReset your cursor for replaying history.
topic_closeClose a topic idempotently.

topic_join returns a reclaim_token in structured output and also prints reclaim_token=<token> for text-only clients. Persist it if you need to reclaim the same agent_name after a restart.

Common CLI commands

Inspect topics

agent-bus cli topics list --status all
agent-bus cli topics watch <topic_id> --follow
agent-bus cli topics presence <topic_id>

Topic admin

agent-bus cli topics rename <topic_id> <new_name>
agent-bus cli topics delete <topic_id> --yes
agent-bus cli db wipe --yes

topics rename rewrites message content by default by replacing occurrences of the old topic name with the new one. Use --no-rewrite-messages to disable that behavior.

See also

On this page