Skip to content

Flewrider/codex-multiagent-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Codex MCP Setup

Simple setup scripts to configure Codex CLI with a patched codex-mcp-server until upstream PR tuannvm/codex-mcp-server#94 merges.

Prerequisites

  • Codex CLI installed and in your PATH
  • Your Codex API configuration set up (run codex once to configure)
  • Git + Node.js (only required while the PR is unmerged)

Installation

1. Clone the repo

git clone https://github.com/Flewrider/codex-multiagent-setup.git
cd codex-multiagent-setup

2. Run setup

Windows (CMD/PowerShell):

setup.cmd

macOS/Linux/Git Bash/WSL:

chmod +x setup.sh
./setup.sh

Usage

Just run:

codex

Your Codex instance will pick up the MCP server from ~/.codex/config.toml.

Configuration

The setup script configures Codex to use a patched MCP server while PR tuannvm/codex-mcp-server#94 is unmerged. It checks the PR status and:

  • If merged, configures the upstream package via npx -y codex-mcp-server
  • If not merged, clones Flewrider/codex-mcp-server to ~/.codex/codex-mcp-server and uses the local dist/index.js build

The resulting MCP config values look like:

[mcp_servers.codex_worker]
command = "npx"
args = ["-y", "codex-mcp-server"]
startup_timeout_sec = 30
tool_timeout_sec = 300

When using the forked build, the command is node with a local dist/index.js path instead.

Troubleshooting

"codex: command not found"

Make sure Codex CLI is installed and in your PATH:

npm install -g @openai/codex
# or
codex --version

MCP server not connecting

Check that the tuannvm MCP server runs:

npx -y codex-mcp-server --help

If this errors, update Node.js/npm and ensure Codex CLI is installed.

If MCP servers still don't show up on Windows, ensure CODEX_HOME is set:

setx CODEX_HOME "%USERPROFILE%\.codex"

Then restart your terminal and retry codex mcp list.

Learn more

License

MIT

About

Launch Codex with MCP worker configuration to spawn and manage multiple parallel agent conversations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors