mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## What changed Add `ToolLifecycleContributor::mcp_tool_request_meta` so an extension can use thread and turn data and the captured tool registration to attach an entry to the outgoing request's `_meta`. Codex rejects duplicate keys. Expose the registering plugin's package ID in `McpToolContext` so contributors can scope metadata to that plugin. Export `PERSISTED_MCP_RESULT_MAX_BYTES`, the existing 64 KiB limit for untruncated MCP results in durable history. ## Testing Extend the multi-environment MCP scenario to check that only the call for the selected plugin receives the metadata and that the result callback sees the same plugin context. GitOrigin-RevId: 25a2afc5402a5c9323de184313d614aede3692fb