Skip to content

[2/8] Support piped stdin in exec process API#17985

Closed
aibrahim-oai wants to merge 1 commit intoopenai:dev/remote-mcp-env-configfrom
aibrahim-oai:dev/remote-mcp-exec-stdin
Closed

[2/8] Support piped stdin in exec process API#17985
aibrahim-oai wants to merge 1 commit intoopenai:dev/remote-mcp-env-configfrom
aibrahim-oai:dev/remote-mcp-exec-stdin

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

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

Summary

  • Add an explicit stdin mode to process/start.
  • Keep normal non-interactive exec stdin closed while allowing pipe-backed processes.

Stack

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

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: cf207553e9

ℹ️ 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/exec-server/src/protocol.rs
@aibrahim-oai aibrahim-oai changed the title Support piped stdin in exec process API [2/5] Support piped stdin in exec process API Apr 15, 2026
@aibrahim-oai aibrahim-oai changed the title [2/5] Support piped stdin in exec process API [2/6] Support piped stdin in exec process API Apr 15, 2026
@aibrahim-oai aibrahim-oai changed the title [2/6] Support piped stdin in exec process API [2/7] Support piped stdin in exec process API Apr 15, 2026
@aibrahim-oai aibrahim-oai changed the title [2/7] Support piped stdin in exec process API [2/8] Support piped stdin in exec process API Apr 16, 2026
/// Controls whether the executor keeps a writable stdin pipe for this
/// process.
///
/// Normal non-interactive exec commands use `Closed` so programs that read
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.

too much text

/// stdin see EOF immediately. Remote MCP stdio uses `Piped` because rmcp
/// must write JSON-RPC request bytes to the child process stdin after the
/// process has started.
pub stdin: ExecStdinMode,
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.

pipe_stdin: bool ?

env_policy: /*env_policy*/ None,
env: Default::default(),
tty: false,
stdin: ExecStdinMode::Closed,
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.

New feature needs testing

Copy link
Copy Markdown
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

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

Tests !

Add an explicit stdin mode to process/start so non-tty processes can either keep stdin closed or expose a writable pipe.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-env-config branch from 95d69db to e776798 Compare April 16, 2026 05:10
@aibrahim-oai aibrahim-oai force-pushed the dev/remote-mcp-exec-stdin branch from cf20755 to 315ecdf Compare April 16, 2026 05:11
@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

Recreated as #18086 from an openai/codex head branch so internal CI uses the normal credentials path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants