codeburn icon indicating copy to clipboard operation
codeburn copied to clipboard

fix(codex): attribute MCP tool-call end events

Open fightingst opened this issue 5 months ago • 0 comments

Summary

  • Normalize recent Codex MCP function_call entries with namespace: "mcp__..." into CodeBurn's canonical mcp__server__tool tool names.
  • Parse event_msg / mcp_tool_call_end events when Codex emits only the completion event, while de-duping paired events by call_id so one MCP invocation is not counted twice.
  • Add Codex provider regression coverage for both paired function_call + mcp_tool_call_end logs and end-only logs.

Target issues

Closes #478

Testing

  • [x] npm test -- --run tests/providers/codex.test.ts
  • [x] npx tsc --noEmit --pretty false
  • [x] Inspected a real local Codex JSONL sequence with function_call namespace + matching mcp_tool_call_end call_id
  • [x] npm test passes
  • [x] npm run build succeeds

fightingst avatar Jun 13 '26 03:06 fightingst