[4/4] Honor Streamable HTTP MCP placement#18584
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
d2f4117 to
f11defd
Compare
fb63260 to
d466d81
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d466d81fd7
ℹ️ 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".
f11defd to
48f6619
Compare
d466d81 to
3f8376a
Compare
48f6619 to
c02a707
Compare
3f8376a to
3efddf5
Compare
c02a707 to
4bd6bdf
Compare
3efddf5 to
e523eb5
Compare
4bd6bdf to
7914b4b
Compare
e523eb5 to
eb3a2c3
Compare
7914b4b to
f4d2712
Compare
eb3a2c3 to
d01334e
Compare
f4d2712 to
c84554f
Compare
d01334e to
c5abe6b
Compare
c84554f to
cedd12a
Compare
c5abe6b to
20d9837
Compare
cedd12a to
6c3949a
Compare
20d9837 to
42d9202
Compare
6c3949a to
abc0092
Compare
42d9202 to
aa47f19
Compare
abc0092 to
5af5bf4
Compare
aa47f19 to
648f5b5
Compare
5af5bf4 to
1134f26
Compare
ff5e665 to
ed7097f
Compare
cc6877e to
f3c23be
Compare
ed7097f to
030a2e9
Compare
f3c23be to
2c8faef
Compare
030a2e9 to
22aa3a9
Compare
2c8faef to
65fca0b
Compare
22aa3a9 to
0e73215
Compare
65fca0b to
4417ed7
Compare
0e73215 to
561c8ee
Compare
4417ed7 to
90e0e87
Compare
561c8ee to
e954a84
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5fab4399d6
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a6e52411ed
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1943cc1e89
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3888b706a0
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a63c26fde6
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 317c16996b
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e31518b0e5
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 81beb79be5
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
codex/codex-rs/rmcp-client/tests/streamable_http_test_support.rs
Lines 120 to 127 in 02f2a14
RmcpClient::new_remote_streamable_http_client now expects LazyRemoteExecServerClient, but this helper still forwards an ExecServerClient. That type mismatch breaks compilation of the rmcp-client remote Streamable HTTP integration tests.
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7321774d0f
ℹ️ 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".
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
|
@codex review this |
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Co-authored-by: Codex <noreply@openai.com>
Why
Streamable HTTP MCP needs to honor the same
experimental_environmentplacement rules as stdio.Without that, a session running in a remote environment can accidentally route Streamable HTTP servers through the remote runtime even when the server is configured as local. That changes the documented placement behavior and can break
localhostor private-network MCP endpoints that are only reachable from the orchestrator.This PR wires the real
codex-mcpstartup path so:experimental_environment = "remote"uses the remote HTTP capabilityexperimental_environment = "local"or unset stays localWhat
codex-mcp/src/mcp_connection_manager.rsso Streamable HTTP placement is chosen fromexperimental_environment, matching the existing stdio pattern.ReqwestHttpClientfor local Streamable HTTP servers and the selected environment'sHttpClientfor remote ones.core/tests/suite/rmcp_client.rsfor:rmcp-client/src/bin/test_streamable_http_server.rsso the same test server binary works in both local and remote setups, including host-aware OAuth metadata and the resources/tools exercised by the integration tests.Verification
Stack