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

Failed to build mcp-swift-sdk, reference main (fb6fff), with Swift 6.2 (beta) for Wasm on 7 Sep 2025 18:09:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
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 fb6fffb fix: allow description field to be absent from `Tool` (#159)
Cloned https://github.com/modelcontextprotocol/swift-sdk.git
Revision (git rev-parse @):
fb6fffbecddb73df165b956cd09b24932f7602e8
SUCCESS checkout https://github.com/modelcontextprotocol/swift-sdk.git at main
========================================
Build
========================================
Selected platform:         wasm
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-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:3160178686d03086db4c1712d78c1980537bb37521128c64baade7f466b6b4aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/mattt/eventsource.git
[2/110] Fetching eventsource
[111/5047] Fetching eventsource, swift-system
[803/8950] Fetching eventsource, swift-system, swift-log
Fetched https://github.com/mattt/eventsource.git from cache (1.09s)
Fetched https://github.com/apple/swift-system.git from cache (1.10s)
Fetched https://github.com/apple/swift-log.git from cache (1.10s)
Computing version for https://github.com/mattt/eventsource.git
Computed https://github.com/mattt/eventsource.git at 1.1.1 (1.64s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.60s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (0.59s)
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] Compiling CSystem shims.c
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/41] Emitting module Logging
[7/41] Compiling Logging Locks.swift
[8/41] Compiling Logging LogHandler.swift
[9/41] Compiling SystemPackage FilePathSyntax.swift
[10/41] Compiling SystemPackage FilePathTemp.swift
[11/41] Compiling SystemPackage FilePathTempPosix.swift
[12/41] Compiling SystemPackage FilePathTempWindows.swift
[13/45] Compiling SystemPackage Errno.swift
[14/45] Compiling SystemPackage ErrnoWindows.swift
[15/45] Compiling SystemPackage FileDescriptor.swift
[16/45] Compiling SystemPackage FileHelpers.swift
[17/45] Compiling SystemPackage FileOperations.swift
[18/45] Compiling SystemPackage FilePath.swift
[19/45] Compiling SystemPackage FilePathComponentView.swift
[20/45] Compiling SystemPackage FilePathComponents.swift
[21/45] Compiling SystemPackage FilePathParsing.swift
[22/45] Compiling SystemPackage FilePathString.swift
[23/45] Emitting module SystemPackage
[24/45] Compiling Logging MetadataProvider.swift
[25/45] Compiling SystemPackage IORing.swift
[26/45] Compiling SystemPackage RawIORequest.swift
[27/45] Compiling SystemPackage Backcompat.swift
[28/45] Compiling SystemPackage CInterop.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 Syscalls.swift
[34/45] Compiling SystemPackage WindowsSyscallAdapters.swift
[35/45] Compiling SystemPackage MachPort.swift
[36/45] Compiling SystemPackage PlatformString.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
[41/45] Compiling Logging Logging.swift
[43/46] Compiling SystemPackage SystemString.swift
[44/46] Compiling SystemPackage Util+StringArray.swift
[45/46] Compiling SystemPackage Util.swift
[46/46] Compiling SystemPackage UtilConsumers.swift
[48/66] Compiling MCP InMemoryTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[49/66] Compiling MCP NetworkTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[50/66] Compiling MCP StdioTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[51/68] Compiling MCP Prompts.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[52/68] Compiling MCP Resources.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[53/68] Compiling MCP Versioning.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[54/68] Compiling MCP Client.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[55/68] Compiling MCP Messages.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[56/68] Compiling MCP Transport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[57/68] Compiling MCP HTTPClientTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[58/68] Compiling MCP Error.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[59/68] Compiling MCP ID.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[60/68] Compiling MCP Lifecycle.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[61/68] Emitting module MCP
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[62/68] Compiling MCP Server.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[63/68] Compiling MCP Tools.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[64/68] Compiling MCP UnitInterval.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[65/68] Compiling MCP Ping.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[66/68] Compiling MCP Value.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[67/68] Compiling MCP Sampling.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
[68/68] Compiling MCP Data+Extensions.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | #if canImport(System)
BUILD FAILURE 6.2 wasm