Build Information
Successful build of swift-mcp, reference main (254f61), with Swift 6.3 for macOS (SPM) on 23 Apr 2026 14:30:40 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/swift-mcp.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DePasqualeOrg/swift-mcp
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 254f61b Clean up comments
Cloned https://github.com/DePasqualeOrg/swift-mcp.git
Revision (git rev-parse @):
254f61bc2cd293f6cbed0e0e0efae37bd88f6da6
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/DePasqualeOrg/swift-mcp.git at main
Fetching https://github.com/swiftlang/swift-docc
[1/99697] Fetching swift-docc
Fetched https://github.com/swiftlang/swift-docc from cache (4.05s)
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.22s)
Fetching https://github.com/swiftlang/swift-markdown.git
[1/7308] Fetching swift-markdown
Fetched https://github.com/swiftlang/swift-markdown.git from cache (1.25s)
Fetching https://github.com/swiftlang/swift-lmdb.git
[1/10377] Fetching swift-lmdb
Fetched https://github.com/swiftlang/swift-lmdb.git from cache (1.89s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit.git
[1/3674] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit.git from cache (1.13s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18376] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git from cache (1.73s)
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/DePasqualeOrg/swift-sse
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/hummingbird-project/hummingbird.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-crypto.git
[1/20] Fetching swift-sse
[21/23700] Fetching swift-sse, swift-collections
[22/30852] Fetching swift-sse, swift-collections, swift-certificates
[1162/57387] Fetching swift-sse, swift-collections, swift-certificates, hummingbird
[2302/74823] Fetching swift-sse, swift-collections, swift-certificates, hummingbird, swift-crypto
[2897/90526] Fetching swift-sse, swift-collections, swift-certificates, hummingbird, swift-crypto, async-http-client
[38523/173745] Fetching swift-sse, swift-collections, swift-certificates, hummingbird, swift-crypto, async-http-client, swift-nio
Fetched https://github.com/DePasqualeOrg/swift-sse from cache (1.82s)
Fetched https://github.com/swift-server/async-http-client.git from cache (1.82s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-atomics.git
[67510/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
[78485/159842] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-atomics
[78558/161645] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-atomics, swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (1.03s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.03s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-nio-transport-services.git
[79797/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
[81509/160869] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-nio-transport-services
[82949/166470] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-nio-transport-services, swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.20s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.20s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-async-algorithms.git
[85622/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
[92280/164269] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-async-algorithms
[94488/179709] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-async-algorithms, swift-nio-ssl
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.83s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.83s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-metrics.git
[100601/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
[105596/161210] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-metrics
[105724/167268] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-metrics, swift-algorithms
Fetched https://github.com/apple/swift-metrics.git from cache (1.07s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.07s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-nio-extras.git
[109755/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
[111060/159065] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-http-types
[111624/165575] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-http-types, swift-nio-extras
Fetched https://github.com/apple/swift-http-types.git from cache (0.82s)
Fetching https://github.com/apple/swift-configuration.git
[111385/164532] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.25s)
Fetching https://github.com/apple/swift-distributed-tracing.git
[111060/161251] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-configuration
Fetched https://github.com/apple/swift-configuration.git from cache (0.90s)
Fetching https://github.com/apple/swift-numerics.git
[111060/163791] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-distributed-tracing
[116829/170207] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-distributed-tracing, swift-numerics
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.13s)
[111124/164438] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-numerics
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetched https://github.com/apple/swift-numerics.git from cache (1.01s)
Fetching https://github.com/swiftlang/swift-syntax
[111060/159264] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-http-structured-headers
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.93s)
Fetching https://github.com/apple/swift-argument-parser.git
[111060/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
[117246/233058] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax
[117247/250522] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.67s)
Fetching https://github.com/apple/swift-log.git
[149251/233058] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax
[169676/239708] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.25s)
Fetching https://github.com/apple/swift-service-context.git
[185515/233058] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax
[199854/234334] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax, swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.93s)
Fetching https://github.com/ajevans99/swift-json-schema
[202169/233058] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax
[202268/238743] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-syntax, swift-json-schema
Fetched https://github.com/ajevans99/swift-json-schema from cache (1.02s)
Fetching https://github.com/apple/swift-nio-http2.git
Fetched https://github.com/swiftlang/swift-syntax from cache (5.56s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[128191/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
[128192/160767] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-service-lifecycle
[128879/172875] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-service-lifecycle, swift-nio-http2
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.00s)
[128313/170130] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio, swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git from cache (9.90s)
[137218/158022] Fetching swift-collections, swift-certificates, hummingbird, swift-crypto, swift-nio
Fetched https://github.com/apple/swift-crypto.git from cache (30.28s)
Fetched https://github.com/apple/swift-collections.git from cache (30.28s)
Fetched https://github.com/hummingbird-project/hummingbird.git from cache (30.28s)
Fetched https://github.com/apple/swift-certificates.git from cache (30.28s)
Fetched https://github.com/apple/swift-nio.git from cache (30.28s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (31.34s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (0.62s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.97.0 (0.69s)
Computing version for https://github.com/hummingbird-project/hummingbird.git
Computed https://github.com/hummingbird-project/hummingbird.git at 2.21.1 (0.66s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.0 (0.79s)
Computing version for https://github.com/ajevans99/swift-json-schema
Computed https://github.com/ajevans99/swift-json-schema at 0.11.2 (0.58s)
Computing version for https://github.com/DePasqualeOrg/swift-sse
Computed https://github.com/DePasqualeOrg/swift-sse at 0.1.0 (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.60s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.59s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.6.0 (0.65s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.65s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.57s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.33.0 (0.59s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.10.1 (0.54s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.26.0 (0.57s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.1 (0.60s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.42.0 (0.58s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.33.0 (0.63s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.8.0 (0.55s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (0.57s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (0.57s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.0 (0.73s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (0.60s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.56s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.64s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.18.0 (0.71s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.6.0 (0.57s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.56s)
Creating working copy for https://github.com/swiftlang/swift-markdown.git
Working copy of https://github.com/swiftlang/swift-markdown.git resolved at main (55d66d9)
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.2.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at main (e977f65)
Creating working copy for https://github.com/swiftlang/swift-lmdb.git
Working copy of https://github.com/swiftlang/swift-lmdb.git resolved at main (a4bc878)
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.8.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.97.0
Creating working copy for https://github.com/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at gfm (924936d)
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.33.0
Creating working copy for https://github.com/swiftlang/swift-docc
Working copy of https://github.com/swiftlang/swift-docc resolved at main (4f8b95f)
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.18.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit.git
Working copy of https://github.com/swiftlang/swift-docc-symbolkit.git resolved at main (4c4ff01)
Creating working copy for https://github.com/hummingbird-project/hummingbird.git
Working copy of https://github.com/hummingbird-project/hummingbird.git resolved at 2.21.1
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.10.1
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.33.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.36.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.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.0
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.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.6.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/DePasqualeOrg/swift-sse
Working copy of https://github.com/DePasqualeOrg/swift-sse resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.26.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.3
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.42.0
Creating working copy for https://github.com/ajevans99/swift-json-schema
Working copy of https://github.com/ajevans99/swift-json-schema resolved at 0.11.2
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.0/swiftlang-6.3.0.123.5-macosx26.4-MacroSupport.zip
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.0/swiftlang-6.3.0.123.5-macosx26.4-MacroSupport.zip (0.33s)
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-mcp",
"name": "swift-mcp",
"url": "https://github.com/DePasqualeOrg/swift-mcp.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-mcp",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.6.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.12.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"traits": [
],
"dependencies": [
]
},
{
"identity": "swift-sse",
"name": "SSE",
"url": "https://github.com/DePasqualeOrg/swift-sse",
"version": "0.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-sse",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "swift-json-schema",
"name": "swift-json-schema",
"url": "https://github.com/ajevans99/swift-json-schema",
"version": "0.11.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-json-schema",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/swiftlang/swift-syntax",
"version": "603.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"traits": [
"default"
],
"dependencies": [
]
}
]
},
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/swiftlang/swift-syntax",
"version": "603.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "swift-crypto",
"name": "swift-crypto",
"url": "https://github.com/apple/swift-crypto.git",
"version": "3.15.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-crypto",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-asn1",
"name": "swift-asn1",
"url": "https://github.com/apple/swift-asn1.git",
"version": "1.7.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-asn1",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/DePasqualeOrg/swift-mcp.git
[1/3279] Fetching swift-mcp
Fetched https://github.com/DePasqualeOrg/swift-mcp.git from cache (1.12s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/swiftlang/swift-syntax from cache
Fetching https://github.com/apple/swift-crypto.git from cache
Fetching https://github.com/ajevans99/swift-json-schema from cache
Fetching https://github.com/DePasqualeOrg/swift-sse from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.56s)
Fetched https://github.com/ajevans99/swift-json-schema from cache (0.56s)
Fetched https://github.com/apple/swift-system.git from cache (0.56s)
Fetched https://github.com/swiftlang/swift-syntax from cache (0.82s)
Fetched https://github.com/apple/swift-crypto.git from cache (0.83s)
Fetched https://github.com/DePasqualeOrg/swift-sse from cache (0.83s)
Computing version for https://github.com/ajevans99/swift-json-schema
Computed https://github.com/ajevans99/swift-json-schema at 0.11.2 (0.89s)
Computing version for https://github.com/DePasqualeOrg/swift-sse
Computed https://github.com/DePasqualeOrg/swift-sse at 0.1.0 (0.03s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.1 (0.74s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.04s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (0.03s)
Fetching https://github.com/apple/swift-asn1.git from cache
Fetched https://github.com/apple/swift-asn1.git from cache (0.47s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (1.10s)
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.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/DePasqualeOrg/swift-mcp.git
Working copy of https://github.com/DePasqualeOrg/swift-mcp.git resolved at main (254f61b)
Creating working copy for https://github.com/DePasqualeOrg/swift-sse
Working copy of https://github.com/DePasqualeOrg/swift-sse resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.1
Creating working copy for https://github.com/ajevans99/swift-json-schema
Working copy of https://github.com/ajevans99/swift-json-schema resolved at 0.11.2
warning: '.resolve-product-dependencies': dependency 'swift-mcp' is not used by any target
Found 6 product dependencies
- swift-system
- swift-log
- SSE
- swift-json-schema
- swift-syntax
- swift-crypto
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/DePasqualeOrg/swift-mcp.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/47] Write sources
[5/47] Copying applicator.json
[5/47] Copying unevaluated.json
[6/47] Copying validation.json
[6/47] Write sources
[13/47] Copying format-annotation.json
[13/47] Copying schema.json
[15/47] Copying meta-data.json
[15/47] Copying content.json
[15/47] Copying core.json
[18/47] Copying unevaluated.json
[18/47] Copying validation.json
[18/47] Copying schema.json
[19/47] Copying meta-data.json
[20/47] Copying core.json
[22/47] Copying format-annotation.json
[23/47] Write sources
[25/47] Copying applicator.json
[25/47] Write sources
[28/47] Copying content.json
[29/47] Write sources
[40/47] Compiling CSystem shims.c
[42/47] Write swift-version--6988338F2F200930.txt
[44/201] Compiling SSE SSE.swift
[46/201] Emitting module SSE
[48/201] Compiling Logging MetadataProvider.swift
[49/201] Compiling JSONSchema Keywords+Annotation.swift
[50/201] Compiling JSONSchema Keywords+Applicator.swift
[51/201] Compiling JSONSchema Keywords+Assertion.swift
[52/204] Compiling Logging MetadataProvider.swift
[53/204] Compiling JSONSchema Schema+Codable.swift
[54/204] Compiling JSONSchema Schema+Equatable.swift
[55/204] Compiling JSONSchema Schema.swift
[56/207] Emitting module Logging
[57/207] Compiling Logging Locks.swift
[58/207] Compiling JSONSchema Keywords+Identifier.swift
[59/207] Compiling JSONSchema Keywords.swift
[60/207] Compiling JSONSchema JSONPointer.swift
[67/207] Compiling JSONSchema Dialect.swift
[68/207] Compiling JSONSchema BuiltinValidators.swift
[69/207] Compiling JSONSchema FormatValidator.swift
[70/207] Compiling JSONSchema Annotation.swift
[71/207] Compiling JSONSchema AnnotationContainer.swift
[72/207] Compiling JSONSchema JSONType.swift
[76/207] Compiling Logging Locks.swift
[77/207] Compiling Logging LogHandler.swift
[78/207] Emitting module Logging
[79/207] Compiling Logging Logging.swift
[80/207] Emitting module SystemPackage
[81/207] Compiling JSONSchema Array+JSONValue.swift
[82/207] Compiling JSONSchema JSONValue+Codable.swift
[83/207] Compiling JSONSchema JSONValue+ExpressibleByLiteral.swift
[84/207] Compiling JSONSchema Keywords+Metadata.swift
[85/207] Compiling JSONSchema Keywords+Reference.swift
[86/207] Compiling JSONSchema Keywords+Reserved.swift
[87/207] Compiling JSONSchema Bundle+JSONSchemaResources.swift
[88/207] Compiling JSONSchema ValidationIssue.swift
[89/207] Compiling JSONSchema SchemaDocument.swift
[90/207] Compiling JSONSchema JSONValue+merge.swift
[91/207] Compiling JSONSchema JSONValue.swift
[92/207] Compiling JSONSchema Keyword.swift
[96/207] Emitting module SystemPackage
[97/207] Compiling Logging LogHandler.swift
[98/207] Compiling Logging Logging.swift
[108/207] Compiling SystemPackage Util+StringArray.swift
[109/207] Compiling SystemPackage Util.swift
[110/207] Compiling SystemPackage UtilConsumers.swift
[120/207] Emitting module JSONSchemaMacro
[123/208] Compiling JSONSchemaMacro SchemableMember.swift
[124/208] Compiling JSONSchemaMacro SchemableMacro.swift
[125/208] Compiling JSONSchemaMacro SchemableEnumCase.swift
[126/208] Emitting module JSONSchema
[127/211] Compiling JSONSchemaMacro TypeSpecificOptionMacros.swift
[137/211] Emitting module JSONSchema
[144/214] Compiling JSONSchema SchemaIssue.swift
[156/214] Compiling JSONSchema ValidationLocation.swift
[157/214] Compiling JSONSchema ValidationResult.swift
[158/214] Compiling JSONSchema resource_bundle_accessor.swift
[177/214] Compiling MCPMacros PromptMacro.swift
[178/214] Compiling MCPMacros MCPMacrosPlugin.swift
[179/214] Emitting module MCPMacros
[180/214] Compiling JSONSchemaMacro SupportedPrimitive.swift
[181/214] Compiling JSONSchemaMacro SwiftSyntaxExtensions.swift
[182/214] Compiling MCPMacros ToolMacroSharedHelpers.swift
[182/214] Write Objects.LinkFileList
[187/214] Compiling MCPMacros StructuredOutputMacro.swift
[188/214] Compiling MCPMacros ToolMacro.swift
[188/214] Write Objects.LinkFileList
[212/214] Linking JSONSchemaMacro-tool
[213/214] Linking MCPMacros-tool
[215/342] Compiling JSONSchemaBuilder JSONNull.swift
[216/342] Compiling JSONSchemaBuilder JSONNumber.swift
[217/342] Compiling JSONSchemaBuilder JSONObject.swift
[218/342] Compiling JSONSchemaBuilder JSONString.swift
[219/342] Compiling JSONSchemaBuilder JSONProperty.swift
[220/342] Compiling JSONSchemaBuilder JSONPropertyComponent.swift
[221/342] Compiling JSONSchemaBuilder JSONPropertyComponents.swift
[222/348] Compiling JSONSchemaBuilder JSONSchemaComponent+Identifiers.swift
[223/348] Compiling JSONSchemaBuilder JSONSchemaComponent.swift
[224/348] Compiling JSONSchemaBuilder AdditionalProperties.swift
[225/348] Compiling JSONSchemaBuilder AnySchemaComponent.swift
[226/348] Compiling JSONSchemaBuilder CompactMap.swift
[227/348] Compiling JSONSchemaBuilder Conditional.swift
[228/348] Compiling JSONSchemaBuilder Constant.swift
[229/348] Compiling JSONSchemaBuilder Parsed.swift
[230/348] Compiling JSONSchemaBuilder KeyEncodingStrategy.swift
[231/348] Compiling JSONSchemaBuilder SchemaAnchorName.swift
[232/348] Compiling JSONSchemaBuilder SchemaReferenceURI.swift
[233/348] Compiling JSONSchemaBuilder JSONPropertyValue.swift
[234/348] Compiling JSONSchemaBuilder JSONValueRepresentable.swift
[235/348] Compiling JSONSchemaBuilder JSONArrayValue.swift
[236/348] Compiling JSONSchemaBuilder JSONPropertyBuilder.swift
[237/348] Compiling JSONSchemaBuilder JSONPropertySchemaBuilder.swift
[238/348] Compiling JSONSchemaBuilder JSONSchemaBuilder.swift
[239/348] Compiling JSONSchemaBuilder JSONValueBuilder.swift
[240/348] Compiling JSONSchemaBuilder ConditionalSchema.swift
[241/348] Compiling JSONSchemaBuilder JSONAnyValue.swift
[242/348] Compiling JSONSchemaBuilder JSONBooleanSchema.swift
[243/353] Compiling JSONSchemaBuilder PassthroughComponent.swift
[244/353] Compiling JSONSchemaBuilder PatternProperties.swift
[245/353] Compiling JSONSchemaBuilder PropertyNames.swift
[246/353] Compiling JSONSchemaBuilder RuntimeComponent.swift
[247/353] Compiling JSONSchemaBuilder SchemaValue.swift
[248/353] Compiling JSONSchemaBuilder JSONArray.swift
[249/354] Compiling JSONSchemaBuilder JSONBoolean.swift
[264/354] Compiling JSONSchemaBuilder PassthroughComponent.swift
[265/354] Compiling JSONSchemaBuilder PatternProperties.swift
[266/354] Compiling JSONSchemaBuilder PropertyNames.swift
[267/354] Compiling JSONSchemaBuilder RuntimeComponent.swift
[268/354] Compiling JSONSchemaBuilder SchemaValue.swift
[269/354] Compiling JSONSchemaBuilder JSONArray.swift
[270/354] Compiling JSONSchemaBuilder OrNullModifier.swift
[285/354] Compiling JSONSchemaBuilder JSONBooleanValue.swift
[286/354] Compiling JSONSchemaBuilder JSONIntegerValue.swift
[287/354] Compiling JSONSchemaBuilder JSONNullValue.swift
[288/354] Compiling JSONSchemaBuilder JSONNumberValue.swift
[289/354] Compiling JSONSchemaBuilder JSONObjectValue.swift
[290/354] Compiling JSONSchemaBuilder JSONStringValue.swift
[297/354] Emitting module JSONSchemaBuilder
[299/354] Compiling JSONSchemaBuilder Parsed.swift
[300/354] Compiling JSONSchemaBuilder KeyEncodingStrategy.swift
[301/354] Compiling JSONSchemaBuilder SchemaAnchorName.swift
[302/354] Compiling JSONSchemaBuilder SchemaReferenceURI.swift
[303/354] Compiling JSONSchemaBuilder JSONPropertyValue.swift
[304/354] Compiling JSONSchemaBuilder JSONValueRepresentable.swift
[305/354] Compiling JSONSchemaBuilder JSONArrayValue.swift
[306/354] Compiling JSONSchemaBuilder JSONSchemaComponent+Identifiers.swift
[307/354] Compiling JSONSchemaBuilder PropertyCompactMap.swift
[308/354] Compiling JSONSchemaBuilder PropertyConditional.swift
[309/354] Compiling JSONSchemaBuilder PropertyFlatMap.swift
[310/354] Compiling JSONSchemaBuilder CompactMap.swift
[311/354] Compiling JSONSchemaBuilder JSONValue+Schema.swift
[312/354] Compiling JSONSchemaBuilder ExcludeFromSchema.swift
[313/354] Compiling JSONSchemaBuilder SchemaOptions.swift
[314/354] Compiling JSONSchemaBuilder ArrayOptions.swift
[315/354] Compiling JSONSchemaBuilder NumberOptions.swift
[316/354] Compiling JSONSchemaBuilder ObjectOptions.swift
[317/354] Compiling JSONSchemaBuilder StringOptions.swift
[318/354] Compiling JSONSchemaBuilder Schemable.swift
[319/354] Compiling JSONSchemaBuilder ParseIssue.swift
[355/424] Compiling MCPCore JSONSchemaValidator.swift
[356/424] Compiling MCPCore Messages.swift
[357/424] Compiling MCPCore Progress.swift
[358/424] Compiling MCPCore RequestId.swift
[359/427] Compiling MCPCore StrictSchemaValidatorSharedHelpers.swift
[360/427] Compiling MCPCore ToolError.swift
[361/427] Compiling MCPCore ToolOutput.swift
[366/430] Compiling MCPCore Versioning.swift
[367/430] Compiling MCPCore Elicitation.swift
[368/430] Compiling MCPCore Roots.swift
[369/430] Compiling MCPCore Sampling.swift
[370/430] Compiling MCPCore UnitInterval.swift
[371/430] Compiling MCPCore ExtraFieldsCoding.swift
[372/430] Compiling MCPCore Ping.swift
[373/430] Compiling MCPCore Value.swift
[374/430] Compiling MCPCore Media.swift
[375/430] Compiling MCPCore PrimitiveToolOutput.swift
[376/430] Compiling MCPCore SchemableAdapter.swift
[377/430] Compiling MCPCore Tools.swift
[378/430] Compiling MCPCore AnnotationOption.swift
[379/430] Compiling MCPCore Asset.swift
[380/430] Compiling MCPCore DictionaryOutput.swift
[381/430] Compiling MCPCore Annotations.swift
[382/430] Compiling MCPCore ContentBlock.swift
[383/430] Compiling MCPCore Error.swift
[384/430] Compiling MCPCore Icon.swift
[385/430] Compiling MCPCore ToolSchema.swift
[386/430] Compiling MCPCore VoidOutput.swift
[387/430] Compiling MCPCore WrappableValue.swift
[388/430] Emitting module MCPCore
[393/430] Compiling MCPCore Logging.swift
[394/430] Compiling MCPCore Prompts.swift
[395/430] Compiling MCPCore Resources.swift
[396/430] Compiling MCPCore ToolNameValidation.swift
[401/430] Compiling MCPCore Data+Extensions.swift
[402/430] Compiling MCPCore Macros.swift
[403/430] Compiling MCPCore Completions.swift
[404/430] Compiling MCPCore Tasks.swift
[431/570] Emitting module MCP
[433/584] Compiling MCP DefaultOAuthProvider.swift
[434/584] Compiling MCP PrivateKeyJWTProvider.swift
[435/584] Compiling MCP ClientAuthentication.swift
[436/584] Compiling MCP ClientCredentialsTokenRequest.swift
[437/584] Compiling MCP ClientRegistration.swift
[438/584] Compiling MCP MetadataDiscovery.swift
[439/584] Compiling MCP ExperimentalServerFeatures.swift
[440/584] Compiling MCP ServerAuthConfig.swift
[441/584] Compiling MCP TokenVerifier.swift
[442/584] Compiling MCP InMemoryTokenStorage.swift
[443/584] Compiling MCP KeychainTokenStorage.swift
[444/584] Compiling MCP TokenStorage.swift
[445/584] Compiling MCP OAuthErrors.swift
[446/584] Compiling MCP OAuthTypes.swift
[447/584] Compiling MCP Lifecycle.swift
[448/584] Compiling MCP ResourceURL.swift
[449/584] Compiling MCP ScopeSelection.swift
[450/584] Compiling MCP StateParameter.swift
[451/584] Compiling MCP TokenExchange.swift
[452/584] Compiling MCP TokenRefresh.swift
[453/584] Compiling MCP WWWAuthenticate.swift
[454/584] Compiling MCP BearerAuth.swift
[455/584] Compiling MCP ProtectedResourceEndpoint.swift
[464/584] Compiling MCP ClientCredentialsProvider.swift
[472/584] Compiling MCP MCPClient.swift
[473/584] Compiling MCP Exports.swift
[474/584] Compiling MCP PromptBuilder.swift
[475/584] Compiling MCP PromptSpec.swift
[476/584] Compiling MCP BasicHTTPSessionManager.swift
[477/584] Compiling MCP ExperimentalServerFeatures.swift
[478/584] Compiling MCP Client+MessageHandling.swift
[479/584] Compiling MCP Client+ProtocolMethods.swift
[480/584] Compiling MCP ProtocolLayer.swift
[481/584] Compiling MCP RequestHandlers.swift
[482/584] Compiling MCP Transport.swift
[483/584] Compiling MCP TransportType.swift
[484/584] Compiling MCP HTTPClientTransport+Types.swift
[485/584] Compiling MCP HTTPClientTransport.swift
[486/584] Compiling MCP ClientTaskSupport.swift
[487/584] Compiling MCP Client+Registration.swift
[488/584] Compiling MCP Client+Requests.swift
[489/584] Compiling MCP Client+Tasks.swift
[490/584] Compiling MCP Client.swift
[491/584] Compiling MCP ClientCapabilityHelpers.swift
[492/584] Compiling MCP ExperimentalClientFeatures.swift
[494/584] Compiling MCP Server.swift
[495/584] Compiling MCP ServerCapabilityHelpers.swift
[496/584] Compiling MCP SessionManager.swift
[497/584] Compiling MCP RegisteredTool.swift
[498/584] Compiling MCP ToolContext.swift
[499/584] Compiling MCP ToolRegistry.swift
[500/584] Compiling MCP ToolSpec.swift
[501/584] Compiling MCP PromptRegistry.swift
[502/584] Compiling MCP ResourceRegistry.swift
[503/584] Compiling MCP Server+ClientRequests.swift
[504/584] Compiling MCP Server+HighLevelAPI.swift
[505/584] Compiling MCP Server+RequestHandling.swift
[506/584] Compiling MCP Server+Sending.swift
[507/584] Compiling MCP ProgressTracker.swift
[508/584] Compiling MCP Protocol.swift
[531/584] Compiling MCP HTTPServerTransport+Types.swift
[532/584] Compiling MCP HTTPServerTransport.swift
[533/584] Compiling MCP InMemoryEventStore.swift
[534/584] Compiling MCP InMemoryTransport.swift
[535/584] Compiling MCP NetworkTransport.swift
[536/584] Compiling MCP OAuth.swift
[537/584] Compiling MCP StdioTransport.swift
[538/584] Compiling MCP MCPServer.swift
[562/584] Compiling MCP ServerTaskContext.swift
[563/584] Compiling MCP TaskCapabilities.swift
[564/584] Compiling MCP TaskContext.swift
[565/584] Compiling MCP TaskMessageQueue.swift
[566/584] Compiling MCP TaskResultHandler.swift
[567/584] Compiling MCP TaskStore.swift
[568/584] Compiling MCP TaskSupport.swift
[569/584] Compiling MCP HTTPHeader.swift
[585/596] Compiling MCPPrompt MCPPrompt.swift
[586/596] Emitting module MCPPrompt
[587/596] Compiling MCPPrompt MCPPrompt.swift
[588/596] Emitting module MCPPrompt
[589/596] Compiling MCPTool MCPTool.swift
[590/596] Compiling MCPTool ToolMacroSupport.swift
[591/596] Emitting module MCPTool
[592/596] Compiling MCPTool PrimitiveSchemable.swift
[594/596] Emitting module MCPTool
[595/596] Compiling MCPTool ToolMacroSupport.swift
[596/596] Compiling MCPTool MCPTool.swift
Build complete! (36.73s)
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" : "swift-sse",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "0.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/DePasqualeOrg/swift-sse"
},
{
"identity" : "swift-json-schema",
"requirement" : {
"range" : [
{
"lower_bound" : "0.11.2",
"upper_bound" : "0.12.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ajevans99/swift-json-schema"
},
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "603.0.0",
"upper_bound" : "604.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
},
{
"identity" : "swift-docc",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-docc"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-docc-plugin"
},
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto.git"
},
{
"identity" : "hummingbird",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/hummingbird-project/hummingbird.git"
}
],
"manifest_display_name" : "swift-mcp",
"name" : "swift-mcp",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
},
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "MCPCore",
"targets" : [
"MCPCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MCP",
"targets" : [
"MCP"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MCPTool",
"targets" : [
"MCPTool"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MCPPrompt",
"targets" : [
"MCPPrompt"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MCPMacros",
"targets" : [
"MCPMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "MCPTool",
"module_type" : "SwiftTarget",
"name" : "MCPTool",
"path" : "Sources/MCPTool",
"product_dependencies" : [
"JSONSchema",
"JSONSchemaBuilder"
],
"product_memberships" : [
"MCPTool"
],
"sources" : [
"MCPTool.swift",
"PrimitiveSchemable.swift",
"ToolMacroSupport.swift"
],
"target_dependencies" : [
"MCP",
"MCPMacros"
],
"type" : "library"
},
{
"c99name" : "MCPTests",
"module_type" : "SwiftTarget",
"name" : "MCPTests",
"path" : "Tests/MCPTests",
"product_dependencies" : [
"SystemPackage",
"Logging",
"SSE",
"JSONSchema",
"JSONSchemaBuilder",
"Crypto",
"Hummingbird",
"HummingbirdTesting"
],
"sources" : [
"AdditionalServerTests.swift",
"AssetIntegrationTests.swift",
"Base64DataTests.swift",
"BasicHTTPSessionManagerTests.swift",
"CancellationTests.swift",
"CapabilitiesTests.swift",
"ClientReconnectionTests.swift",
"ClientTests.swift",
"CompletionTests.swift",
"ConcurrentExecutionTests.swift",
"ElicitationTests.swift",
"ErrorHandlingTests.swift",
"ErrorSanitizationTests.swift",
"ErrorTests.swift",
"FallbackHandlerTests.swift",
"FullRoundtripTests.swift",
"HTTPClientTransportTests.swift",
"HTTPIntegrationTests.swift",
"HTTPServerTransportTests.swift",
"Helpers/AsyncTestHelpers.swift",
"Helpers/MockTransport.swift",
"Helpers/TestHTTPServer.swift",
"Helpers/TestPayloads.swift",
"IDTests.swift",
"ImplementationMetadataTests.swift",
"InMemoryEventStoreTests.swift",
"InMemoryTransportTests.swift",
"IntegrationRoundtripTests.swift",
"JSONSchemaValidationTests.swift",
"MCPClientTests.swift",
"MCPServerBroadcastTests.swift",
"MCPServerTests.swift",
"MalformedResponseTests.swift",
"MediaIntegrationTests.swift",
"MediaWithMetadataIntegrationTests.swift",
"NetworkTransportTests.swift",
"NotificationHandlerDispatchTests.swift",
"NotificationTests.swift",
"OAuthTests.swift",
"PrimingEventsTests.swift",
"PrimitiveOutputIntegrationTests.swift",
"ProgressTests.swift",
"PromptDSLTests.swift",
"PromptTests.swift",
"ProtocolTests.swift",
"RequestHandlerContextTests.swift",
"RequestTests.swift",
"ResourceSubscriptionTests.swift",
"ResourceTests.swift",
"ResponseTests.swift",
"ResumabilityTests.swift",
"RootsTests.swift",
"RoundtripTests.swift",
"SamplingTests.swift",
"SchemaAuditTests.swift",
"SchemableAdapterTests.swift",
"SchemableIntegrationTests.swift",
"ServerAuthTests.swift",
"ServerDisconnectCallbackTests.swift",
"ServerTests.swift",
"SessionLifecycleTests.swift",
"SessionManagerTests.swift",
"StatelessModeTests.swift",
"StdioTransportTests.swift",
"StructuredOutputIntegrationTests.swift",
"TaskModeValidationTests.swift",
"TaskTests.swift",
"ToolDSLTests.swift",
"ToolErrorIntegrationTests.swift",
"ToolInputValidationIntegrationTests.swift",
"ToolTests.swift",
"TransportSwitchingTests.swift",
"UnitIntervalTests.swift",
"VersioningTests.swift"
],
"target_dependencies" : [
"MCP",
"MCPTool",
"MCPPrompt"
],
"type" : "test"
},
{
"c99name" : "MCPPrompt",
"module_type" : "SwiftTarget",
"name" : "MCPPrompt",
"path" : "Sources/MCPPrompt",
"product_memberships" : [
"MCPPrompt"
],
"sources" : [
"MCPPrompt.swift"
],
"target_dependencies" : [
"MCP",
"MCPMacros"
],
"type" : "library"
},
{
"c99name" : "MCPMacros",
"module_type" : "SwiftTarget",
"name" : "MCPMacros",
"path" : "Sources/MCPMacros",
"product_dependencies" : [
"SwiftSyntax",
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"MCPCore",
"MCP",
"MCPTool",
"MCPPrompt",
"MCPMacros"
],
"sources" : [
"MCPMacrosPlugin.swift",
"PromptMacro.swift",
"StructuredOutputMacro.swift",
"ToolMacro.swift",
"ToolMacroSharedHelpers.swift"
],
"type" : "macro"
},
{
"c99name" : "MCPMacroTests",
"module_type" : "SwiftTarget",
"name" : "MCPMacroTests",
"path" : "Tests/MCPMacroTests",
"product_dependencies" : [
"SwiftSyntax",
"SwiftSyntaxMacros",
"SwiftSyntaxMacroExpansion",
"SwiftSyntaxMacrosGenericTestSupport"
],
"sources" : [
"MacroExpansionAssertions.swift",
"PromptMacroTests.swift",
"StructuredOutputMacroTests.swift",
"ToolMacroTests.swift"
],
"target_dependencies" : [
"MCPMacros"
],
"type" : "test"
},
{
"c99name" : "MCPCore",
"module_type" : "SwiftTarget",
"name" : "MCPCore",
"path" : "Sources/MCPCore",
"product_dependencies" : [
"SystemPackage",
"Logging",
"JSONSchema",
"JSONSchemaBuilder"
],
"product_memberships" : [
"MCPCore",
"MCP",
"MCPTool",
"MCPPrompt"
],
"sources" : [
"Base/Annotations.swift",
"Base/ContentBlock.swift",
"Base/Error.swift",
"Base/Icon.swift",
"Base/JSONSchemaValidator.swift",
"Base/Messages.swift",
"Base/Progress.swift",
"Base/RequestId.swift",
"Base/UnitInterval.swift",
"Base/Utilities/ExtraFieldsCoding.swift",
"Base/Utilities/Ping.swift",
"Base/Value.swift",
"Base/Versioning.swift",
"Client/Elicitation.swift",
"Client/Roots.swift",
"Client/Sampling.swift",
"Extensions/Data+Extensions.swift",
"Macros.swift",
"Server/Completions.swift",
"Server/Experimental/Tasks/Tasks.swift",
"Server/Logging.swift",
"Server/Prompts.swift",
"Server/Resources.swift",
"Server/ToolNameValidation.swift",
"Server/Tools.swift",
"ToolDSL/AnnotationOption.swift",
"ToolDSL/Asset.swift",
"ToolDSL/DictionaryOutput.swift",
"ToolDSL/Media.swift",
"ToolDSL/PrimitiveToolOutput.swift",
"ToolDSL/SchemableAdapter.swift",
"ToolDSL/StrictSchemaValidatorSharedHelpers.swift",
"ToolDSL/ToolError.swift",
"ToolDSL/ToolOutput.swift",
"ToolDSL/ToolSchema.swift",
"ToolDSL/VoidOutput.swift",
"ToolDSL/WrappableValue.swift"
],
"target_dependencies" : [
"MCPMacros"
],
"type" : "library"
},
{
"c99name" : "MCP",
"module_type" : "SwiftTarget",
"name" : "MCP",
"path" : "Sources/MCP",
"product_dependencies" : [
"SystemPackage",
"Logging",
"SSE",
"JSONSchema",
"JSONSchemaBuilder",
"Crypto"
],
"product_memberships" : [
"MCP",
"MCPTool",
"MCPPrompt"
],
"sources" : [
"Auth/Client/ClientCredentialsProvider.swift",
"Auth/Client/DefaultOAuthProvider.swift",
"Auth/Client/PrivateKeyJWTProvider.swift",
"Auth/OAuth/ClientAuthentication.swift",
"Auth/OAuth/ClientCredentialsTokenRequest.swift",
"Auth/OAuth/ClientRegistration.swift",
"Auth/OAuth/MetadataDiscovery.swift",
"Auth/OAuth/PKCE.swift",
"Auth/OAuth/ResourceURL.swift",
"Auth/OAuth/ScopeSelection.swift",
"Auth/OAuth/StateParameter.swift",
"Auth/OAuth/TokenExchange.swift",
"Auth/OAuth/TokenRefresh.swift",
"Auth/OAuth/WWWAuthenticate.swift",
"Auth/Server/BearerAuth.swift",
"Auth/Server/ProtectedResourceEndpoint.swift",
"Auth/Server/ServerAuthConfig.swift",
"Auth/Server/TokenVerifier.swift",
"Auth/TokenStorage/InMemoryTokenStorage.swift",
"Auth/TokenStorage/KeychainTokenStorage.swift",
"Auth/TokenStorage/TokenStorage.swift",
"Auth/Types/OAuthErrors.swift",
"Auth/Types/OAuthTypes.swift",
"Base/Lifecycle.swift",
"Base/ProgressTracker.swift",
"Base/Protocol.swift",
"Base/ProtocolLayer.swift",
"Base/RequestHandlers.swift",
"Base/Transport.swift",
"Base/TransportType.swift",
"Base/Transports/HTTPClientTransport+Types.swift",
"Base/Transports/HTTPClientTransport.swift",
"Base/Transports/HTTPHeader.swift",
"Base/Transports/HTTPServerTransport+Types.swift",
"Base/Transports/HTTPServerTransport.swift",
"Base/Transports/InMemoryEventStore.swift",
"Base/Transports/InMemoryTransport.swift",
"Base/Transports/NetworkTransport.swift",
"Base/Transports/OAuth.swift",
"Base/Transports/StdioTransport.swift",
"Client/Client+MessageHandling.swift",
"Client/Client+ProtocolMethods.swift",
"Client/Client+Registration.swift",
"Client/Client+Requests.swift",
"Client/Client+Tasks.swift",
"Client/Client.swift",
"Client/ClientCapabilityHelpers.swift",
"Client/Experimental/ExperimentalClientFeatures.swift",
"Client/Experimental/Tasks/ClientTaskSupport.swift",
"Client/MCPClient.swift",
"Exports.swift",
"PromptDSL/PromptBuilder.swift",
"PromptDSL/PromptSpec.swift",
"Server/BasicHTTPSessionManager.swift",
"Server/Experimental/ExperimentalServerFeatures.swift",
"Server/Experimental/Tasks/ServerTaskContext.swift",
"Server/Experimental/Tasks/TaskCapabilities.swift",
"Server/Experimental/Tasks/TaskContext.swift",
"Server/Experimental/Tasks/TaskMessageQueue.swift",
"Server/Experimental/Tasks/TaskResultHandler.swift",
"Server/Experimental/Tasks/TaskStore.swift",
"Server/Experimental/Tasks/TaskSupport.swift",
"Server/MCPServer.swift",
"Server/PromptRegistry.swift",
"Server/ResourceRegistry.swift",
"Server/Server+ClientRequests.swift",
"Server/Server+HighLevelAPI.swift",
"Server/Server+RequestHandling.swift",
"Server/Server+Sending.swift",
"Server/Server.swift",
"Server/ServerCapabilityHelpers.swift",
"Server/SessionManager.swift",
"ToolDSL/RegisteredTool.swift",
"ToolDSL/ToolContext.swift",
"ToolDSL/ToolRegistry.swift",
"ToolDSL/ToolSpec.swift"
],
"target_dependencies" : [
"MCPCore"
],
"type" : "library"
}
],
"tools_version" : "6.1"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/depasqualeorg/swift-mcp/main
Repository: DePasqualeOrg/swift-mcp
Swift version used: 6.3
.package(url: "https://github.com/swiftlang/swift-docc-plugin", branch: "main"),
Target: MCP
Extracting symbol information for 'MCP'...
Finished extracting symbol information for 'MCP'. (36.08s)
Building documentation for 'MCP'...
warning: Can't resolve 'MCPCore'
--> ../Client/MCPClient.swift:137:32-137:68
135 | ///
136 | /// This fires in two situations:
137 + /// - The server sends a ``/MCPCore/ToolListChangedNotification``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
138 | /// - Tools are refreshed after a successful reconnection
139 | ///
warning: Can't resolve 'MCPCore'
--> articles/client/client-advanced.md:114:7-114:24
112 | ```
113 |
114 + The ``/MCPCore/Progress`` struct contains:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
115 |
116 | - `value`: The current progress (increases monotonically)
warning: Can't resolve 'MCPCore'
--> articles/client/client-elicitation.md:88:7-88:33
86 | ### Schema Field Types
87 |
88 + The ``/MCPCore/ElicitationSchema`` contains fields with various types:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
89 |
90 | ```swift
warning: Can't resolve 'MCPCore'
--> articles/client/client-elicitation.md:179:49-179:89
177 | ## Elicitation Complete Notification
178 |
179 + For URL mode elicitation, the server sends an ``/MCPCore/ElicitationCompleteNotification`` when the external flow finishes. Register a notification handler to react to completion:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
180 |
181 | ```swift
warning: Can't resolve 'MCPCore'
--> articles/client/client-elicitation.md:190:7-190:28
188 | ## User Actions
189 |
190 + The ``/MCPCore/ElicitResult`` action indicates how the user responded:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
191 |
192 | - `.accept`: User submitted the form or completed the flow
warning: Can't resolve 'MCPCore'
--> articles/client/client-prompts.md:105:5-105:20
103 | - <doc:server-prompts>
104 | - ``Client``
105 + - ``/MCPCore/Prompt``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> articles/client/client-resources.md:120:5-120:22
118 | - <doc:server-resources>
119 | - ``Client``
120 + - ``/MCPCore/Resource``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> articles/client/client-roots.md:112:5-112:18
110 | - <doc:server-roots>
111 | - ``Client``
112 + - ``/MCPCore/Root``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> articles/client/client-sampling.md:67:24-67:57
65 | ## Request Parameters
66 |
67 + The handler receives ``/MCPCore/ClientSamplingParameters`` with:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
68 |
69 | - `messages`: The conversation history as `[Sampling.Message]`
warning: Can't resolve 'MCPCore'
--> articles/client/client-sampling.md:94:12-94:49
92 | ## Result Types
93 |
94 + Return a ``/MCPCore/ClientSamplingRequest/Result`` with:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
95 |
96 | - `model`: The name of the model used
warning: Can't resolve 'MCPCore'
--> articles/client/client-setup.md:361:86-361:112
359 | ```
360 |
361 + The SDK supports all protocol versions from `2024-11-05` through `2025-11-25`. See ``/MCPCore/Version/supported`` for the full list.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
362 |
363 | ## Error Handling
warning: Can't resolve 'MCPCore'
--> articles/client/client-tools.md:46:8-46:21
44 | ### Tool Metadata
45 |
46 + Each ``/MCPCore/Tool`` includes metadata you can use to display or filter tools:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
47 |
48 | ```swift
warning: Can't resolve 'MCPCore'
--> articles/client/client-tools.md:170:5-170:18
168 | - ``MCPClient``
169 | - ``Client``
170 + - ``/MCPCore/Tool``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:77:7-77:24
75 | ## Error Handling
76 |
77 + The ``/MCPCore/MCPError`` enum covers all error conditions, including ``/MCPCore/MCPError/connectionClosed``, ``/MCPCore/MCPError/sessionExpired``, ``/MCPCore/MCPError/requestTimeout(timeout:message:)``, and ``/MCPCore/MCPError/transportError(_:)``. When using ``MCPClient``, session expiration and transport errors are handled automatically via reconnection – see <doc:client-setup>.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
78 |
79 | In request handlers, throw ``/MCPCore/MCPError`` for protocol-compliant error responses:
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:77:73-77:107
75 | ## Error Handling
76 |
77 + The ``/MCPCore/MCPError`` enum covers all error conditions, including ``/MCPCore/MCPError/connectionClosed``, ``/MCPCore/MCPError/sessionExpired``, ``/MCPCore/MCPError/requestTimeout(timeout:message:)``, and ``/MCPCore/MCPError/transportError(_:)``. When using ``MCPClient``, session expiration and transport errors are handled automatically via reconnection – see <doc:client-setup>.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
78 |
79 | In request handlers, throw ``/MCPCore/MCPError`` for protocol-compliant error responses:
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:77:113-77:145
75 | ## Error Handling
76 |
77 + The ``/MCPCore/MCPError`` enum covers all error conditions, including ``/MCPCore/MCPError/connectionClosed``, ``/MCPCore/MCPError/sessionExpired``, ``/MCPCore/MCPError/requestTimeout(timeout:message:)``, and ``/MCPCore/MCPError/transportError(_:)``. When using ``MCPClient``, session expiration and transport errors are handled automatically via reconnection – see <doc:client-setup>.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
78 |
79 | In request handlers, throw ``/MCPCore/MCPError`` for protocol-compliant error responses:
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:77:151-77:201
75 | ## Error Handling
76 |
77 + The ``/MCPCore/MCPError`` enum covers all error conditions, including ``/MCPCore/MCPError/connectionClosed``, ``/MCPCore/MCPError/sessionExpired``, ``/MCPCore/MCPError/requestTimeout(timeout:message:)``, and ``/MCPCore/MCPError/transportError(_:)``. When using ``MCPClient``, session expiration and transport errors are handled automatically via reconnection – see <doc:client-setup>.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
78 |
79 | In request handlers, throw ``/MCPCore/MCPError`` for protocol-compliant error responses:
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:77:211-77:247
75 | ## Error Handling
76 |
77 + The ``/MCPCore/MCPError`` enum covers all error conditions, including ``/MCPCore/MCPError/connectionClosed``, ``/MCPCore/MCPError/sessionExpired``, ``/MCPCore/MCPError/requestTimeout(timeout:message:)``, and ``/MCPCore/MCPError/transportError(_:)``. When using ``MCPClient``, session expiration and transport errors are handled automatically via reconnection – see <doc:client-setup>.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
78 |
79 | In request handlers, throw ``/MCPCore/MCPError`` for protocol-compliant error responses:
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:79:30-79:47
77 | The ``/MCPCore/MCPError`` enum covers all error conditions, including ``/MCPCore/MCPError/connectionClosed``, ``/MCPCore/MCPError/sessionExpired``, ``/MCPCore/MCPError/requestTimeout(timeout:message:)``, and ``/MCPCore/MCPError/transportError(_:)``. When using ``MCPClient``, session expiration and transport errors are handled automatically via reconnection – see <doc:client-setup>.
78 |
79 + In request handlers, throw ``/MCPCore/MCPError`` for protocol-compliant error responses:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
80 |
81 | ```swift
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:172:5-172:22
170 | - <doc:client-setup>
171 | - <doc:server-setup>
172 + - ``/MCPCore/MCPError``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
173 | - ``/MCPCore/ErrorCode``
warning: Can't resolve 'MCPCore'
--> articles/debugging.md:173:5-173:23
171 | - <doc:server-setup>
172 | - ``/MCPCore/MCPError``
173 + - ``/MCPCore/ErrorCode``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> articles/server/server-elicitation.md:173:78-173:118
171 | ### Signaling Completion
172 |
173 + After the external flow finishes (e.g., the user completes OAuth), send an ``/MCPCore/ElicitationCompleteNotification`` so the client can dismiss the browser or update its UI:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
174 |
175 | ```swift
warning: Can't resolve 'MCPCore'
--> articles/server/server-elicitation.md:235:5-235:31
233 | - <doc:client-elicitation>
234 | - ``Server``
235 + - ``/MCPCore/ElicitationSchema``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> articles/server/server-prompts.md:294:5-294:20
292 | - <doc:client-prompts>
293 | - ``MCPServer``
294 + - ``/MCPCore/Prompt``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
295 | - ``PromptSpec``
warning: Can't resolve 'MCPCore'
--> articles/server/server-resources.md:135:198-135:215
133 | ## Resource Annotations
134 |
135 + Resources can include annotations to indicate audience (`user`, `assistant`, or both), priority (0.0 to 1.0), and last modified timestamp. For setting annotations, use the low-level API with the ``/MCPCore/Resource`` type directly. See <doc:server-advanced>.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
136 |
137 | ## Notifying Changes
warning: Can't resolve 'MCPCore'
--> articles/server/server-resources.md:199:5-199:22
197 | - <doc:client-resources>
198 | - ``MCPServer``
199 + - ``/MCPCore/Resource``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
200 | - ``FileResource``
warning: Can't resolve 'MCPCore'
--> articles/server/server-roots.md:36:8-36:21
34 | ## Root Properties
35 |
36 + Each ``/MCPCore/Root`` includes:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
37 |
38 | - `uri`: The filesystem location as a `file://` URI
warning: Can't resolve 'MCPCore'
--> articles/server/server-roots.md:130:5-130:18
128 | - <doc:client-roots>
129 | - ``Server``
130 + - ``/MCPCore/Root``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:432:21-432:35
430 | | :--- | :--- |
431 | | Value | `String`, `Int`, `Double`, `Bool`, `Date`, `[T]`, `T?`, `[String: V]`, `Void`, `@Schemable @StructuredOutput` struct |
432 + | Image / audio | ``/MCPCore/Media``, ``/MCPCore/MediaWithMetadata`` |
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
433 | | Asset (file / link) | ``/MCPCore/Asset``, ``/MCPCore/AssetWithMetadata`` |
434 |
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:432:41-432:67
430 | | :--- | :--- |
431 | | Value | `String`, `Int`, `Double`, `Bool`, `Date`, `[T]`, `T?`, `[String: V]`, `Void`, `@Schemable @StructuredOutput` struct |
432 + | Image / audio | ``/MCPCore/Media``, ``/MCPCore/MediaWithMetadata`` |
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
433 | | Asset (file / link) | ``/MCPCore/Asset``, ``/MCPCore/AssetWithMetadata`` |
434 |
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:433:27-433:41
431 | | Value | `String`, `Int`, `Double`, `Bool`, `Date`, `[T]`, `T?`, `[String: V]`, `Void`, `@Schemable @StructuredOutput` struct |
432 | | Image / audio | ``/MCPCore/Media``, ``/MCPCore/MediaWithMetadata`` |
433 + | Asset (file / link) | ``/MCPCore/Asset``, ``/MCPCore/AssetWithMetadata`` |
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
434 |
435 | Pick the category that matches what your tool produces. Each handles encoding automatically: value returns come with a published JSON schema and typed JSON output; media and asset returns emit content blocks the client renders directly; the `WithMetadata<T>` forms combine a media or asset block with typed JSON, so an agent can parse the result programmatically.
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:433:47-433:73
431 | | Value | `String`, `Int`, `Double`, `Bool`, `Date`, `[T]`, `T?`, `[String: V]`, `Void`, `@Schemable @StructuredOutput` struct |
432 | | Image / audio | ``/MCPCore/Media``, ``/MCPCore/MediaWithMetadata`` |
433 + | Asset (file / link) | ``/MCPCore/Asset``, ``/MCPCore/AssetWithMetadata`` |
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
434 |
435 | Pick the category that matches what your tool produces. Each handles encoding automatically: value returns come with a published JSON schema and typed JSON output; media and asset returns emit content blocks the client renders directly; the `WithMetadata<T>` forms combine a media or asset block with typed JSON, so an agent can parse the result programmatically.
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:506:369-506:394
504 | ```
505 |
506 + `@Schemable` derives the JSON schema from the struct's fields. `@StructuredOutput` generates an encoder that emits every declared property explicitly – `nil` optionals become JSON `null` rather than being dropped, so consumers can rely on a stable shape. The server validates every tool result against the schema before sending it, catching output bugs early. See ``/MCPCore/StructuredOutput`` for the full contract.
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
507 |
508 | ### Media
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:665:189-665:208
663 | Whatever the hand-rolled encoder emits is still validated against the schema `@Schemable` generates from the Swift struct. Safe divergences are narrow: byte-level reformatting within a declared type, or adding extra keys not declared on the schema. Changing a declared property's wire type (emitting a number where the schema declares a string, for example Unix seconds for a `Date` field) fails validation – to emit Unix seconds, declare the Swift field as `Int` instead. To rename a key, add a `CodingKeys` enum; `@Schemable` honors it for the schema too.
664 |
665 + **Custom return types** cover the rare case where none of the built-in categories fits – for example, a tool that genuinely needs image and PDF in one result. Conform a custom type to ``/MCPCore/ToolOutput`` and build the `CallTool.Result` by hand:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
666 |
667 | ```swift
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:728:162-728:180
726 | ### Rich errors with ToolError
727 |
728 + For errors that need multiple content blocks – a text explanation plus an image of the failing chart, a diagnostic plus a resource link, etc. – conform to ``/MCPCore/ToolError``:
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
729 |
730 | ```swift
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:787:5-787:18
785 | - <doc:client-tools>
786 | - ``MCPServer``
787 + - ``/MCPCore/Tool``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
788 | - ``ToolSpec``
789 | - ``/MCPCore/StructuredOutput``
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:789:5-789:30
787 | - ``/MCPCore/Tool``
788 | - ``ToolSpec``
789 + - ``/MCPCore/StructuredOutput``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
790 | - ``/MCPCore/Media``
791 | - ``/MCPCore/MediaWithMetadata``
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:790:5-790:19
788 | - ``ToolSpec``
789 | - ``/MCPCore/StructuredOutput``
790 + - ``/MCPCore/Media``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
791 | - ``/MCPCore/MediaWithMetadata``
792 | - ``/MCPCore/Asset``
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:791:5-791:31
789 | - ``/MCPCore/StructuredOutput``
790 | - ``/MCPCore/Media``
791 + - ``/MCPCore/MediaWithMetadata``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
792 | - ``/MCPCore/Asset``
793 | - ``/MCPCore/AssetWithMetadata``
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:792:5-792:19
790 | - ``/MCPCore/Media``
791 | - ``/MCPCore/MediaWithMetadata``
792 + - ``/MCPCore/Asset``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
793 | - ``/MCPCore/AssetWithMetadata``
794 | - ``/MCPCore/ToolError``
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:793:5-793:31
791 | - ``/MCPCore/MediaWithMetadata``
792 | - ``/MCPCore/Asset``
793 + - ``/MCPCore/AssetWithMetadata``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
794 | - ``/MCPCore/ToolError``
795 | - ``/MCPCore/ToolOutput``
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:794:5-794:23
792 | - ``/MCPCore/Asset``
793 | - ``/MCPCore/AssetWithMetadata``
794 + - ``/MCPCore/ToolError``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
795 | - ``/MCPCore/ToolOutput``
warning: Can't resolve 'MCPCore'
--> articles/server/server-tools.md:795:5-795:24
793 | - ``/MCPCore/AssetWithMetadata``
794 | - ``/MCPCore/ToolError``
795 + - ``/MCPCore/ToolOutput``
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
warning: Can't resolve 'MCPCore'
--> ../ToolDSL/ToolSpec.swift:69:49-69:67
67 | /// the fallback `String(describing:)` output – meaningful but less
68 | /// actionable.
69 + /// - **Rich multi-block errors**: conform to ``/MCPCore/ToolError`` when the
| ╰─suggestion: Replace 'MCPCore' with 'MCP'
70 | /// error needs to carry more than a single text block (for example a
71 | /// `.text` explanation plus an `.image`). `ToolError` refines
Finished building documentation for 'MCP' (1.38s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/depasqualeorg/swift-mcp/main
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version--6988338F2F200930.txt
[6/62] Compiling SymbolKit Relationship.swift
[7/62] Compiling SymbolKit RelationshipKind.swift
[8/62] Compiling SymbolKit SourceOrigin.swift
[9/62] Compiling SymbolKit GenericConstraints.swift
[10/62] Compiling SymbolKit Swift.swift
[11/62] Compiling SymbolKit SemanticVersion.swift
[12/67] Compiling SymbolKit SourceRange.swift
[13/67] Compiling SymbolKit Metadata.swift
[14/67] Compiling SymbolKit Module.swift
[15/67] Compiling SymbolKit OperatingSystem.swift
[16/67] Compiling SymbolKit Platform.swift
[17/67] Compiling SymbolKit ReferenceLocation.swift
[18/67] Compiling SymbolKit DeclarationFragments.swift
[19/67] Compiling SymbolKit Fragment.swift
[20/67] Compiling SymbolKit FragmentKind.swift
[21/67] Compiling SymbolKit FunctionParameter.swift
[22/67] Compiling SymbolKit FunctionSignature.swift
[23/67] Compiling SymbolKit HTTP.swift
[24/67] Compiling SymbolKit Mixin+Equals.swift
[25/67] Compiling SymbolKit Mixin+Hash.swift
[26/67] Compiling SymbolKit Mixin.swift
[27/67] Compiling SymbolKit AnyScalar.swift
[28/67] Compiling SymbolKit LineList.swift
[29/67] Compiling SymbolKit Position.swift
[30/67] Compiling SymbolKit Identifier.swift
[31/67] Compiling SymbolKit KindIdentifier.swift
[32/67] Compiling SymbolKit Location.swift
[33/67] Compiling SymbolKit Mutability.swift
[34/67] Compiling SymbolKit Names.swift
[35/67] Emitting module SymbolKit
[36/67] Compiling SymbolKit GenericConstraint.swift
[37/67] Compiling SymbolKit GenericParameter.swift
[38/67] Compiling SymbolKit Generics.swift
[39/67] Compiling SymbolKit Namespace.swift
[40/67] Compiling SymbolKit Symbol.swift
[41/67] Compiling SymbolKit SymbolKind.swift
[42/67] Compiling SymbolKit ValueConstraints.swift
[43/67] Compiling SymbolKit SymbolGraph+Overloads.swift
[44/67] Compiling SymbolKit SymbolGraph.swift
[45/67] Compiling SymbolKit GraphCollector.swift
[46/67] Compiling SymbolKit OverloadData.swift
[47/67] Compiling SymbolKit PlistDetails.swift
[48/67] Compiling SymbolKit SPI.swift
[49/67] Compiling SymbolKit Snippet.swift
[50/67] Compiling SymbolKit Extension.swift
[51/67] Compiling Snippets SnippetParser.swift
[52/67] Compiling SymbolKit AccessControl.swift
[53/67] Compiling SymbolKit AlternateDeclarations.swift
[54/67] Compiling SymbolKit Availability.swift
[55/67] Compiling SymbolKit AvailabilityItem.swift
[56/67] Compiling SymbolKit Domain.swift
[57/67] Compiling SymbolKit DeclarationFragments+Simplify.swift
[58/67] Compiling Snippets Snippet.swift
[59/67] Emitting module Snippets
[60/67] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[61/67] Compiling SymbolKit UnifiedSymbol.swift
[62/67] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[63/67] Compiling SymbolKit UnifiedSymbolGraph+Overloads.swift
[64/67] Compiling SymbolKit UnifiedSymbolGraph.swift
[65/71] Compiling snippet_extract URL+Status.swift
[66/71] Compiling snippet_extract SymbolGraph+Snippet.swift
[67/71] Emitting module snippet_extract
[68/71] Compiling snippet_extract SnippetBuildCommand.swift
[68/71] Write Objects.LinkFileList
[69/71] Linking snippet-extract-tool
[70/71] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (8.80s)
Building for debugging...
[0/1] Write swift-version--6988338F2F200930.txt
Build of target: 'MCP' complete! (7.26s)
3128
20 /Users/admin/builder/spi-builder-workspace/.docs/depasqualeorg/swift-mcp/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/depasqualeorg/swift-mcp/main
File count: 3128
Doc size: 20.0MB
Preparing doc bundle ...
Uploading prod-depasqualeorg-swift-mcp-main-9c3d33ef.zip to s3://spi-docs-inbox/prod-depasqualeorg-swift-mcp-main-9c3d33ef.zip
Copying... [11%]
Copying... [21%]
Copying... [30%]
Copying... [41%]
Copying... [50%]
Copying... [61%]
Copying... [70%]
Copying... [81%]
Copying... [91%]
Copying... [100%]
Done.