Skip to content

Emit plugin ID on MCP tool call analytics events - #27483

Merged
chrisdong-oai merged 1 commit into
mainfrom
codex/emit-plugin-id-mcp-analytics
Jun 11, 2026
Merged

Emit plugin ID on MCP tool call analytics events#27483
chrisdong-oai merged 1 commit into
mainfrom
codex/emit-plugin-id-mcp-analytics

Conversation

@chrisdong-oai

Copy link
Copy Markdown
Contributor

MCP tool-call items already carry the runtime-resolved plugin owner, but the analytics reducer dropped that field. Forwarding the existing value provides direct attribution without downstream server-name inference.

Summary

  • emit plugin_id on codex_mcp_tool_call_event payloads
  • preserve null for MCP calls without a plugin owner
  • verify the serialized field through the MCP item lifecycle test

Test

  • cd codex-rs && just test -p codex-analytics
  • cd codex-rs && just fix -p codex-analytics
  • cd codex-rs && just fmt

@chrisdong-oai
chrisdong-oai marked this pull request as ready for review June 11, 2026 04:19
@chrisdong-oai
chrisdong-oai merged commit df9dd22 into main Jun 11, 2026
31 checks passed
@chrisdong-oai
chrisdong-oai deleted the codex/emit-plugin-id-mcp-analytics branch June 11, 2026 16:55
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants