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 (36865f), with Swift 6.2 (beta) for Linux on 24 Jun 2025 06:00:06 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/modelcontextprotocol/swift-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/modelcontextprotocol/swift-sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 36865fb Update `inputSchema` example usage (#136)
Cloned https://github.com/modelcontextprotocol/swift-sdk.git
Revision (git rev-parse @):
36865fb056d2361bf8e649fcde559a0781f0ded8
SUCCESS checkout https://github.com/modelcontextprotocol/swift-sdk.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/modelcontextprotocol/swift-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/apple/swift-system.git
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
[2/8272] Fetching swift-log, swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.49s)
Fetched https://github.com/apple/swift-log.git from cache (0.49s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.96s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.58s)
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
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
Building for debugging...
[0/5] Write sources
[3/5] Compiling CSystem shims.c
[3/5] Write swift-version-24593BA9C3E375BF.txt
[6/38] Emitting module Logging
[7/38] Compiling Logging Locks.swift
[8/38] Compiling SystemPackage FilePathParsing.swift
[9/38] Compiling SystemPackage FilePathString.swift
[10/38] Compiling SystemPackage FilePathSyntax.swift
[11/38] Compiling SystemPackage FilePathTemp.swift
[12/38] Compiling SystemPackage FilePathTempPosix.swift
[13/38] Compiling SystemPackage FilePathTempWindows.swift
[14/38] Compiling SystemPackage FilePathWindows.swift
[15/38] Compiling SystemPackage FilePermissions.swift
[16/38] Compiling SystemPackage FileOperations.swift
[17/38] Compiling SystemPackage FilePath.swift
[18/38] Compiling SystemPackage FilePathComponentView.swift
[19/38] Compiling SystemPackage FilePathComponents.swift
[20/38] Compiling SystemPackage Errno.swift
[21/38] Compiling SystemPackage ErrnoWindows.swift
[22/38] Compiling SystemPackage FileDescriptor.swift
[23/38] Compiling SystemPackage FileHelpers.swift
[24/38] Emitting module SystemPackage
[25/38] Compiling SystemPackage Backcompat.swift
[26/38] Compiling SystemPackage CInterop.swift
[27/38] Compiling SystemPackage Constants.swift
[28/38] Compiling SystemPackage Exports.swift
[29/41] Compiling SystemPackage MachPort.swift
[30/41] Compiling SystemPackage PlatformString.swift
[31/41] Compiling SystemPackage SystemString.swift
[32/41] Compiling SystemPackage Mocking.swift
[33/41] Compiling SystemPackage RawBuffer.swift
[34/41] Compiling SystemPackage Syscalls.swift
[35/41] Compiling SystemPackage WindowsSyscallAdapters.swift
[36/41] Compiling Logging MetadataProvider.swift
[37/41] Compiling Logging LogHandler.swift
[38/41] Compiling Logging Logging.swift
[40/42] Compiling SystemPackage Util+StringArray.swift
[41/42] Compiling SystemPackage Util.swift
[42/42] Compiling SystemPackage UtilConsumers.swift
[44/61] Emitting module MCP
[45/63] Compiling MCP Error.swift
[46/63] Compiling MCP ID.swift
[47/63] Compiling MCP Lifecycle.swift
[48/63] Compiling MCP NetworkTransport.swift
[49/63] Compiling MCP StdioTransport.swift
[50/63] Compiling MCP UnitInterval.swift
[51/63] Compiling MCP Server.swift
/host/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
/host/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 |         }
[52/63] Compiling MCP Tools.swift
/host/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
/host/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 |         }
[53/63] Compiling MCP Messages.swift
[54/63] Compiling MCP Transport.swift
[55/63] Compiling MCP HTTPClientTransport.swift
[56/63] 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 |         > {
[57/63] 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 |         > {
[58/63] Compiling MCP Prompts.swift
[59/63] Compiling MCP Resources.swift
[60/63] Compiling MCP Ping.swift
[61/63] Compiling MCP Value.swift
[62/63] Compiling MCP Sampling.swift
[63/63] Compiling MCP Data+Extensions.swift
Build complete! (23.91s)
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"
    }
  ],
  "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"
      ],
      "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"
      ],
      "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",
        "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.