wrap_codex_mcp_stdio
Wrap a Codex CLI stdio MCP server to enable reliable restarts by rewriting its config entry to use a respawning Node wrapper. Restart Codex CLI to apply.
Instructions
Wrap a Codex CLI stdio MCP server (from ~/.codex/config.toml) so it can be restarted reliably. Rewrites the MCP entry to launch mcpgo's Node wrapper that respawns the original command. Restart Codex CLI to take effect.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mcp_name": "<mcp_name>"
},
"name": "wrap_codex_mcp_stdio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mcp_name | Yes | The mcp_servers.<name> entry in ~/.codex/config.toml to wrap |