Skip to content

Skip the stdio child-process transport on watchOS - #38

Merged
setoelkahfi merged 1 commit into
developmentfrom
fix/ed-mcp-watchos-no-child-process
Oct 16, 2026
Merged

setoelkahfi merged 1 commit into
developmentfrom
fix/ed-mcp-watchos-no-child-process

Conversation

@setoelkahfi

Copy link
Copy Markdown
Collaborator

watchOS hides execv the same way tvOS does, so nix (pulled in by process-wrap) doesn't compile for the watchOS targets. #37 fixed this for tvOS; this widens the same gate.

The rmcp child-process feature, the TokioChildProcess import and the Transport::Stdio arm are now gated on any(tvos, watchos). Transport::Http is unaffected. The doc comment on Transport::Stdio names both platforms.

SplitFire's agent framework needs this to build its aarch64-apple-watchos and watchos-sim slices. I checked that through the patch.crates-io override in the splitfire repo; the watchOS and tvOS xcframework slices both build.

watchOS hides execv the same way tvOS does, so nix under process-wrap
doesn't compile there. Gate the rmcp child-process feature, the
TokioChildProcess import and the Transport::Stdio arm on
any(tvos, watchos). Http stays available on both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This change extends the existing tvOS-specific exclusion of the stdio child-process transport to also include watchOS, due to watchOS hiding execv similarly to tvOS. The Cargo.toml dependency on rmcp with the child-process feature is gated on not tvOS and not watchOS. In the Rust source, the TokioChildProcess import and the Transport::Stdio match arm are gated on not tvOS and not watchOS. The doc comment for Transport::Stdio is updated to mention both tvOS and watchOS. The runtime error arm for Transport::Stdio on unsupported platforms is updated to cover both tvOS and watchOS. This enables building for watchOS targets that previously failed due to missing execv support.


Automated review by siGit Code Review · commit db0039c · see the review dashboard

Comment thread crates/ed-mcp/src/lib.rs
Comment thread crates/ed-mcp/src/lib.rs
Comment thread crates/ed-mcp/src/lib.rs
Comment thread crates/ed-mcp/src/lib.rs
@setoelkahfi
setoelkahfi requested a review from paydii October 16, 2026 09:00
@setoelkahfi setoelkahfi self-assigned this Oct 16, 2026

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me.

@setoelkahfi
setoelkahfi merged commit 6897e57 into development Oct 16, 2026
1 check passed
@setoelkahfi
setoelkahfi deleted the fix/ed-mcp-watchos-no-child-process branch October 16, 2026 10:10
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