The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of mcp-swift-sdk, reference 0.9.0 (974293), with Swift 6.2 (beta) for macOS (SPM) on 24 Jun 2025 05:43:11 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/modelcontextprotocol/swift-sdk.git
Reference: 0.9.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/modelcontextprotocol/swift-sdk
 * tag               0.9.0      -> FETCH_HEAD
HEAD is now at 9742933 Bump version to 0.9.0
Cloned https://github.com/modelcontextprotocol/swift-sdk.git
Revision (git rev-parse @):
9742933d2ff250212a04aed39b123bcc63a21e9c
SUCCESS checkout https://github.com/modelcontextprotocol/swift-sdk.git at 0.9.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/modelcontextprotocol/swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[4/6] Compiling CSystem shims.c
[5/6] Write swift-version-1EA4D86E10B52AF.txt
[7/43] Compiling SystemPackage FileHelpers.swift
[8/43] Compiling SystemPackage FileOperations.swift
[9/43] Compiling SystemPackage FilePath.swift
[10/43] Compiling SystemPackage FilePathComponentView.swift
[11/43] Compiling SystemPackage FilePathComponents.swift
[12/43] Compiling SystemPackage FilePathParsing.swift
[13/46] Compiling SystemPackage Errno.swift
[14/46] Compiling SystemPackage ErrnoWindows.swift
[15/46] Compiling SystemPackage FileDescriptor.swift
[16/46] Emitting module SystemPackage
[17/46] Compiling SystemPackage Util+StringArray.swift
[18/46] Compiling SystemPackage Util.swift
[19/46] Compiling SystemPackage UtilConsumers.swift
[20/46] Compiling SystemPackage FilePathString.swift
[21/46] Compiling SystemPackage FilePathSyntax.swift
[22/46] Compiling SystemPackage FilePathTemp.swift
[23/46] Compiling SystemPackage FilePathTempPosix.swift
[24/46] Compiling SystemPackage FilePathTempWindows.swift
[25/46] Compiling SystemPackage FilePathWindows.swift
[26/46] Compiling SystemPackage FilePermissions.swift
[27/46] Compiling SystemPackage Backcompat.swift
[28/46] Compiling SystemPackage CInterop.swift
[29/46] Compiling SystemPackage RawBuffer.swift
[30/46] Compiling SystemPackage Syscalls.swift
[31/46] Compiling SystemPackage WindowsSyscallAdapters.swift
[32/46] Compiling SystemPackage Constants.swift
[33/46] Compiling SystemPackage Exports.swift
[34/46] Compiling SystemPackage Mocking.swift
[35/46] Compiling SystemPackage MachPort.swift
[36/46] Compiling SystemPackage PlatformString.swift
[37/46] Compiling SystemPackage SystemString.swift
[38/46] Compiling Logging Logging.swift
[39/46] Emitting module Logging
[40/46] Compiling Logging LogHandler.swift
[41/46] Compiling Logging MetadataProvider.swift
[42/46] Compiling Logging Locks.swift
[43/46] Emitting module EventSource
[44/46] Compiling EventSource EventSource.swift
[45/46] Compiling EventSource AsyncSequence+Events.swift
[46/46] Compiling EventSource AsyncEventsSequence.swift
[47/65] Compiling MCP Prompts.swift
[48/65] Compiling MCP Resources.swift
[49/65] Compiling MCP UnitInterval.swift
[50/65] Compiling MCP Ping.swift
[51/66] Emitting module MCP
[52/66] Compiling MCP NetworkTransport.swift
[53/66] Compiling MCP StdioTransport.swift
[54/66] Compiling MCP Error.swift
[55/66] Compiling MCP ID.swift
[56/66] Compiling MCP Tools.swift
[57/66] Compiling MCP Lifecycle.swift
[58/66] Compiling MCP Messages.swift
[59/66] Compiling MCP Sampling.swift
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Server/Server.swift:254:9: warning: capture of non-sendable type 'M.Type' in an isolated closure
252 |     public func withMethodHandler<M: Method>(
253 |         _ type: M.Type,
254 |         handler: @escaping @Sendable (M.Parameters) async throws -> M.Result
    |         `- warning: capture of non-sendable type 'M.Type' in an isolated closure
255 |     ) -> Self {
256 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Server/Server.swift:257:44: warning: capture of non-sendable type 'M.Type' in an isolated closure
255 |     ) -> Self {
256 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
257 |             let result = try await handler(request.params)
    |                                            `- warning: capture of non-sendable type 'M.Type' in an isolated closure
258 |             return Response(id: request.id, result: result)
259 |         }
[60/66] Compiling MCP Server.swift
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Server/Server.swift:254:9: warning: capture of non-sendable type 'M.Type' in an isolated closure
252 |     public func withMethodHandler<M: Method>(
253 |         _ type: M.Type,
254 |         handler: @escaping @Sendable (M.Parameters) async throws -> M.Result
    |         `- warning: capture of non-sendable type 'M.Type' in an isolated closure
255 |     ) -> Self {
256 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Server/Server.swift:257:44: warning: capture of non-sendable type 'M.Type' in an isolated closure
255 |     ) -> Self {
256 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
257 |             let result = try await handler(request.params)
    |                                            `- warning: capture of non-sendable type 'M.Type' in an isolated closure
258 |             return Response(id: request.id, result: result)
259 |         }
[61/66] Compiling MCP Transport.swift
[62/66] Compiling MCP HTTPClientTransport.swift
[63/66] Compiling MCP Value.swift
[64/66] Compiling MCP Versioning.swift
[65/66] Compiling MCP Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:305:25: warning: capture of non-sendable type 'M.Type' in an isolated closure
303 |                 // Add the pending request before attempting to send
304 |                 self.addPendingRequest(
305 |                     id: request.id,
    |                         `- warning: capture of non-sendable type 'M.Type' in an isolated closure
306 |                     continuation: continuation,
307 |                     type: M.Result.self
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:293:35: warning: capture of non-sendable type 'M.Type' in an isolated closure
291 |
292 |     /// Send a request and receive its response
293 |     public func send<M: Method>(_ request: Request<M>) async throws -> M.Result {
    |                                   `- warning: capture of non-sendable type 'M.Type' in an isolated closure
294 |         guard let connection = connection else {
295 |             throw MCPError.internalError("Client connection not initialized")
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:358:45: warning: capture of non-sendable type 'M.Type' in an isolated closure
356 |         /// The actual sending happens when the `withBatch` scope completes.
357 |         /// - Returns: A `Task` that will eventually produce the result or throw an error.
358 |         public func addRequest<M: Method>(_ request: Request<M>) async throws -> Task<
    |                                             `- warning: capture of non-sendable type 'M.Type' in an isolated closure
359 |             M.Result, Swift.Error
360 |         > {
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:371:33: warning: capture of non-sendable type 'M.Type' in an isolated closure
369 |                     Task {
370 |                         await client.addPendingRequest(
371 |                             id: request.id,
    |                                 `- warning: capture of non-sendable type 'M.Type' in an isolated closure
372 |                             continuation: continuation,
373 |                             type: M.Result.self
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:358:45: warning: capture of non-sendable type 'M.Type' in an isolated closure
356 |         /// The actual sending happens when the `withBatch` scope completes.
357 |         /// - Returns: A `Task` that will eventually produce the result or throw an error.
358 |         public func addRequest<M: Method>(_ request: Request<M>) async throws -> Task<
    |                                             `- warning: capture of non-sendable type 'M.Type' in an isolated closure
359 |             M.Result, Swift.Error
360 |         > {
[66/66] Compiling MCP Data+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:305:25: warning: capture of non-sendable type 'M.Type' in an isolated closure
303 |                 // Add the pending request before attempting to send
304 |                 self.addPendingRequest(
305 |                     id: request.id,
    |                         `- warning: capture of non-sendable type 'M.Type' in an isolated closure
306 |                     continuation: continuation,
307 |                     type: M.Result.self
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:293:35: warning: capture of non-sendable type 'M.Type' in an isolated closure
291 |
292 |     /// Send a request and receive its response
293 |     public func send<M: Method>(_ request: Request<M>) async throws -> M.Result {
    |                                   `- warning: capture of non-sendable type 'M.Type' in an isolated closure
294 |         guard let connection = connection else {
295 |             throw MCPError.internalError("Client connection not initialized")
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:358:45: warning: capture of non-sendable type 'M.Type' in an isolated closure
356 |         /// The actual sending happens when the `withBatch` scope completes.
357 |         /// - Returns: A `Task` that will eventually produce the result or throw an error.
358 |         public func addRequest<M: Method>(_ request: Request<M>) async throws -> Task<
    |                                             `- warning: capture of non-sendable type 'M.Type' in an isolated closure
359 |             M.Result, Swift.Error
360 |         > {
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:371:33: warning: capture of non-sendable type 'M.Type' in an isolated closure
369 |                     Task {
370 |                         await client.addPendingRequest(
371 |                             id: request.id,
    |                                 `- warning: capture of non-sendable type 'M.Type' in an isolated closure
372 |                             continuation: continuation,
373 |                             type: M.Result.self
/Users/admin/builder/spi-builder-workspace/Sources/MCP/Client/Client.swift:358:45: warning: capture of non-sendable type 'M.Type' in an isolated closure
356 |         /// The actual sending happens when the `withBatch` scope completes.
357 |         /// - Returns: A `Task` that will eventually produce the result or throw an error.
358 |         public func addRequest<M: Method>(_ request: Request<M>) async throws -> Task<
    |                                             `- warning: capture of non-sendable type 'M.Type' in an isolated closure
359 |             M.Result, Swift.Error
360 |         > {
Build complete! (11.28s)
Fetching https://github.com/loopwork-ai/eventsource.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-system.git
[1/99] Fetching eventsource
[15/4535] Fetching eventsource, swift-system
[146/8371] Fetching eventsource, swift-system, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.06s)
Fetched https://github.com/apple/swift-system.git from cache (1.06s)
Fetched https://github.com/loopwork-ai/eventsource.git from cache (1.06s)
Computing version for https://github.com/loopwork-ai/eventsource.git
Computed https://github.com/loopwork-ai/eventsource.git at 1.1.1 (1.49s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.44s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.40s)
Creating working copy for https://github.com/loopwork-ai/eventsource.git
Working copy of https://github.com/loopwork-ai/eventsource.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "eventsource",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/loopwork-ai/eventsource.git"
    }
  ],
  "manifest_display_name" : "mcp-swift-sdk",
  "name" : "mcp-swift-sdk",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "16.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "MCP",
      "targets" : [
        "MCP"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MCPTests",
      "module_type" : "SwiftTarget",
      "name" : "MCPTests",
      "path" : "Tests/MCPTests",
      "product_dependencies" : [
        "SystemPackage",
        "Logging",
        "EventSource"
      ],
      "sources" : [
        "Base64DataTests.swift",
        "ClientTests.swift",
        "HTTPClientTransportTests.swift",
        "Helpers/MockTransport.swift",
        "IDTests.swift",
        "NetworkTransportTests.swift",
        "NotificationTests.swift",
        "PromptTests.swift",
        "RequestTests.swift",
        "ResourceTests.swift",
        "ResponseTests.swift",
        "RoundtripTests.swift",
        "SamplingTests.swift",
        "ServerTests.swift",
        "StdioTransportTests.swift",
        "ToolTests.swift",
        "UnitIntervalTests.swift",
        "VersioningTests.swift"
      ],
      "target_dependencies" : [
        "MCP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MCP",
      "module_type" : "SwiftTarget",
      "name" : "MCP",
      "path" : "Sources/MCP",
      "product_dependencies" : [
        "SystemPackage",
        "Logging",
        "EventSource"
      ],
      "product_memberships" : [
        "MCP"
      ],
      "sources" : [
        "Base/Error.swift",
        "Base/ID.swift",
        "Base/Lifecycle.swift",
        "Base/Messages.swift",
        "Base/Transport.swift",
        "Base/Transports/HTTPClientTransport.swift",
        "Base/Transports/NetworkTransport.swift",
        "Base/Transports/StdioTransport.swift",
        "Base/UnitInterval.swift",
        "Base/Utilities/Ping.swift",
        "Base/Value.swift",
        "Base/Versioning.swift",
        "Client/Client.swift",
        "Extensions/Data+Extensions.swift",
        "Server/Prompts.swift",
        "Server/Resources.swift",
        "Server/Sampling.swift",
        "Server/Server.swift",
        "Server/Tools.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Done.