Skip to content

Remove initializeHandshake from the server configuration - #501

Merged
lynnswap merged 1 commit into
mainfrom
claude/server-initialize-config
Nov 20, 2026
Merged

lynnswap merged 1 commit into
mainfrom
claude/server-initialize-config

Conversation

@lynnswap

Copy link
Copy Markdown
Owner

Summary

Removes initializeHandshake from XcodeMCPProxyServerConfiguration. Every host now receives one fixed initialize request: client name XcodeMCPKit, version dev, the current protocol version, and no client capabilities. With the option gone, XcodeMCPProxyKit no longer depends on the XcodeMCPKit product.

Details

  • The owned headless host only checks that clientInfo is well formed, so the option affected only the GUI mcpbridge connection and the name that .automatic approval matches in Xcode's connection dialog. That name is now always XcodeMCPKit, which the approver already matched.
  • The client-version lookup from Xcode's IDEChat*Version defaults is removed. It only applied when an embedder set a client name such as Claude; it never matched XcodeMCPKit.
  • ProxyRuntimeConfiguration.JSONValue and the handshake override types are deleted, so XcodeMCPWire.JSONValue is the only internal JSON value type.
  • scripts/verify-proxy-target-boundaries.sh now fails if XcodeMCPProxyKit depends on XcodeMCPKit again.
  • Source-breaking for embedders that set initializeHandshake, or that used MCPJSONValue through XcodeMCPProxyKit alone. The migration guide covers both.

Review focus

  • Whether a fixed client name is acceptable for embedders that relied on a custom name on the GUI route.

Testing

  • swift build --build-tests
  • swift test --no-parallel --filter 'ConfigurationRuntimeTests|XcodeMCPProxyServerTests|ServerCommandTests|NativeHostBrokerTests|NativeHostConnectionTests|PublicProductContractTests': 100 tests passed, including the external product fixture build.
  • scripts/verify-proxy-target-boundaries.sh
  • Not run: a live GUI Xcode approval dialog.

Related

🤖 Generated with Claude Code

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-20T00:45:01.973262Z 78c6a30 PR opened
🔒 Security Review ✅ Completed 2026-11-20T00:47:42.348752Z 78c6a30 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 428ccf0 into main Nov 20, 2026
7 checks passed
@lynnswap
lynnswap deleted the claude/server-initialize-config branch November 20, 2026 01:42
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.

Limit server configuration to options the owned host uses

1 participant