Connect OpenAI Codex CLI to Armada's MCP server and use natural language to orchestrate parallel AI agents across your repositories.
- Armada installed —
dotnet tool install -g armada - Codex CLI installed —
npm install -g @openai/codex - At least one vessel registered — a git repository for agents to work in
armada mcp installThis now writes the MCP configuration for all supported tools automatically. For Codex specifically, it writes ~/.codex/config.json. If you prefer to edit manually, use:
{
"mcpServers": {
"armada": {
"type": "http",
"url": "http://localhost:7891/rpc"
}
}
}Use --dry-run to preview without writing.
Armada runs Codex captains with --approval-mode full-auto by default, so all commands are auto-approved without user prompts. This is configurable via the captain's ApprovalMode property.
Start the Admiral server (armada server start), then:
codex --approval-mode full-auto "Check Armada status and tell me what's running."Codex will call armada_status and report active captains, missions, and voyages.
For Codex to effectively orchestrate Armada, paste the contents of INSTRUCTIONS_FOR_CODEX.md into your system prompt or project configuration. That document contains the complete tool reference, workflow patterns, and decision-making guidance Codex needs to manage fleets, voyages, missions, and captains.
"Register this repository as a vessel in the default fleet, then dispatch a voyage to add input validation to all REST API endpoints."
"Check on voyage vyg_abc123. If any missions failed, look at the events and redispatch with better prompts."
"Refactor the authentication system. Decompose into parallel missions and dispatch them."
If you prefer to configure MCP manually instead of using armada mcp install, add the following to ~/.codex/config.json:
HTTP Transport (recommended) — requires Admiral server running (armada server start):
{
"mcpServers": {
"armada": {
"type": "http",
"url": "http://localhost:7891/rpc"
}
}
}Stdio Transport — no server required, Armada runs as a subprocess:
{
"mcpServers": {
"armada": {
"type": "stdio",
"command": "armada",
"args": ["mcp", "stdio"]
}
}
}