Every command
oas mcp
The MCP server (stdio) a harness runs: the swarm_* tools, backed by the membership's bridge.
$ oas mcp [flags]
It starts the bridge if it isn't running. Without --dir it serves the current membership, or the one OAS_SWARM and OAS_AGENT name.
Flags
Each takes one dash or two, and its value after a space or =. A switch is on by itself, or =false.
membership folder
- --headlessswitch
no person is at this session (the worker's): ask nobody anything
Environment
OAS_HOMEWhere memberships, settings and the cache live. Default ~/.openagentswarm.
OAS_SWARMWith OAS_AGENT, the membership
oas mcpserves when it has no --dir, in place of the current one.OAS_AGENTWith OAS_SWARM, the membership
oas mcpserves when it has no --dir.OAS_AGENT_SESSIONSet to 1 in every session the worker starts, which its commands inherit: such a command makes none of the person's decisions, and
oas mcpasks nobody anything.LITELLM_BASE_URLWith LITELLM_API_KEY, a gateway the headless worker's model calls go to in place of the harness's default. Set it where the bridge starts.
LITELLM_API_KEYThe key for LITELLM_BASE_URL. The bridge keeps it: the harness gets a loopback proxy and a token that works only there.
Examples
$ oas mcp --dir ~/.openagentswarm/swarms/otters/founder
See also
Read from the CLI: each flag's type, default and usage are its flag set's own, and a test fails when this page and the code disagree.