Skip to content

[7/8] Cover MCP stdio tests with executor placement#18025

Merged
aibrahim-oai merged 1 commit intodev/remote-mcp-executor-stdiofrom
dev/remote-mcp-stdio-tests
Apr 16, 2026
Merged

[7/8] Cover MCP stdio tests with executor placement#18025
aibrahim-oai merged 1 commit intodev/remote-mcp-executor-stdiofrom
dev/remote-mcp-stdio-tests

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented Apr 15, 2026

Summary

  • Parameterize existing stdio MCP core tests over local and executor-backed placement.
  • Keep existing assertions and request/response checks intact.
  • Fill a missing MCP server environment field in the JS REPL MCP test fixture.

Testing

  • cargo check -p codex-core --test all
  • Not run: cargo test per repo instruction; CI will cover.

Stack

o  #18027 [8/8] Fail exec client operations after disconnect
│
@  #18025 [7/8] Cover MCP stdio tests with executor placement
│
o  #18089 [6/8] Wire remote MCP stdio through executor
│
o  #18088 [5/8] Add executor process transport for MCP stdio
│
o  #18087 [4/8] Abstract MCP stdio server launching
│
o  #18020 [3/8] Add pushed exec process events
│
o  #18086 [2/8] Support piped stdin in exec process API
│
o  #18085 [1/8] Add MCP server environment config
│
o  main

@aibrahim-oai aibrahim-oai changed the title [7/7] Cover MCP stdio tests with executor placement [7/8] Cover MCP stdio tests with executor placement Apr 16, 2026
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from d997af8 to 8bd31fe Compare April 16, 2026 05:10
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from c238b74 to 04edeeb Compare April 16, 2026 05:10
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 8bd31fe to e2510f7 Compare April 16, 2026 06:20
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from 04edeeb to db17256 Compare April 16, 2026 06:20
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from e2510f7 to 912b400 Compare April 16, 2026 13:55
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch 2 times, most recently from aa58931 to c4a27cd Compare April 16, 2026 13:59
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 912b400 to 7e94d1f Compare April 16, 2026 13:59
aibrahim-oai added a commit that referenced this pull request Apr 16, 2026
## Summary
- Add an MCP server environment setting with local as the default.
- Thread the default through config serialization, schema generation,
and existing config fixtures.

## Stack
```text
o  #18027 [8/8] Fail exec client operations after disconnect
│
o  #18025 [7/8] Cover MCP stdio tests with executor placement
│
o  #18089 [6/8] Wire remote MCP stdio through executor
│
o  #18088 [5/8] Add executor process transport for MCP stdio
│
o  #18087 [4/8] Abstract MCP stdio server launching
│
o  #18020 [3/8] Add pushed exec process events
│
o  #18086 [2/8] Support piped stdin in exec process API
│
@  #18085 [1/8] Add MCP server environment config
│
o  main
```

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 7e94d1f to 2f30ec1 Compare April 16, 2026 15:56
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch 2 times, most recently from 1e3bb61 to fa90957 Compare April 16, 2026 16:13
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 2f30ec1 to 74ca01c Compare April 16, 2026 16:13
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from fa90957 to e420153 Compare April 16, 2026 16:16
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch 2 times, most recently from 87f5c4c to a375ead Compare April 16, 2026 16:22
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from e420153 to 1722c69 Compare April 16, 2026 16:22
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from a375ead to 19c53cb Compare April 16, 2026 16:29
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch 2 times, most recently from 580771d to f694598 Compare April 16, 2026 16:42
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch 2 times, most recently from 2f93c75 to 6ca1f6b Compare April 16, 2026 16:43
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch 2 times, most recently from c2713b6 to acd96bd Compare April 16, 2026 16:44
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 6ca1f6b to 825a0cb Compare April 16, 2026 16:44
aibrahim-oai added a commit that referenced this pull request Apr 16, 2026
## Summary
- Add an explicit stdin mode to process/start.
- Keep normal non-interactive exec stdin closed while allowing
pipe-backed processes.

## Stack
```text
o  #18027 [8/8] Fail exec client operations after disconnect
│
o  #18025 [7/8] Cover MCP stdio tests with executor placement
│
o  #18089 [6/8] Wire remote MCP stdio through executor
│
o  #18088 [5/8] Add executor process transport for MCP stdio
│
o  #18087 [4/8] Abstract MCP stdio server launching
│
o  #18020 [3/8] Add pushed exec process events
│
@  #18086 [2/8] Support piped stdin in exec process API
│
o  #18085 [1/8] Add MCP server environment config
│
o  main
```

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 825a0cb to a58a26f Compare April 16, 2026 18:21
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from acd96bd to 88e5a56 Compare April 16, 2026 18:21
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from a58a26f to cfba2ef Compare April 16, 2026 18:32
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch 2 times, most recently from adbbe17 to c970502 Compare April 16, 2026 18:40
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from cfba2ef to 109a540 Compare April 16, 2026 18:43
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from c970502 to 884fe95 Compare April 16, 2026 18:43
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 109a540 to 81a3281 Compare April 16, 2026 18:44
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from 884fe95 to 60f3ca5 Compare April 16, 2026 18:44
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio branch from 81a3281 to fdfe2ca Compare April 16, 2026 18:52
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-stdio-tests branch from 60f3ca5 to a087158 Compare April 16, 2026 18:52
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
#[serial(mcp_test_value)]
async fn stdio_server_round_trip() -> anyhow::Result<()> {
async fn stdio_server_round_trip(stdio_environment: StdioMcpTestEnvironment) -> anyhow::Result<()> {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you use the build_remote_aware infra here?

Base automatically changed from dev/remote-mcp-stdio to dev/remote-mcp-executor-stdio April 16, 2026 21:33
@aibrahim-oai aibrahim-oai merged commit a087158 into dev/remote-mcp-executor-stdio Apr 16, 2026
37 checks passed
@aibrahim-oai aibrahim-oai deleted the dev/remote-mcp-stdio-tests branch April 16, 2026 21:33
@github-actions github-actions bot locked and limited conversation to collaborators Apr 16, 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