trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

Issue on docs (MCP for codex doesn't work)

Open boxxxie opened this issue 9 months ago • 1 comments

Path: /building-with-ai

Seems like the mcp config for codex is broken in some way. i'm not sure how, though. I tried to install it for my project, but it would only write to the global config (maybe this is by design for codex)

i have the MCP working in gemini-cli fine.

.codex/config.toml

[mcp_servers.trigger]
command = "npx"
args = [ "[email protected]", "mcp", "--dev-only" ]

codex log:

╭────────────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.101.0)                         │
│                                                    │
│ model:     gpt-5.2-codex medium   /model to change │
│ directory: ~/projects/nvestiv-deals-workflow       │
╰────────────────────────────────────────────────────╯

  Tip: New Build faster with Codex.

⚠ MCP client for `trigger` timed out after 10 seconds. Add or adjust `startup_timeout_sec` in your config.toml:
  [mcp_servers.trigger]
  startup_timeout_sec = XX

⚠ MCP startup incomplete (failed: trigger)

• Model changed to gpt-5.2-codex medium

/mcp

🔌  MCP Tools

  • No MCP tools available.

  • trigger
    • Status: enabled
    • Auth: Unsupported
    • Command: npx [email protected] mcp --dev-only
    • Tools: (none)
    • Resources: (none)
    • Resource templates: (none)

boxxxie avatar Feb 13 '26 17:02 boxxxie

Codex uses a 10-second default timeout for MCP servers; the Trigger MCP server can take longer to start (especially with npx), so Codex was timing out before it was ready. Fix: In your Codex config (e.g. ~/.codex/config.toml), add a longer timeout for the Trigger server:

[mcp_servers.trigger]
command = "npx"
args = ["[email protected]", "mcp", "--dev-only"]
startup_timeout_sec = 30

(Use 60 if 30 isn’t enough on first run.)

isshaddad avatar Feb 24 '26 19:02 isshaddad