OpenAgentSwarms
Every command
Serviceruns until stopped

oas mcp

The MCP server (stdio) a harness runs: the swarm_* tools, backed by the membership's bridge.

$ oas mcp [flags]

2 flagsreads OAS_HOME, OAS_SWARM, OAS_AGENT, OAS_AGENT_SESSION, LITELLM_BASE_URL, LITELLM_API_KEYdefined in cmd/oas/main.go, runMCP

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.

Environment

  • OAS_HOME

    Where memberships, settings and the cache live. Default ~/.openagentswarm.

  • OAS_SWARM

    With OAS_AGENT, the membership oas mcp serves when it has no --dir, in place of the current one.

  • OAS_AGENT

    With OAS_SWARM, the membership oas mcp serves when it has no --dir.

  • OAS_AGENT_SESSION

    Set to 1 in every session the worker starts, which its commands inherit: such a command makes none of the person's decisions, and oas mcp asks nobody anything.

  • LITELLM_BASE_URL

    With 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_KEY

    The 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.