Skip to content

Reduce XcodeMCPCore to code shared by the SDK and the server #485

Closed

Description

@lynnswap

Why

XcodeMCPCore collects pieces that each have one consumer: the Streamable HTTP client is used only by the SDK, ProcessRunner only by XcodeMCPProxyRuntime, ProcessControlClient only by XcodeMCPProxyKit, and RuntimeScheduledTimeout only by XcodeMCPProxyHTTP. The code that the SDK and the server do share (the stdio process session, endpoint discovery, and native host lookup) uses swift-nio locks and swift-log. Because XcodeMCPKit depends on XcodeMCPCore, SDK consumers resolve both packages although the SDK imports neither.

What

  • XcodeMCPKit and XcodeMCPKitTesting depend only on Foundation and package targets that the client uses. The target graph of the XcodeMCPKit product contains no swift-nio or swift-log module.

  • Each single-consumer piece of XcodeMCPCore lives in the target that uses it.

  • XcodeMCPCore keeps only code that both the SDK and the server use, and depends only on XcodeMCPWire.

  • The server logs the same process diagnostics as before. The SDK reports them through unified logging instead of swift-log's default standard error handler.

  • Public API and server behavior are otherwise unchanged.

  • Ref: Bring the package structure and SDK API in line with the owned-host design #483

Activity

  1. changed the title [-]Dissolve XcodeMCPCore so the SDK product has no server dependencies[/-] [+]Reduce XcodeMCPCore to code shared by the SDK and the server[/+] on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions