mcp-codex-agent-teams
v1.0.0
Published
Production MCP server for Codex-based multi-agent teams with tasks, inbox messaging, dependency DAGs, and git worktree isolation.
Maintainers
Readme
mcp-codex-agent-teams
Production MCP server for orchestrating Codex-powered agent teams with:
- Team lifecycle management
- Task graph orchestration (DAG, owner assignment, dependency safety)
- Lead/teammate inbox messaging
- Process-safe Codex execution and monitoring
- Git worktree/branch isolation per team
- Guided tool responses with "what to do next" steering
Why This Package
mcp-codex-agent-teams ports teammate-style orchestration into a Codex-native MCP server so agentic workflows are reliable, observable, and repeatable in real repositories.
Core Features
- Shared team worktree per team with dedicated branch isolation
- Teammate runtime scheduling with concurrency safeguards
- Task lifecycle (
pending,in_progress,completed,deleted) and cycle prevention depends_onscheduling support and dependency-aware execution patterns- Inbox protocol for direct messages, broadcast, plan/shutdown signals
- Runtime inspection (
agent_check) with optional output tails - Auto-commit support after team completion
- Response guidance footer on every tool call:
- Success:
Next Tool Suggestions - Error:
Recovery Guidance
- Success:
Requirements
- Node.js >= 20
codexCLI installed and authenticated- Git repository for real worktree execution flows
Install Codex CLI (if needed):
npm i -g @openai/codex
codex --helpInstallation
npm i -g mcp-codex-agent-teamsOr run without global install:
npx -y mcp-codex-agent-teamsMCP Client Configuration
Example mcp_servers.json entry:
{
"mcpServers": {
"codex-teams": {
"command": "npx",
"args": ["-y", "mcp-codex-agent-teams"],
"env": {
"CODEX_ROTATE": "0"
}
}
}
}Persistent State
All state is stored under:
~/.mcp-codex-agent-teamsIncludes:
teams/team configs and inboxestasks/team task filesgroups/wave/group orchestration recordssessions/runtime session persistence
Tool Surface
Team
team_createteam_deleteteam_read_config
Agents
agent_spawnagent_force_stopagent_checkshutdown_process_approved
Messaging
message_sendinbox_read
Tasks
task_createtask_updatetask_listtask_get
Recommended Workflow
team_createtask_create(create all major work units)task_update(owner + dependency edges)agent_spawn(start teammates)agent_check/inbox_read/message_send(coordinate)task_update(mark progress/completion)shutdown_process_approved(if requested)team_delete(cleanup when done)
Tool responses include explicit next-step guidance to keep orchestration tight and predictable.
Quick CLI Validation (mcp-cli)
mcp-cli info codex-teams
mcp-cli info codex-teams agent_spawn
mcp-cli call codex-teams team_create '{"team_name":"demo-team","base_cwd":"/path/to/repo"}'
mcp-cli call codex-teams task_create '{"team_name":"demo-team","subject":"Implement","description":"Build feature X"}'
mcp-cli call codex-teams task_list '{"team_name":"demo-team"}'Development
pnpm install
pnpm build
pnpm test --runInBand
pnpm lintRun locally:
pnpm devRelease
- npm package:
mcp-codex-agent-teams - GitHub repo:
yigitkonur/mcp-codex-agent-teams - CI validates build, tests, lint, formatting
- Publish workflow uses
NPM_TOKENGitHub Actions secret
Security Notes
- This server can execute Codex tasks that run commands in repo worktrees.
- Use least-privilege repos/tokens in CI.
- Review teammate prompts and ownership transitions before execution.
License
ISC
