Wire MCP servers into Codex runtime sessions - #496
Draft
eladrave wants to merge 21 commits into
Draft
Conversation
Author
|
Follow-up reliability fixes are now included in the branch:
Verification:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
thread/startrequestRoot cause
Codex-backed agents retained MCP definitions in LAP, but the runtime did not project them into the Codex thread configuration. Once projected, the built-in platform MCP exposed additional interoperability and ownership problems:
Security and compatibility
LAP_GATEWAY_API_KEY); its value is never copied into Codex thread configuration.platformMCP after its public origin and/mcp/platform/path are validated againstLAP_GATEWAY_MCP_BASE_URL.LAP_GATEWAY_MCP_INTERNAL_BASE_URL.run_sub_agentwithout native collaboration or account apps.Validation
Dependency
This is a stacked PR based on #494, which introduces the Codex app-server runtime. The incremental bridge and orchestration work is contained in the eleven commits after the current #494 head. Once #494 merges, GitHub will automatically reduce this PR's diff to those follow-up changes.