Skip to content

v1.2.2 - MCP Tool Call Approval Fix (Codex >= 0.139)

Choose a tag to compare

@ben-vargas ben-vargas released this 11 Jun 23:32

Fixed

  • Handle the mcpServer/elicitation/request server request introduced by Codex CLI >= 0.139 so MCP tool calls are no longer always rejected (#33). MCP tool call approval elicitations (_meta.codex_approval_kind === 'mcp_tool_call') are accepted when autoApprove is true and declined otherwise; all other elicitations (for example plugin install suggestions and URL elicitations) are declined instead of failing with JSON-RPC -32601.

Added

  • New typed onMcpElicitation handler on serverRequests for custom MCP elicitation handling; onUnhandled is still consulted as a fallback for this method, preserving existing workarounds.

Validation

  • npm run validate
  • Verified end-to-end against Codex CLI 0.139.0: autoApprove: true executes MCP tool calls; autoApprove: false declines gracefully.