Skip to content

[codex] Add plugin id to MCP tool call items#23737

Merged
mzeng-openai merged 3 commits into
mainfrom
dev/mzeng/mcp_tool_call_plugin_id_item
May 21, 2026
Merged

[codex] Add plugin id to MCP tool call items#23737
mzeng-openai merged 3 commits into
mainfrom
dev/mzeng/mcp_tool_call_plugin_id_item

Conversation

@mzeng-openai
Copy link
Copy Markdown
Collaborator

@mzeng-openai mzeng-openai commented May 20, 2026

Add owning plugin id to MCP tool call items so we can better filter them at plugin level.

Summary

  • add optional plugin_id to MCP tool-call items and legacy begin/end events
  • propagate plugin metadata into emitted core items and app-server v2 ThreadItem::McpToolCall
  • preserve plugin ids through app-server replay/redaction paths and regenerate v2 schema fixtures

Testing

  • just write-app-server-schema
  • just fmt
  • just fix -p codex-core
  • cargo test -p codex-protocol -p codex-app-server-protocol
  • cargo test -p codex-app-server-protocol
  • cargo test -p codex-core mcp_tool_call_item_includes_plugin_id --lib
  • cargo check -p codex-tui --tests
  • cargo check -p codex-app-server --tests
  • git diff --check

Notes

  • just fix -p codex-core completed with two non-fatal too_many_arguments warnings on the touched MCP notification helpers.
  • A broader cargo test -p codex-core run passed core unit tests, then hit shell/sandbox/snapshot failures in the integration target.
  • A broader app-server downstream run hit the existing in_process::tests::in_process_start_clamps_zero_channel_capacity stack overflow; cargo test -p codex-exec also hit the existing sandbox expectation mismatch in thread_lifecycle_params_include_legacy_sandbox_when_no_active_profile.

@mzeng-openai mzeng-openai marked this pull request as ready for review May 20, 2026 21:33
@mzeng-openai mzeng-openai requested a review from a team as a code owner May 20, 2026 21:33
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1b66bd07b2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/core/src/tools/handlers/mcp_resource.rs
@mzeng-openai mzeng-openai merged commit 0a4179b into main May 21, 2026
31 checks passed
@mzeng-openai mzeng-openai deleted the dev/mzeng/mcp_tool_call_plugin_id_item branch May 21, 2026 00:02
@github-actions github-actions Bot locked and limited conversation to collaborators May 21, 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