Skip to content

Rename the Upstream and Bridge process types - #502

Merged
lynnswap merged 2 commits into
mainfrom
claude/rename-process-types
Nov 20, 2026
Merged

lynnswap merged 2 commits into
mainfrom
claude/rename-process-types

Conversation

@lynnswap

Copy link
Copy Markdown
Owner

Summary

Renames the types and messages that still describe the bridge design. The shared stdio process layer in XcodeMCPCore uses MCPProcess names, host-specific code uses Host, and the SDK's runtime error is MCPRuntimeError. This is the first of two PRs for #488; the Proxy → Server rename of targets, products, and commands follows separately.

Details

  • Upstream namespace and session types become MCPProcess, MCPProcessSession, MCPProcessSessionFactory, and MCPProcessLauncher. They are not called Host because the SDK's .process(command:arguments:environment:) transport also runs on them, and that process is any MCP server, not a host.
  • UpstreamStderrLog* becomes HostStderrLog*; MCPBridgeRuntimeError becomes MCPRuntimeError; MCPBridgeInvocation becomes MCPProcessInvocation.
  • Behavior visible outside the package:
    • The opt-in debug snapshot moves from /debug/upstreams to /debug/hosts. No alias is kept; the migration guide notes the move.
    • Host error messages say host instead of upstream (host unavailable, host timeout, invalid host response). JSON-RPC error codes are unchanged.
  • Names that refer to Apple's mcpbridge, the GUI bridge tools, and the native ABIBridge layer stay as they are.

Review focus

  • Whether dropping /debug/upstreams without an alias is acceptable. It is served only with --debug-endpoints on a loopback listener.

Testing

  • swift build --build-tests
  • swift test --no-parallel --filter 'XcodeMCPProcessRuntimeTests|XcodeMCPCoreTests|XcodeMCPKitTests|XcodeMCPProxyRuntimeTests|XcodeMCPProxyHTTPTests|ProxyCLITests|HTTPHandlerTests|XcodeMCPProxyServerTests': all passed.
  • scripts/verify-proxy-target-boundaries.sh

Related

🤖 Generated with Claude Code

lynnswap and others added 2 commits November 20, 2026 13:13
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T04:15:29.087345Z b344e04 PR opened
🔒 Security Review ✅ Completed 2026-11-20T04:18:16.968630Z b344e04 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lynnswap
lynnswap merged commit dd18d09 into main Nov 20, 2026
6 checks passed
@lynnswap
lynnswap deleted the claude/rename-process-types branch November 20, 2026 04:34
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.

1 participant