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.1 for macOS (SPM) on 26 May 2025 15:38:51 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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
Fetching https://github.com/loopwork-ai/eventsource.git
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-log.git from cache
[1/99] Fetching eventsource
Fetched https://github.com/loopwork-ai/eventsource.git from cache (0.66s)
Fetched https://github.com/apple/swift-log.git from cache (0.78s)
Fetched https://github.com/apple/swift-system.git from cache (0.79s)
Computing version for https://github.com/loopwork-ai/eventsource.git
Computed https://github.com/loopwork-ai/eventsource.git at 1.1.0 (1.28s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.47s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.48s)
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.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.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-sdk",
      "name": "mcp-swift-sdk",
      "url": "https://github.com/modelcontextprotocol/swift-sdk.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-sdk",
      "dependencies": [
        {
          "identity": "swift-system",
          "name": "swift-system",
          "url": "https://github.com/apple/swift-system.git",
          "version": "1.4.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        },
        {
          "identity": "eventsource",
          "name": "EventSource",
          "url": "https://github.com/loopwork-ai/eventsource.git",
          "version": "1.1.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/eventsource",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/modelcontextprotocol/swift-sdk.git
[1/1739] Fetching swift-sdk
Fetched https://github.com/modelcontextprotocol/swift-sdk.git from cache (0.90s)
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/loopwork-ai/eventsource.git from cache
Fetched https://github.com/loopwork-ai/eventsource.git from cache (0.53s)
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Fetched https://github.com/apple/swift-system.git from cache (0.56s)
Computing version for https://github.com/loopwork-ai/eventsource.git
Computed https://github.com/loopwork-ai/eventsource.git at 1.1.1 (0.62s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.47s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.03s)
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/modelcontextprotocol/swift-sdk.git
Working copy of https://github.com/modelcontextprotocol/swift-sdk.git resolved at 0.9.0 (9742933)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
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
warning: '.resolve-product-dependencies': dependency 'swift-sdk' is not used by any target
Found 3 product dependencies
  - swift-system
  - swift-log
  - EventSource
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/modelcontextprotocol/swift-sdk.git
https://github.com/modelcontextprotocol/swift-sdk.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/6] Write sources
[4/6] Compiling CSystem shims.c
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/43] Emitting module SystemPackage
[8/46] Compiling SystemPackage FilePathComponentView.swift
[9/46] Compiling SystemPackage FilePathComponents.swift
[10/46] Compiling SystemPackage FilePathParsing.swift
[11/46] Compiling SystemPackage FileHelpers.swift
[12/46] Compiling SystemPackage FileOperations.swift
[13/46] Compiling SystemPackage FilePath.swift
[14/46] Compiling SystemPackage Util+StringArray.swift
[15/46] Compiling SystemPackage Util.swift
[16/46] Compiling SystemPackage UtilConsumers.swift
[17/46] Compiling Logging LogHandler.swift
[18/46] Compiling Logging MetadataProvider.swift
[19/46] Compiling SystemPackage FilePathTempPosix.swift
[20/46] Compiling SystemPackage FilePathTempWindows.swift
[21/46] Compiling SystemPackage FilePathWindows.swift
[22/46] Compiling SystemPackage RawBuffer.swift
[23/46] Compiling SystemPackage Syscalls.swift
[24/46] Compiling SystemPackage WindowsSyscallAdapters.swift
[25/46] Compiling SystemPackage FilePermissions.swift
[26/46] Compiling SystemPackage Backcompat.swift
[27/46] Compiling SystemPackage CInterop.swift
[28/46] Compiling Logging Locks.swift
[29/46] Compiling Logging Logging.swift
[30/46] Emitting module Logging
[31/46] Compiling SystemPackage FilePathString.swift
[32/46] Compiling SystemPackage FilePathSyntax.swift
[33/46] Compiling SystemPackage FilePathTemp.swift
[34/46] Compiling SystemPackage Errno.swift
[35/46] Compiling SystemPackage ErrnoWindows.swift
[36/46] Compiling SystemPackage FileDescriptor.swift
[37/46] Compiling SystemPackage Constants.swift
[38/46] Compiling SystemPackage Exports.swift
[39/46] Compiling SystemPackage Mocking.swift
[40/46] Compiling SystemPackage MachPort.swift
[41/46] Compiling SystemPackage PlatformString.swift
[42/46] Compiling SystemPackage SystemString.swift
[43/46] Compiling EventSource EventSource.swift
[44/46] Emitting module EventSource
[45/46] Compiling EventSource AsyncSequence+Events.swift
[46/46] Compiling EventSource AsyncEventsSequence.swift
[47/65] Compiling MCP Value.swift
[48/65] Compiling MCP Versioning.swift
[49/65] Compiling MCP Sampling.swift
[50/65] Compiling MCP Server.swift
[51/66] Compiling MCP Tools.swift
[52/66] Compiling MCP Prompts.swift
[53/66] Compiling MCP Resources.swift
[54/66] Compiling MCP NetworkTransport.swift
[55/66] Compiling MCP StdioTransport.swift
[56/66] Compiling MCP UnitInterval.swift
[57/66] Compiling MCP Ping.swift
[58/66] Compiling MCP Error.swift
[59/66] Compiling MCP ID.swift
[60/66] Emitting module MCP
[61/66] Compiling MCP Transport.swift
[62/66] Compiling MCP HTTPClientTransport.swift
[63/66] Compiling MCP Client.swift
[64/66] Compiling MCP Data+Extensions.swift
[65/66] Compiling MCP Lifecycle.swift
[66/66] Compiling MCP Messages.swift
Build complete! (9.97s)
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.