Build Information
Failed to build swift-mcp-toolkit, reference main (4f11ff), with Swift 6.3 for Linux on 17 Apr 2026 05:22:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ajevans99/swift-mcp-toolkit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ajevans99/swift-mcp-toolkit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4f11fff Merge pull request #6 from ajevans99/dependabot/github_actions/actions/checkout-6
Cloned https://github.com/ajevans99/swift-mcp-toolkit.git
Revision (git rev-parse @):
4f11fff16c890efc5264177e0b2e184e300f5ac5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ajevans99/swift-mcp-toolkit.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/ajevans99/swift-mcp-toolkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/ajevans99/swift-json-schema.git
Fetching https://github.com/modelcontextprotocol/swift-sdk.git
[1/5685] Fetching swift-json-schema
[2503/9132] Fetching swift-json-schema, swift-sdk
Fetched https://github.com/modelcontextprotocol/swift-sdk.git from cache (1.59s)
Fetched https://github.com/ajevans99/swift-json-schema.git from cache (1.60s)
Computing version for https://github.com/modelcontextprotocol/swift-sdk.git
Computed https://github.com/modelcontextprotocol/swift-sdk.git at 0.12.0 (4.02s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/mattt/eventsource.git
[1/271] Fetching eventsource
[272/6882] Fetching eventsource, swift-log
[669/12483] Fetching eventsource, swift-log, swift-system
[12484/95645] Fetching eventsource, swift-log, swift-system, swift-nio
Fetched https://github.com/mattt/eventsource.git from cache (3.16s)
[60446/95374] Fetching swift-log, swift-system, swift-nio
Fetched https://github.com/apple/swift-system.git from cache (10.47s)
Fetched https://github.com/apple/swift-log.git from cache (10.47s)
Fetched https://github.com/apple/swift-nio.git from cache (10.66s)
Computing version for https://github.com/ajevans99/swift-json-schema.git
Computed https://github.com/ajevans99/swift-json-schema.git at 0.11.2 (11.49s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/74983] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (10.27s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.0 (14.39s)
Computing version for https://github.com/mattt/eventsource.git
Computed https://github.com/mattt/eventsource.git at 1.4.1 (0.75s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.75s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.72s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (1.18s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[602/25389] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (2.52s)
Fetched https://github.com/apple/swift-collections.git from cache (2.58s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (3.32s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.95s)
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.11.2
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/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.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.12.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.4.1
Creating working copy for https://github.com/mattt/eventsource.git
Working copy of https://github.com/mattt/eventsource.git resolved at 1.4.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.98.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/modelcontextprotocol/swift-sdk.git
Working copy of https://github.com/modelcontextprotocol/swift-sdk.git resolved at 0.12.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.57s)
Building for debugging...
[0/20] Copying validation.json
[0/20] Copying unevaluated.json
[0/20] Copying meta-data.json
[0/20] Copying format-annotation.json
[0/20] Copying core.json
[0/20] Copying content.json
[0/20] Copying applicator.json
[7/20] Copying schema.json
[8/20] Write sources
[15/20] Compiling CSystem shims.c
[16/20] Write swift-version-24593BA9C3E375BF.txt
[18/102] Emitting module SystemPackage
[19/106] Emitting module JSONSchemaMacro
[20/107] Compiling JSONSchema Array+JSONValue.swift
[21/107] Compiling JSONSchema JSONValue+Codable.swift
[22/107] Compiling JSONSchemaMacro ExcludeFromSchemaMacro.swift
[23/107] Compiling JSONSchemaMacro JSONSchemaMacroPlugin.swift
[24/107] Compiling JSONSchemaMacro SchemaOptions.swift
[25/107] Compiling JSONSchemaMacro CompositionKeyword.swift
[26/107] Compiling JSONSchemaMacro InitializerDiagnostics.swift
[27/107] Compiling JSONSchema FormatValidator.swift
[28/107] Compiling SystemPackage SystemString.swift
[29/107] Compiling SystemPackage Util+StringArray.swift
[30/107] Compiling SystemPackage Util.swift
[31/107] Compiling SystemPackage UtilConsumers.swift
[32/107] Compiling JSONSchema Keywords+Reserved.swift
[33/107] Compiling JSONSchema Keywords.swift
[34/107] Compiling JSONSchema JSONPointer.swift
[35/107] Compiling JSONSchema Schema+Codable.swift
[40/111] Compiling JSONSchema JSONValue.swift
[41/111] Compiling JSONSchema Keyword.swift
[42/111] Compiling JSONSchema Keywords+Annotation.swift
[43/111] Compiling JSONSchema Keywords+Applicator.swift
[47/111] Compiling JSONSchema JSONValue+ExpressibleByLiteral.swift
[48/111] Compiling JSONSchema JSONValue+merge.swift
[54/111] Compiling JSONSchemaMacro TypeSpecificOptionMacros.swift
[55/111] Compiling Logging MetadataProvider.swift
[56/111] Compiling JSONSchema Schema+Equatable.swift
[57/111] Compiling JSONSchema Schema.swift
[58/111] Compiling JSONSchema Bundle+JSONSchemaResources.swift
[59/111] Compiling JSONSchema LockIsolated.swift
[60/111] Compiling JSONSchema Context.swift
[61/111] Compiling JSONSchema SchemaIssue.swift
[62/111] Compiling JSONSchema ValidationIssue.swift
[63/111] Compiling JSONSchema SchemaDocument.swift
[64/111] Emitting module Logging
[65/111] Compiling Logging Locks.swift
[66/111] Compiling JSONSchema ValidatableSchema.swift
[67/111] Compiling JSONSchema ValidationLocation.swift
[68/111] Compiling JSONSchema ValidationResult.swift
[69/111] Compiling JSONSchema resource_bundle_accessor.swift
[70/111] Compiling JSONSchema Keywords+Assertion.swift
[71/111] Compiling JSONSchema Keywords+Identifier.swift
[72/111] Compiling JSONSchema Keywords+Metadata.swift
[73/111] Compiling JSONSchema Keywords+Reference.swift
[86/111] Emitting module JSONSchema
[99/112] Compiling JSONSchemaMacro SwiftSyntaxExtensions.swift
[103/113] Wrapping AST for JSONSchemaMacro for debugging
[104/113] Write Objects.LinkFileList
[106/113] Compiling Logging LogEvent.swift
[107/113] Compiling Logging LogHandler.swift
[108/113] Compiling Logging Logging.swift
[109/114] Linking JSONSchemaMacro-tool
[111/176] Emitting module JSONSchemaBuilder
[112/184] Compiling JSONSchemaBuilder PropertyFlatMap.swift
[113/184] Compiling JSONSchemaBuilder PropertyOptionalComponent.swift
[114/184] Compiling JSONSchemaBuilder JSONValue+Schema.swift
[115/184] Compiling JSONSchemaBuilder ExcludeFromSchema.swift
[116/184] Compiling JSONSchemaBuilder SchemaOptions.swift
[117/184] Compiling JSONSchemaBuilder ArrayOptions.swift
[118/184] Compiling JSONSchemaBuilder NumberOptions.swift
[119/184] Compiling JSONSchemaBuilder ObjectOptions.swift
[120/184] Compiling JSONSchemaBuilder JSONValueRepresentable.swift
[121/184] Compiling JSONSchemaBuilder JSONArrayValue.swift
[122/184] Compiling JSONSchemaBuilder JSONBooleanValue.swift
[123/184] Compiling JSONSchemaBuilder JSONIntegerValue.swift
[124/184] Compiling JSONSchemaBuilder JSONNullValue.swift
[125/184] Compiling JSONSchemaBuilder JSONNumberValue.swift
[126/184] Compiling JSONSchemaBuilder JSONObjectValue.swift
[127/184] Compiling JSONSchemaBuilder JSONStringValue.swift
[128/184] Compiling JSONSchemaBuilder CompactMap.swift
[129/184] Compiling JSONSchemaBuilder Conditional.swift
[130/184] Compiling JSONSchemaBuilder Constant.swift
[131/184] Compiling JSONSchemaBuilder Enum.swift
[132/184] Compiling JSONSchemaBuilder FlatMap.swift
[133/184] Compiling JSONSchemaBuilder JSONComponents.swift
[134/184] Compiling JSONSchemaBuilder Map.swift
[135/184] Compiling JSONSchemaBuilder MergedComponent.swift
[136/184] Compiling JSONSchemaBuilder OptionalComponent.swift
[137/184] Compiling JSONSchemaBuilder JSONReference.swift
[138/184] Compiling JSONSchemaBuilder JSONSchema.swift
[139/184] Compiling JSONSchemaBuilder JSONSchemaComponent+Annotations.swift
[140/184] Compiling JSONSchemaBuilder JSONSchemaComponent+Conditionals.swift
[141/184] Compiling JSONSchemaBuilder JSONSchemaComponent+Content.swift
[142/184] Compiling JSONSchemaBuilder JSONSchemaComponent+Identifiers.swift
[143/184] Compiling JSONSchemaBuilder JSONSchemaComponent.swift
[144/184] Compiling JSONSchemaBuilder AdditionalProperties.swift
[145/184] Compiling JSONSchemaBuilder AnySchemaComponent.swift
[151/228] Compiling JSONSchemaBuilder StringOptions.swift
[152/228] Compiling JSONSchemaBuilder Schemable.swift
[153/228] Compiling JSONSchemaBuilder ParseIssue.swift
[154/228] Compiling JSONSchemaBuilder Parsed.swift
[155/228] Compiling JSONSchemaBuilder KeyEncodingStrategy.swift
[156/228] Compiling JSONSchemaBuilder SchemaAnchorName.swift
[157/228] Compiling JSONSchemaBuilder SchemaReferenceURI.swift
[158/228] Compiling JSONSchemaBuilder JSONPropertyValue.swift
[159/228] Compiling JSONSchemaBuilder JSONPropertyBuilder.swift
[160/228] Compiling JSONSchemaBuilder JSONPropertySchemaBuilder.swift
[161/228] Compiling JSONSchemaBuilder JSONSchemaBuilder.swift
[162/228] Compiling JSONSchemaBuilder JSONValueBuilder.swift
[163/228] Compiling JSONSchemaBuilder ConditionalSchema.swift
[164/228] Compiling JSONSchemaBuilder JSONAnyValue.swift
[165/228] Compiling JSONSchemaBuilder JSONBooleanSchema.swift
[166/228] Compiling JSONSchemaBuilder JSONComposition.swift
[167/228] Compiling JSONSchemaBuilder JSONDynamicReference.swift
[168/228] Compiling MCP Completion.swift
[169/228] Compiling MCP Cancellation.swift
[170/228] Compiling MCP Ping.swift
[171/228] Compiling MCP Progress.swift
[172/228] Compiling MCP RequestContext.swift
[173/228] Compiling MCP Value.swift
[174/228] Compiling MCP Versioning.swift
[175/228] Compiling JSONSchemaBuilder JSONBoolean.swift
[176/228] Compiling JSONSchemaBuilder JSONNull.swift
[177/228] Compiling MCP InMemoryTransport.swift
[178/228] Compiling MCP NetworkTransport.swift
[179/228] Compiling MCP StdioTransport.swift
[180/228] Compiling MCP UnitInterval.swift
[181/228] Compiling MCP Client.swift
[182/228] Compiling MCP Elicitation.swift
[183/228] Compiling MCP Roots.swift
[184/228] Compiling MCP Sampling.swift
[185/228] Compiling MCP Data+Extensions.swift
[187/229] Compiling MCP PKCE.swift
[188/229] Compiling MCP TokenStorage.swift
[189/229] Compiling MCP Error.swift
[190/229] Compiling MCP ID.swift
[191/229] Compiling MCP Icon.swift
[192/229] Compiling MCP Lifecycle.swift
[193/234] Compiling MCP StatefulHTTPServerTransport.swift
[194/234] Compiling MCP StatelessHTTPServerTransport.swift
[199/234] Emitting module MCP
[200/234] Compiling MCP OAuthDiscoveryClient.swift
[201/234] Compiling MCP OAuthErrors.swift
[202/234] Compiling MCP OAuthModels.swift
[203/234] Compiling MCP OAuthTokenEndpointClient.swift
[204/234] Compiling MCP OAuthURLValidator.swift
[205/234] Compiling MCP OAuthWWWAuthenticateParser.swift
[206/234] Compiling MCP Messages.swift
[207/234] Compiling MCP PendingRequest.swift
[208/234] Compiling MCP Transport.swift
[209/234] Compiling MCP HTTPClientTransport.swift
[210/234] Compiling MCP HTTPRequestValidation.swift
[211/234] Compiling MCP HTTPServerTypes.swift
[212/234] Compiling MCP OAuthAuthorizationCodeFlow.swift
[213/234] Compiling MCP OAuthAuthorizer.swift
[214/234] Compiling MCP OAuthClientRegistrar.swift
[215/234] Compiling MCP OAuthConfiguration.swift
[216/234] Compiling MCP OAuthConstants.swift
[217/234] Compiling MCP OAuthDiscovery.swift
[218/234] Compiling MCP Logging.swift
[219/234] Compiling MCP Prompts.swift
[220/234] Compiling MCP Resources.swift
[221/234] Compiling MCP Server.swift
[222/234] Compiling MCP Tools.swift
[236/247] Compiling MCPToolkit ContentBuilder.swift
[237/248] Compiling MCPToolkit MCPTool+MCP.swift
[238/248] Compiling MCPToolkit Server+registerResources.swift
[239/248] Compiling MCPToolkit MCP+JSONSchema.swift
[240/248] Compiling MCPToolkit MCPResource+MCP.swift
[241/248] Emitting module MCPToolkit
[242/248] Compiling MCPToolkit Exports.swift
[243/248] Compiling MCPToolkit JSONSchema+MCP.swift
[244/248] Compiling MCPToolkit Server+registerTools.swift
[245/248] Compiling MCPToolkit MCPResource.swift
[246/248] Compiling MCPToolkit ContentGroup.swift
[247/248] Compiling MCPToolkit ResponseMessaging.swift
/host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift:24:18: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
22 | public func unknownTool(_ context: ResponseMessagingUnknownToolContext) -> CallTool.Result {
23 | .init(
24 | content: [.text("Unknown tool: \(context.requestedName)")],
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
25 | isError: true
26 | )
/host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift:33:18: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | ) -> CallTool.Result {
32 | .init(
33 | content: [.text("Missing arguments for tool \(context.toolName)")],
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
34 | isError: true
35 | )
/host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift:41:10: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
39 | .init(
40 | content: [
41 | .text("Error occurred while calling tool \(context.toolName): \(context.error)")
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
42 | ],
43 | isError: true
/host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift:53:10: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
51 | return .init(
52 | content: [
53 | .text("Failed to parse arguments for tool \(context.toolName): \(issues)")
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
54 | ],
55 | isError: true
/host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift:64:10: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
62 | .init(
63 | content: [
64 | .text(
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
65 | "Arguments for tool \(context.toolName) failed validation: \(context.result.prettyJSONString())"
66 | )
/host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift:79:10: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
77 | return .init(
78 | content: [
79 | .text(
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
80 | "Arguments for tool \(context.toolName) failed parsing and validation. Parsing errors: \(parseIssues). Validation errors: \(validation)"
81 | )
/host/spi-builder-workspace/Sources/MCPToolkit/ResponseMessaging.swift:92:10: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
90 | .init(
91 | content: [
92 | .text(
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
93 | "Unexpected error occurred while parsing/validating arguments for tool \(context.toolName): \(context.error)"
94 | )
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[248/248] Compiling MCPToolkit MCPTool.swift
/host/spi-builder-workspace/Sources/MCPToolkit/MCPTool.swift:158:21: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
156 | /// Creates a text content item.
157 | public init(text: String) {
158 | self.content = .text(text)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
159 | }
160 |
/host/spi-builder-workspace/Sources/MCPToolkit/MCPTool.swift:163:74: error: cannot convert value of type '[String : String]?' to expected argument type 'Metadata?'
161 | /// Creates an image content item.
162 | public init(imageData: String, mimeType: String, metadata: [String: String]? = nil) {
163 | self.content = .image(data: imageData, mimeType: mimeType, metadata: metadata)
| |- error: cannot convert value of type '[String : String]?' to expected argument type 'Metadata?'
| `- note: arguments to generic parameter 'Wrapped' ('[String : String]' and 'Metadata') are expected to be equal
164 | }
165 |
/host/spi-builder-workspace/Sources/MCPToolkit/MCPTool.swift:168:21: warning: 'audio(data:mimeType:metadata:)' is deprecated: Use .audio(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
166 | /// Creates an audio content item.
167 | public init(audioData: String, mimeType: String) {
168 | self.content = .audio(data: audioData, mimeType: mimeType)
| `- warning: 'audio(data:mimeType:metadata:)' is deprecated: Use .audio(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
169 | }
170 |
/host/spi-builder-workspace/Sources/MCPToolkit/MCPTool.swift:173:29: error: extra arguments at positions #2, #3 in call
171 | /// Creates an embedded resource content item.
172 | public init(resourceUri: String, mimeType: String, text: String? = nil) {
173 | self.content = .resource(uri: resourceUri, mimeType: mimeType, text: text)
| `- error: extra arguments at positions #2, #3 in call
174 | }
175 |
/host/spi-builder-workspace/.build/checkouts/swift-sdk/Sources/MCP/Server/Tools.swift:123:14: note: 'resource(resource:annotations:_meta:)' declared here
121 | case audio(data: String, mimeType: String, annotations: Resource.Annotations?, _meta: Metadata?)
122 | /// Embedded resource content (EmbeddedResource from spec)
123 | case resource(resource: Resource.Content, annotations: Resource.Annotations? = nil, _meta: Metadata? = nil)
| `- note: 'resource(resource:annotations:_meta:)' declared here
124 | /// Resource link
125 | case resourceLink(
/host/spi-builder-workspace/Sources/MCPToolkit/MCPTool.swift:173:35: error: cannot convert value of type 'String' to expected argument type 'Resource.Content'
171 | /// Creates an embedded resource content item.
172 | public init(resourceUri: String, mimeType: String, text: String? = nil) {
173 | self.content = .resource(uri: resourceUri, mimeType: mimeType, text: text)
| `- error: cannot convert value of type 'String' to expected argument type 'Resource.Content'
174 | }
175 |
/host/spi-builder-workspace/Sources/MCPToolkit/MCPTool.swift:182:21: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
180 |
181 | public init(stringLiteral value: String) {
182 | self.content = .text(value)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
183 | }
184 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.3 linux