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 main (e76d61), with Swift 6.2 (beta) for Linux on 13 Aug 2025 09:22:27 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ShenghaiWang/swift-mcp-sdk.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ShenghaiWang/swift-mcp-sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e76d611 Bump version to 0.10.0
Cloned https://github.com/ShenghaiWang/swift-mcp-sdk.git
Revision (git rev-parse @):
e76d61155bf00482ea8f2ff78fca08a4eece410e
SUCCESS checkout https://github.com/ShenghaiWang/swift-mcp-sdk.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ShenghaiWang/swift-mcp-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/mattt/eventsource.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-log.git
[1/110] Fetching eventsource
[111/3996] Fetching eventsource, swift-log
[2637/8874] Fetching eventsource, swift-log, swift-system
Fetched https://github.com/apple/swift-log.git from cache (0.32s)
Fetched https://github.com/mattt/eventsource.git from cache (0.35s)
Fetched https://github.com/apple/swift-system.git from cache (0.35s)
Computing version for https://github.com/mattt/eventsource.git
Computed https://github.com/mattt/eventsource.git at 1.1.1 (0.64s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.37s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (0.41s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
Creating working copy for https://github.com/mattt/eventsource.git
Working copy of https://github.com/mattt/eventsource.git resolved at 1.1.1
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.4
Building for debugging...
[0/5] Write sources
[3/5] Write swift-version-24593BA9C3E375BF.txt
[3/5] Compiling CSystem shims.c
[6/41] Emitting module SystemPackage
[7/45] Compiling SystemPackage SystemString.swift
[8/45] Compiling SystemPackage Util+StringArray.swift
[9/45] Compiling SystemPackage Util.swift
[10/45] Compiling SystemPackage UtilConsumers.swift
[11/45] Compiling SystemPackage FilePath.swift
[12/45] Compiling SystemPackage FilePathComponentView.swift
[13/45] Compiling SystemPackage FilePathComponents.swift
[14/45] Compiling SystemPackage FilePathParsing.swift
[15/45] Compiling SystemPackage FilePathString.swift
[16/45] Compiling SystemPackage Errno.swift
[17/45] Compiling SystemPackage ErrnoWindows.swift
[18/45] Compiling SystemPackage FileDescriptor.swift
[19/45] Compiling SystemPackage FileHelpers.swift
[20/45] Compiling SystemPackage FileOperations.swift
[21/45] Compiling SystemPackage FilePathSyntax.swift
[22/45] Compiling SystemPackage FilePathTemp.swift
[23/45] Compiling SystemPackage FilePathTempPosix.swift
[24/45] Compiling SystemPackage FilePathTempWindows.swift
[25/45] Compiling SystemPackage Syscalls.swift
[26/45] Compiling SystemPackage WindowsSyscallAdapters.swift
[27/45] Compiling SystemPackage MachPort.swift
[28/45] Compiling SystemPackage PlatformString.swift
[29/45] Compiling SystemPackage FilePathWindows.swift
[30/45] Compiling SystemPackage FilePermissions.swift
[31/45] Compiling SystemPackage IOCompletion.swift
[32/45] Compiling SystemPackage IORequest.swift
[33/45] Compiling SystemPackage IORing.swift
[34/45] Compiling SystemPackage RawIORequest.swift
[35/45] Compiling SystemPackage Backcompat.swift
[36/45] Compiling SystemPackage CInterop.swift
[37/45] Compiling SystemPackage Constants.swift
[38/45] Compiling SystemPackage Exports.swift
[39/45] Compiling SystemPackage Mocking.swift
[40/45] Compiling SystemPackage RawBuffer.swift
[42/46] Emitting module Logging
[43/46] Compiling Logging LogHandler.swift
[44/46] Compiling Logging MetadataProvider.swift
[45/46] Compiling Logging Logging.swift
[46/46] Compiling Logging Locks.swift
[48/66] Emitting module MCP
[49/68] Compiling MCP Error.swift
[50/68] Compiling MCP ID.swift
[51/68] Compiling MCP Lifecycle.swift
[52/68] Compiling MCP InMemoryTransport.swift
[53/68] Compiling MCP NetworkTransport.swift
[54/68] Compiling MCP StdioTransport.swift
[55/68] Compiling MCP Messages.swift
[56/68] Compiling MCP Transport.swift
[57/68] Compiling MCP HTTPClientTransport.swift
[58/68] Compiling MCP Server.swift
/host/spi-builder-workspace/Sources/MCP/Server/Server.swift:264:9: warning: capture of non-Sendable type 'M.Type' in an isolated closure
262 |     public func withMethodHandler<M: Method>(
263 |         _ type: M.Type,
264 |         handler: @escaping @Sendable (M.Parameters) async throws -> M.Result
    |         `- warning: capture of non-Sendable type 'M.Type' in an isolated closure
265 |     ) -> Self {
266 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
/host/spi-builder-workspace/Sources/MCP/Server/Server.swift:267:44: warning: capture of non-Sendable type 'M.Type' in an isolated closure
265 |     ) -> Self {
266 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
267 |             let result = try await handler(request.params)
    |                                            `- warning: capture of non-Sendable type 'M.Type' in an isolated closure
268 |             return Response(id: request.id, result: result)
269 |         }
[59/68] Compiling MCP Tools.swift
/host/spi-builder-workspace/Sources/MCP/Server/Server.swift:264:9: warning: capture of non-Sendable type 'M.Type' in an isolated closure
262 |     public func withMethodHandler<M: Method>(
263 |         _ type: M.Type,
264 |         handler: @escaping @Sendable (M.Parameters) async throws -> M.Result
    |         `- warning: capture of non-Sendable type 'M.Type' in an isolated closure
265 |     ) -> Self {
266 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
/host/spi-builder-workspace/Sources/MCP/Server/Server.swift:267:44: warning: capture of non-Sendable type 'M.Type' in an isolated closure
265 |     ) -> Self {
266 |         methodHandlers[M.name] = TypedRequestHandler { (request: Request<M>) -> Response<M> in
267 |             let result = try await handler(request.params)
    |                                            `- warning: capture of non-Sendable type 'M.Type' in an isolated closure
268 |             return Response(id: request.id, result: result)
269 |         }
[60/68] Compiling MCP UnitInterval.swift
[61/68] Compiling MCP Ping.swift
[62/68] Compiling MCP Value.swift
[63/68] Compiling MCP Prompts.swift
[64/68] Compiling MCP Resources.swift
[65/68] Compiling MCP Versioning.swift
/host/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
/host/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")
/host/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 |         > {
/host/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
/host/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/68] Compiling MCP Client.swift
/host/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
/host/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")
/host/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 |         > {
/host/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
/host/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 |         > {
[67/68] Compiling MCP Sampling.swift
[68/68] Compiling MCP Data+Extensions.swift
Build complete! (18.06s)
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/mattt/eventsource.git"
    }
  ],
  "manifest_display_name" : "mcp-swift-sdk",
  "name" : "mcp-swift-sdk",
  "path" : "/host/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",
        "InMemoryTransportTests.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/InMemoryTransport.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",
        "Client/Sampling.swift",
        "Extensions/Data+Extensions.swift",
        "Server/Prompts.swift",
        "Server/Resources.swift",
        "Server/Server.swift",
        "Server/Tools.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Done.