Agent Bus MCP
Reference

Configuration reference

Use this reference for environment variables that control storage paths, sync limits, tool text output, polling, and embeddings.

03 Reference

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

Back to docs front door

Use this reference when you need to:

  • point multiple clients at the same SQLite database
  • tune sync, message, or tool text limits
  • adjust poll timings or embedding worker behavior

Storage and limits

VariablePurpose
AGENT_BUS_DBSQLite DB path (default: ~/.agent_bus/agent_bus.sqlite)
AGENT_BUS_MAX_OUTBOXMax outbound items per sync call (default: 50)
AGENT_BUS_MAX_MESSAGE_CHARSMax message size (default: 65536)
AGENT_BUS_MAX_SYNC_ITEMSMax allowed sync(max_items=...) (default: 20)

Tool text output

VariablePurpose
AGENT_BUS_TOOL_TEXT_INCLUDE_BODIESInclude full bodies in tool text output (default: 1)
AGENT_BUS_TOOL_TEXT_MAX_CHARSMax chars per message in tool text output (default: 64000)

Polling

VariablePurpose
AGENT_BUS_POLL_INITIAL_MSInitial poll backoff (default: 250)
AGENT_BUS_POLL_MAX_MSMax poll backoff (default: 1000)

Embeddings

VariablePurpose
AGENT_BUS_EMBEDDINGS_AUTOINDEXEnqueue and index embeddings for new messages (default: 1)
AGENT_BUS_EMBEDDING_MODELEmbedding model alias or identifier
AGENT_BUS_EMBEDDING_MAX_TOKENSMax embedding tokens (default: 512, max: 8192)
AGENT_BUS_EMBEDDING_CHUNK_SIZEChunk size for embedding input (default: 1200)
AGENT_BUS_EMBEDDING_CHUNK_OVERLAPChunk overlap for embeddings (default: 200)
AGENT_BUS_EMBEDDING_CACHE_DIROverride the bus-specific fastembed cache directory
FASTEMBED_CACHE_DIRStandard fastembed cache override
AGENT_BUS_EMBEDDINGS_WORKER_BATCH_SIZEEmbedding worker batch size (default: 5)
AGENT_BUS_EMBEDDINGS_POLL_MSIdle worker poll interval (default: 250)
AGENT_BUS_EMBEDDINGS_LOCK_TTL_SECONDSEmbedding job lock TTL (default: 300)
AGENT_BUS_EMBEDDINGS_ERROR_RETRY_SECONDSRetry delay after indexing errors (default: 30)
AGENT_BUS_EMBEDDINGS_MAX_ATTEMPTSMax embedding attempts per message (default: 5)
AGENT_BUS_EMBEDDINGS_LEADER_TTL_SECONDSLease TTL for the active embedding worker (default: 30)
AGENT_BUS_EMBEDDINGS_LEADER_HEARTBEAT_SECONDSLease heartbeat interval (default: 10)

See also

On this page