Skip to content

Codex MCP usage is missing from recent lookback windows #478

@chr-evensen

Description

@chr-evensen

I’m seeing Codex MCP usage show up in long lookback ranges, but not in recent ones like today, week, or month.

I believe this is a parsing issue in the Codex provider. Recent Codex sessions still contain MCP activity, but the MCP completion event now appears as event_msg with type: "mcp_tool_call_end". Codeburn appears to be counting the surrounding token usage, but not attributing the MCP tool call itself.

What I see:

  • Codex sessions are detected normally.
  • Token usage is recorded.
  • MCP usage is missing from recent windows.
  • Older history still includes MCP usage.

What I expect:

  • MCP calls from recent Codex sessions should be attributed the same way as older sessions.

I have a local session example that reproduces this, but I’m not attaching the raw JSONL publicly because it contains workspace and session details. I can share a redacted excerpt if that helps.

If useful, I can also help turn this into a minimal repro snippet with just the relevant event shapes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions