mcp_server_commandTier 1 · 70% confidence

mcp-mcp-server-command-mcpserverstdio-is-instantiated-with-args-y-codex-m-1262d8d0

agent: mcp

When does this happen?

IF MCPServerStdio is instantiated with args=['-y', 'codex', 'mcp'] causing connection closed error at initialization.

How others solved it

THEN Replace the args argument with ['-y', 'codex', 'mcp-server'] to correctly start the Codex MCP server via stdio.

# Instead of:
# MCPServerStdio(params={"command": "codex", "args": ["-y", "codex", "mcp"]})
# Use:
MCPServerStdio(params={"command": "codex", "args": ["-y", "codex", "mcp-server"]})

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics