The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-mcp-toolkit, reference v0.3.0 (ea47d6), with Swift 6.4 for Linux on 25 Sep 2026 02:49:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ajevans99/swift-mcp-toolkit.git
Reference: v0.3.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/ajevans99/swift-mcp-toolkit
 * tag               v0.3.0     -> FETCH_HEAD
HEAD is now at ea47d61 Migrate structured output to official Swift SDK (#4)
Cloned https://github.com/ajevans99/swift-mcp-toolkit.git
Revision (git rev-parse @):
ea47d6182f84d694daeee683a242a1fb84940c89
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ajevans99/swift-mcp-toolkit.git at v0.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ajevans99/swift-mcp-toolkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/ajevans99/swift-json-schema.git
Fetching https://github.com/modelcontextprotocol/swift-sdk.git
[1/10672] Fetching swift-json-schema
[108/14511] Fetching swift-json-schema, swift-sdk
Fetched https://github.com/modelcontextprotocol/swift-sdk.git (0.68s)
[214/10672] Fetching swift-json-schema
Fetched https://github.com/ajevans99/swift-json-schema.git (3.13s)
Computing version for https://github.com/modelcontextprotocol/swift-sdk.git
Computed https://github.com/modelcontextprotocol/swift-sdk.git at 0.12.1 (3.31s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/mattt/eventsource.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-log.git
[1/303] Fetching eventsource
[223/8468] Fetching eventsource, swift-log
Fetched https://github.com/apple/swift-log.git (0.51s)
[1/6952] Fetching swift-system
[6953/93043] Fetching swift-system, swift-nio
Fetched https://github.com/mattt/eventsource.git (2.62s)
Fetched https://github.com/apple/swift-system.git (2.62s)
Fetched https://github.com/apple/swift-nio.git (2.65s)
Computing version for https://github.com/mattt/eventsource.git
Computed https://github.com/mattt/eventsource.git at 1.5.1 (2.82s)
Computing version for https://github.com/ajevans99/swift-json-schema.git
Computed https://github.com/ajevans99/swift-json-schema.git at 0.14.1 (0.18s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/27702] Fetching swift-collections
[27703/107769] Fetching swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections.git (1.13s)
[4004/80067] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git (2.90s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 604.0.0 (4.09s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.29s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.19s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.21s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.33s)
Fetching https://github.com/apple/swift-atomics.git
[1/1881] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git (0.49s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.65s)
Creating working copy for https://github.com/ajevans99/swift-json-schema.git
Working copy of https://github.com/ajevans99/swift-json-schema.git resolved at 0.14.1
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 604.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.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.12.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.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.15.1
Creating working copy for https://github.com/mattt/eventsource.git
Working copy of https://github.com/mattt/eventsource.git resolved at 1.5.1
Building for debugging...
[Computing dependencies]
[Provisioning 15 / 48]
[Pre-planning 1 / 981]
[Planning deferred tasks]
[Starting]
[164 / 406] JSONSchemaBuilder
[232 / 437] SwiftSyntax602
[248 / 437] SwiftSyntax601
[258 / 437] SwiftSyntax604
[264 / 439] SystemPackage-product
[274 / 441] SwiftSyntax601
[280 / 444] SwiftSyntax509
[294 / 455] InternalCollectionsUtilities
[297 / 464] InternalCollectionsUtilities
[303 / 464] Logging
[309 / 464] Logging-product
[310 / 464] MCP
[311 / 464] InternalCollectionsUtilities
[315 / 464] InternalCollectionsUtilities
[316 / 464] InternalCollectionsUtilities
[321 / 466] CSystem
[327 / 485] MCP
[330 / 485] InternalCollectionsUtilities
[335 / 485] SwiftSyntax
[336 / 486] SwiftSyntax
[336 / 486] SystemPackage
[338 / 487] SystemPackage
[340 / 487] SystemPackage
[342 / 487] SystemPackage
[348 / 487] MCP
[349 / 487] MCP-product
[351 / 487] MCP-product
[353 / 487] MCP
[354 / 487] MCP
[358 / 488]
[360 / 497] OrderedCollections
[362 / 497] SwiftSyntax
[364 / 498] SwiftSyntax
[369 / 498] SwiftSyntax-product
[370 / 498] SwiftSyntax-product
[371 / 498] SwiftSyntax-product
[374 / 498] OrderedCollections
[382 / 500] SwiftParser
[386 / 518] SwiftParser
[386 / 518] OrderedCollections
[389 / 519] SwiftDiagnostics
[399 / 519] SwiftParser
[400 / 519] SwiftParser-product
[401 / 519] SwiftParser-product
[402 / 519] SwiftParser
[403 / 519] SwiftDiagnostics
[405 / 519] SwiftOperators
[410 / 519] SwiftDiagnostics
[415 / 527] SwiftBasicFormat
[417 / 527] SwiftBasicFormat
[427 / 529] SwiftDiagnostics
[433 / 539] OrderedJSON
[435 / 539] OrderedJSON
[438 / 539] OrderedJSON
[443 / 539] OrderedJSON
[445 / 541] SwiftBasicFormat
[452 / 550] SwiftOperators
[453 / 550] SwiftOperators
[456 / 550] SwiftOperators
[459 / 550] SwiftOperators
[466 / 560] SwiftParserDiagnostics
[469 / 560] SwiftParserDiagnostics
[470 / 562] SwiftParserDiagnostics
[471 / 562] SwiftParserDiagnostics
[472 / 562] SwiftParserDiagnostics
[477 / 562] SwiftParserDiagnostics
[483 / 564]
[487 / 582] SwiftSyntaxBuilder
[495 / 582] JSONSchema
[499 / 582] SwiftSyntaxBuilder
[500 / 582] SwiftSyntaxBuilder-product
[503 / 582] SwiftSyntaxBuilder-product
[504 / 582] SwiftIfConfig
[506 / 583] SwiftParserDiagnostics
[509 / 583] SwiftParserDiagnostics
[510 / 583] JSONSchema
[512 / 583] JSONSchema-product
[519 / 594] SwiftIfConfig
[520 / 594] SwiftIfConfig
[521 / 594] SwiftIfConfig
[523 / 594] SwiftIfConfig
[528 / 594] SwiftIfConfig
[529 / 594] SwiftSyntaxMacros
[530 / 594] SwiftSyntaxMacros
[535 / 604] SwiftSyntaxMacros
[536 / 604] JSONSchema
[547 / 605] SwiftSyntaxMacros-product
[554 / 616] SwiftSyntaxMacros
[557 / 617] SwiftSyntaxMacros
[558 / 617] SwiftSyntaxMacroExpansion
[566 / 617] SwiftSyntaxMacroExpansion
[573 / 627] SwiftCompilerPluginMessageHandling
[575 / 627] SwiftCompilerPluginMessageHandling
[577 / 627] SwiftCompilerPluginMessageHandling
[583 / 627] SwiftCompilerPluginMessageHandling
[588 / 631] SwiftCompilerPlugin
[593 / 631] SwiftCompilerPlugin
[595 / 632] SwiftCompilerPluginMessageHandling
[597 / 633] SwiftSyntax
[600 / 634] SwiftSyntax
[607 / 634] SwiftIfConfig
[616 / 635] JSONSchemaMacro
[625 / 644] JSONSchemaMacro
[626 / 644] JSONSchemaMacro
[630 / 645] JSONSchemaMacro
[640 / 655] JSONSchemaBuilder
[649 / 665] MCPToolkit
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/MCPToolkit/Extensions/JSONSchema+MCP.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile JSONSchema+MCP.swift
/host/spi-builder-workspace/Sources/MCPToolkit/Extensions/JSONSchema+MCP.swift:17:24: error: cannot convert value of type 'Dictionary<String, JSONValue>' to expected argument type 'OrderedDictionary<String, JSONValue>'
15 |       self = .array(a.map { JSONValue(value: $0) })
16 |     case .object(let o):
17 |       self = .object(o.mapValues { JSONValue(value: $0) })
   |                        `- error: cannot convert value of type 'Dictionary<String, JSONValue>' to expected argument type 'OrderedDictionary<String, JSONValue>'
18 |     case .data(let mimeType, let data):
19 |       self = .object([
Failed frontend command:
/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/MCPToolkit/Exports.swift -primary-file /host/spi-builder-workspace/Sources/MCPToolkit/Extensions/JSONSchema+MCP.swift /host/spi-builder-workspace/Sources/MCPToolkit/Extensions/MCP+JSONSchema.swift /host/spi-builder-workspace/Sources/MCPToolkit/Extensions/MCPResource+MCP.swift /host/spi-builder-workspace/Sources/MCPToolkit/Extensions/MCPTool+MCP.swift /host/spi-builder-workspace/Sources/MCPToolkit/Extensions/Server+registerResources.swift /host/spi-builder-workspace/Sources/MCPToolkit/Extensions/Server+registerTools.swift /host/spi-builder-workspace/Sources/MCPToolkit/MCPResource.swift /host/spi-builder-workspace/Sources/MCPToolkit/MCPTool.swift /host/spi-builder-workspace/Sources/MCPToolkit/MCPToolWithStructuredOutput.swift /host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift /host/spi-builder-workspace/Sources/MCPToolkit/Shared/ContentBuilder.swift /host/spi-builder-workspace/Sources/MCPToolkit/Shared/ContentGroup.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/Exports.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/Exports.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/Exports.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/Exports.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/JSONSchema+MCP.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/JSONSchema+MCP.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/JSONSchema+MCP.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/JSONSchema+MCP.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/JSONSchemaMacro\#JSONSchemaMacro -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name MCPToolkit -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/MCPToolkit_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/Exports.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/JSONSchema+MCP.o -index-unit-output-path /swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/Exports.o -index-unit-output-path /swift-mcp-toolkit.build/Debug-linux-x86_64/MCPToolkit-t.build/Objects-normal/x86_64/JSONSchema+MCP.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux