This page covers configuring MCP servers for Codex threads launched through Jaidu.

Overview

MCP servers provide additional functionality to Codex through standardized protocols. You can configure MCP servers for Codex in Jaidu, giving threads access to specialized tools like browser automation, remote logs, error tracking, or documentation lookups.

Accessing MCP Server Configuration

  1. Navigate to Settings in the Jaidu interface
  2. Click on MCP Servers in the settings sidebar
  3. Select the Codex profile whose MCP configuration you want to edit
MCP Server configuration page showing the Codex JSON configuration editor and popular servers
Jaidu provides one-click installation for popular MCP servers. Click a card to insert a pre-configured MCP server into the JSON configuration.
Popular MCP servers including Context7, Playwright, Exa, Chrome DevTools, and Dev Manager

Adding Custom MCP Servers

You can also add your own MCP servers by configuring them manually:
1

Select a Codex profile

Choose the Codex profile whose MCP configuration you want to edit.
2

Update Server Configuration JSON

In the Server Configuration (JSON) editor, add your custom MCP server configuration. The JSON will show the current configuration for the selected Codex profile, and you can modify it to include additional servers.Example addition:
{
  "mcpServers": {
    "existing_server": {
      "command": "npx",
      "args": ["-y", "some-existing-server"]
    },
    "my_custom_server": {
      "command": "node",
      "args": ["/path/to/my-server.js"]
    }
  }
}
3

Save and Test

After updating the JSON configuration:
  1. Click Save to apply changes
  2. Start or continue a Codex thread that uses MCP functionality
  3. Check Codex logs for any connection issues
These changes persist in the selected Codex MCP configuration and remain available across threads.

Best Practices

Server Selection: Choose MCP servers that complement the work you expect Codex to perform. For example, use Playwright for frontend work.
Limit MCP Servers: Avoid adding too many MCP servers to a single Codex profile. Too many servers and tools make tool selection noisier.

Next Steps