Build Information
Successful build of mcp-swift-sdk, reference 0.9.0 (974293
), with Swift 6.2 (beta) for Linux on 24 Jun 2025 05:48:26 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: 0.9.0
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
* 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: 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
[3837/8272] Fetching swift-log, swift-system
Fetched https://github.com/apple/swift-log.git from cache (0.44s)
Fetched https://github.com/apple/swift-system.git from cache (0.50s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.93s)
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/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
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/38] Compiling SystemPackage MachPort.swift
[7/38] Compiling SystemPackage PlatformString.swift
[8/38] Compiling SystemPackage SystemString.swift
[9/41] Compiling SystemPackage Util+StringArray.swift
[10/41] Compiling SystemPackage Util.swift
[11/41] Compiling SystemPackage UtilConsumers.swift
[12/41] Compiling SystemPackage Mocking.swift
[13/41] Compiling SystemPackage RawBuffer.swift
[14/41] Compiling SystemPackage Syscalls.swift
[15/41] Compiling SystemPackage WindowsSyscallAdapters.swift
[16/41] Compiling Logging MetadataProvider.swift
[17/41] Emitting module Logging
[18/41] Compiling SystemPackage FilePathTempPosix.swift
[19/41] Compiling SystemPackage FilePathTempWindows.swift
[20/41] Compiling SystemPackage FilePathWindows.swift
[21/41] Compiling SystemPackage FilePermissions.swift
[22/41] Compiling SystemPackage FilePathParsing.swift
[23/41] Compiling SystemPackage FilePathString.swift
[24/41] Compiling SystemPackage FilePathSyntax.swift
[25/41] Compiling SystemPackage FilePathTemp.swift
[26/41] Compiling SystemPackage FileOperations.swift
[27/41] Compiling SystemPackage FilePath.swift
[28/41] Compiling SystemPackage FilePathComponentView.swift
[29/41] Compiling SystemPackage FilePathComponents.swift
[30/41] Compiling SystemPackage Errno.swift
[31/41] Compiling SystemPackage ErrnoWindows.swift
[32/41] Compiling SystemPackage FileDescriptor.swift
[33/41] Compiling SystemPackage FileHelpers.swift
[34/41] Compiling SystemPackage Backcompat.swift
[35/41] Compiling SystemPackage CInterop.swift
[36/41] Compiling SystemPackage Constants.swift
[37/41] Compiling SystemPackage Exports.swift
[38/41] Emitting module SystemPackage
[40/42] Compiling Logging LogHandler.swift
[41/42] Compiling Logging Locks.swift
[42/42] Compiling Logging Logging.swift
[44/61] Emitting module MCP
[45/63] Compiling MCP Resources.swift
[46/63] Compiling MCP Sampling.swift
[47/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 | }
[48/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 | }
[49/63] Compiling MCP Messages.swift
[50/63] Compiling MCP Transport.swift
[51/63] Compiling MCP HTTPClientTransport.swift
[52/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 | > {
[53/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 | > {
[54/63] Compiling MCP Ping.swift
[55/63] Compiling MCP Value.swift
[56/63] Compiling MCP NetworkTransport.swift
[57/63] Compiling MCP StdioTransport.swift
[58/63] Compiling MCP UnitInterval.swift
[59/63] Compiling MCP Data+Extensions.swift
[60/63] Compiling MCP Prompts.swift
[61/63] Compiling MCP Error.swift
[62/63] Compiling MCP ID.swift
[63/63] Compiling MCP Lifecycle.swift
Build complete! (24.93s)
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",
"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"
}
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.