Consuming upstream servers
Register MCP servers inpolicy.yaml under mcp_servers. Swarm acts as the client.
policy.yaml
prefix (so a tool list_tables on the pg server becomes pg.list_tables). An
agent references the prefixed name in its tools list.
An unreachable server logs a warning and is skipped; it does not abort boot. An HTTP
connection is maintained for the platform lifetime with exponential backoff reconnect; a
stdio process is spawned at boot and respawned on unexpected exit.
Exposing the runtime over MCP
swarm serve binds an MCP listener (the /mcp and /tools/ routes on the runtime’s HTTP
listener). External tools can drive the runtime through it. The standalone binary serves this
on 127.0.0.1:8081 by default.
Tool resolution
An agent only sees the tools in itstools list (plus universal, emit, and generated entity
tools), regardless of how many tools a server exposes. The contract is the filter, not the
source. See Tools.
