Build Information
Failed to build swift-mcp-gui, reference 0.2.0 (460cae), with Swift 6.2 for macOS (SPM) on 26 Jun 2026 13:41:43 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NakaokaRei/swift-mcp-gui.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/NakaokaRei/swift-mcp-gui
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 460cae1 Merge pull request #44 from NakaokaRei/dependabot/swift/github.com/nakaokarei/swiftautogui-0.22.0
Cloned https://github.com/NakaokaRei/swift-mcp-gui.git
Revision (git rev-parse @):
460cae11ef47c0af539e54fbf0a18c5a1a1ca459
SUCCESS checkout https://github.com/NakaokaRei/swift-mcp-gui.git at 0.2.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/NakaokaRei/swift-mcp-gui.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/35] Write sources
[2/35] Write swift-mcp-gui-entitlement.plist
[3/35] Write sources
[11/35] Copying TemplateMatching.metallib
[12/35] Write sources
[18/35] Compiling CNIOWindows shim.c
[19/35] Compiling CNIOWindows WSAStartup.c
[20/35] Compiling CNIOFreeBSD shim.c
[21/35] Compiling CNIOWASI CNIOWASI.c
[22/35] Compiling CNIOOpenBSD shim.c
[23/35] Write sources
[24/35] Compiling CNIOLinux shim.c
[25/35] Compiling CNIOLinux liburing_shims.c
[26/35] Write swift-version--3CB7CFEC50E0D141.txt
[27/35] Compiling CSystem shims.c
[28/62] Compiling _AtomicsShims.c
[29/129] Compiling CNIODarwin shim.c
[31/129] Emitting module InternalCollectionsUtilities
[32/130] Compiling Atomics AtomicInteger.swift
[33/130] Compiling Atomics AtomicOptionalWrappable.swift
[34/130] Compiling Atomics UnsafeAtomicLazyReference.swift
[35/130] Compiling Atomics IntegerOperations.swift
[36/130] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[37/130] Compiling Atomics AtomicValue.swift
[38/130] Compiling Atomics AtomicMemoryOrderings.swift
[39/130] Compiling Logging LoggingSystem.swift
[40/131] Compiling Atomics AtomicReference.swift
[41/131] Compiling Atomics AtomicStorage.swift
[42/131] Compiling _NIODataStructures _TinyArray.swift
[43/131] Compiling Atomics PointerConformances.swift
[44/131] Compiling Atomics Primitives.native.swift
[45/131] Compiling Atomics AtomicBool.swift
[46/131] Compiling Atomics IntegerConformances.swift
[49/131] Compiling Atomics DoubleWord.swift
[50/131] Compiling Atomics ManagedAtomic.swift
[51/131] Compiling Atomics ManagedAtomicLazyReference.swift
[52/131] Compiling Atomics UnsafeAtomic.swift
[53/132] Compiling _NIOBase64 Base64.swift
[54/132] Emitting module _NIOBase64
[57/132] Compiling Atomics OptionalRawRepresentable.swift
[58/132] Compiling Atomics RawRepresentable.swift
[61/132] Emitting module Logging
[64/132] Compiling Logging SwiftLogNoOpLogHandler.swift
[65/132] Compiling Logging Locks.swift
[66/132] Compiling Logging Logger.swift
[67/132] Compiling Atomics Unmanaged extensions.swift
[68/132] Compiling Logging MetadataProvider.swift
[69/134] Compiling SystemPackage PlatformString.swift
[70/134] Compiling SystemPackage SystemString.swift
[71/134] Compiling SystemPackage Util+StringArray.swift
[72/172] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[73/172] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[74/172] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[75/172] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[76/175] Compiling ContainersPreview Container.swift
[77/175] Compiling ContainersPreview ContainerIterator.swift
[78/175] Compiling ContainersPreview DynamicContainer.swift
[79/175] Compiling ContainersPreview MutableContainer.swift
[80/175] Compiling ContainersPreview BorrowingSequence.swift
[81/175] Compiling ContainersPreview BidirectionalContainer.swift
[82/175] Compiling ContainersPreview Container+Filter.swift
[83/175] Compiling ContainersPreview Container+SpanwiseZip.swift
[84/175] Compiling ContainersPreview PermutableContainer.swift
[85/175] Compiling ContainersPreview RandomAccessContainer.swift
[86/175] Compiling ContainersPreview RangeExpression2.swift
[87/175] Compiling ContainersPreview RangeReplaceableContainer.swift
[88/175] Compiling ContainersPreview Producer+Collect.swift
[89/175] Compiling ContainersPreview Producer+Filter.swift
[90/175] Compiling ContainersPreview Producer+Map.swift
[91/175] Compiling ContainersPreview Producer+Reduce.swift
[96/175] Compiling ContainersPreview OutputSpan+Extras.swift
[97/175] Compiling ContainersPreview TemporaryAllocation.swift
[98/175] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[99/175] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[100/175] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[101/175] Compiling ContainersPreview BorrowingSequence+Algorithms.swift
[102/175] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[103/175] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[114/175] Emitting module ContainersPreview
[115/175] Compiling ContainersPreview Shared.swift
[116/175] Compiling ContainersPreview SpanIterator.swift
[117/175] Compiling ContainersPreview UniqueBox.swift
[118/175] Compiling Logging LogHandler.swift
[119/175] Compiling Logging LogEvent.swift
[120/175] Compiling _NIODataStructures PriorityQueue.swift
[121/175] Compiling _NIODataStructures Heap.swift
[122/175] Emitting module _NIODataStructures
[127/175] Compiling ContainersPreview Drain+Reduce.swift
[128/175] Compiling ContainersPreview Drain.swift
[133/175] Compiling ContainersPreview Producer.swift
[134/175] Compiling ContainersPreview InputSpan.swift
[135/175] Compiling ContainersPreview MutableRef.swift
[136/175] Compiling ContainersPreview Ref.swift
[141/175] Compiling ContainersPreview Strideable+Limits.swift
[142/175] Compiling ContainersPreview Drain+Map.swift
[145/175] Compiling Logging Logger+Attributes.swift
[146/175] Compiling Logging Logger+With.swift
[159/175] Emitting module SystemPackage
[162/175] Emitting module Atomics
[166/217] Compiling DequeModule UniqueDeque+Equatable.swift
[167/217] Compiling DequeModule UniqueDeque+Experimental.swift
[168/217] Compiling DequeModule UniqueDeque+Hashable.swift
[169/217] Compiling DequeModule UniqueDeque+Initializers.swift
[170/221] Compiling DequeModule RigidDeque+Replacements.swift
[171/221] Compiling DequeModule RigidDeque+Testing.swift
[172/221] Compiling DequeModule RigidDeque.swift
[173/221] Compiling DequeModule UniqueDeque+Append.swift
[174/221] Compiling DequeModule UniqueDeque+Insertions.swift
[175/221] Compiling DequeModule UniqueDeque+Prepend.swift
[176/221] Compiling DequeModule UniqueDeque+Removals.swift
[177/221] Compiling DequeModule UniqueDeque+Replacements.swift
[178/221] Compiling DequeModule UniqueDeque+Consumption.swift
[179/221] Compiling DequeModule UniqueDeque+Container.swift
[180/221] Compiling DequeModule UniqueDeque+Deprecated.swift
[181/221] Compiling DequeModule UniqueDeque+Descriptions.swift
[182/221] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[183/221] Compiling DequeModule Deque+Extras.swift
[184/221] Compiling DequeModule Deque+Hashable.swift
[185/221] Compiling DequeModule Deque+Testing.swift
[186/221] Compiling DequeModule Deque._Storage.swift
[187/221] Compiling DequeModule RigidDeque+Consumption.swift
[188/221] Compiling DequeModule RigidDeque+Container.swift
[189/221] Compiling DequeModule RigidDeque+Descriptions.swift
[190/221] Compiling DequeModule RigidDeque+Equatable.swift
[191/221] Compiling DequeModule RigidDeque+Experimental.swift
[192/221] Compiling DequeModule RigidDeque+Hashable.swift
[193/221] Compiling DequeModule RigidDeque+Initializers.swift
[194/221] Compiling DequeModule RigidDeque+Insertions.swift
[195/221] Compiling DequeModule RigidDeque+Prepend.swift
[196/221] Compiling DequeModule RigidDeque+Removals.swift
[197/221] Compiling DequeModule Deque._UnsafeHandle.swift
[198/221] Compiling DequeModule Deque.swift
[199/221] Compiling DequeModule _DequeBuffer.swift
[200/221] Compiling DequeModule _DequeBufferHeader.swift
[201/221] Compiling DequeModule RigidDeque+Append.swift
[202/221] Compiling DequeModule Deque+Codable.swift
[203/221] Compiling DequeModule Deque+Collection.swift
[204/221] Compiling DequeModule Deque+CustomReflectable.swift
[205/221] Compiling DequeModule Deque+Descriptions.swift
[206/221] Compiling DequeModule Deque+Equatable.swift
[206/221] Compiling c-nioatomics.c
[207/221] Compiling c-atomics.c
[209/228] Compiling DequeModule UniqueDeque.swift
[210/228] Compiling DequeModule _DequeSlot.swift
[211/228] Compiling DequeModule _UnsafeDequeHandle.swift
[212/228] Compiling DequeModule _UnsafeDequeSegments.swift
[213/228] Compiling NIOConcurrencyHelpers NIOLock.swift
[214/228] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[215/228] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[216/228] Compiling NIOConcurrencyHelpers lock.swift
[217/228] Emitting module NIOConcurrencyHelpers
[218/228] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[219/228] Compiling NIOConcurrencyHelpers atomics.swift
[220/228] Emitting module DequeModule
[221/293] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[222/293] Compiling NIOCore NIOScheduledCallback.swift
[223/293] Compiling NIOCore NIOSendable.swift
[224/293] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[225/293] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[226/293] Compiling NIOCore RecvByteBufferAllocator.swift
[227/293] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[228/300] Compiling ImageRecognition resource_bundle_accessor.swift
[229/300] Compiling NIOCore IO.swift
[230/300] Compiling NIOCore IOData.swift
[231/300] Compiling NIOCore IPProtocol.swift
[232/300] Compiling NIOCore IntegerBitPacking.swift
[233/300] Compiling NIOCore IntegerTypes.swift
[234/300] Compiling NIOCore Interfaces.swift
[235/300] Compiling NIOCore Linux.swift
[236/300] Compiling NIOCore ConvenienceOptionSupport.swift
[237/300] Compiling NIOCore DeadChannel.swift
[238/300] Compiling NIOCore DispatchQueue+WithFuture.swift
[239/300] Compiling NIOCore EventLoop+Deprecated.swift
[240/300] Compiling NIOCore EventLoop+SerialExecutor.swift
[241/300] Compiling NIOCore EventLoop.swift
[242/300] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[243/300] Compiling NIOCore MarkedCircularBuffer.swift
[244/300] Compiling NIOCore MulticastChannel.swift
[245/300] Compiling NIOCore NIOAny.swift
[246/300] Compiling NIOCore NIOCloseOnErrorHandler.swift
[247/300] Compiling NIOCore NIOCoreSendableMetatype.swift
[248/300] Compiling NIOCore NIODecodedAsyncSequence.swift
[249/300] Compiling NIOCore NIOLoopBound.swift
[250/300] Compiling ImageRecognition ImageConversion.swift
[251/300] Compiling ImageRecognition NonMaximumSuppression.swift
[252/300] Emitting module ImageRecognition
[253/300] Compiling ImageRecognition TemplateMatcher.swift
[254/321] Compiling NIOCore SocketAddresses.swift
[255/321] Compiling NIOCore SocketOptionProvider.swift
[256/321] Compiling NIOCore SystemCallHelpers.swift
[257/321] Compiling NIOCore TimeAmount+Duration.swift
[258/321] Compiling NIOCore TypeAssistedChannelHandler.swift
[259/321] Compiling NIOCore UniversalBootstrapSupport.swift
[260/321] Compiling NIOCore Utilities.swift
[261/321] Compiling NIOCore EventLoopFuture+Deprecated.swift
[262/321] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[263/321] Compiling NIOCore EventLoopFuture.swift
[264/321] Compiling NIOCore FileDescriptor.swift
[265/321] Compiling NIOCore FileHandle.swift
[266/321] Compiling NIOCore FileRegion.swift
[267/321] Compiling NIOCore GlobalSingletons.swift
[268/321] Compiling NIOCore ChannelHandler.swift
[269/321] Compiling NIOCore ChannelHandlers.swift
[270/321] Compiling NIOCore ChannelInvoker.swift
[271/321] Compiling NIOCore ChannelOption.swift
[272/321] Compiling NIOCore ChannelPipeline.swift
[273/321] Compiling NIOCore CircularBuffer.swift
[274/321] Compiling NIOCore Codec.swift
[275/321] Compiling NIOCore NIOAsyncWriter.swift
[276/321] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[277/321] Compiling NIOCore BSDSocketAPI.swift
[278/321] Compiling NIOCore ByteBuffer-aux.swift
[279/321] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[280/321] Compiling NIOCore ByteBuffer-conversions.swift
[281/321] Compiling NIOCore ByteBuffer-core.swift
[282/321] Compiling SwiftAutoGUI AXAttributes.swift
[283/321] Compiling SwiftAutoGUI AXSearch.swift
[284/321] Compiling SwiftAutoGUI OpenAIBackend.swift
[285/321] Compiling SwiftAutoGUI OpenAIVisionBackend.swift
[286/321] Compiling SwiftAutoGUI ScreenContext.swift
[287/321] Compiling SwiftAutoGUI AXTypes.swift
[288/321] Compiling SwiftAutoGUI Action.swift
[289/321] Compiling SwiftAutoGUI Agent.swift
[290/321] Compiling SwiftAutoGUI SwiftAutoGUI.swift
[291/321] Compiling SwiftAutoGUI KeyboardLayout.swift
[292/321] Compiling SwiftAutoGUI Keycode.swift
[293/321] Compiling SwiftAutoGUI TweeningFunction.swift
[294/321] Compiling SwiftAutoGUI ImageRecognition.swift
[295/321] Compiling NIOCore ByteBuffer-views.swift
[296/321] Compiling NIOCore Channel.swift
[297/321] Emitting module NIOCore
[298/326] Compiling EventSource EventSource+AsyncHTTPClient.swift
[299/326] Compiling EventSource AsyncSequence+Events.swift
[300/326] Compiling EventSource EventSource.swift
[301/326] Compiling EventSource AsyncEventsSequence.swift
[302/326] Emitting module EventSource
[303/370] Emitting module SwiftAutoGUI
[304/372] Compiling MCP OAuthAuthorizer.swift
[305/372] Compiling MCP OAuthClientRegistrar.swift
[306/372] Compiling MCP OAuthConfiguration.swift
[307/372] Compiling MCP OAuthConstants.swift
[308/372] Compiling MCP Lifecycle.swift
[309/372] Compiling MCP Messages.swift
[310/372] Compiling MCP ID.swift
[311/372] Compiling MCP Icon.swift
[312/372] Compiling SwiftAutoGUI AppleScript.swift
[313/372] Compiling SwiftAutoGUI Dialog.swift
[314/372] Compiling MCP NetworkTransport.swift
[315/372] Compiling MCP StdioTransport.swift
[316/372] Compiling MCP UnitInterval.swift
[317/372] Compiling MCP OAuthAuthorizationCodeFlow.swift
[318/372] Compiling MCP PendingRequest.swift
[319/372] Compiling MCP StatelessHTTPServerTransport.swift
[320/372] Compiling MCP InMemoryTransport.swift
[321/372] Compiling MCP HTTPServerTypes.swift
[322/372] Compiling MCP StatefulHTTPServerTransport.swift
[323/372] Compiling MCP Transport.swift
[324/372] Compiling MCP HTTPClientTransport.swift
[325/372] Compiling MCP HTTPRequestValidation.swift
[331/376] Emitting module MCP
[332/376] Compiling MCP OAuthDiscovery.swift
[333/376] Compiling MCP OAuthDiscoveryClient.swift
[334/376] Compiling MCP OAuthErrors.swift
[335/376] Compiling MCP OAuthModels.swift
[336/376] Compiling MCP OAuthTokenEndpointClient.swift
[337/376] Compiling MCP Cancellation.swift
[338/376] Compiling MCP Ping.swift
[339/376] Compiling MCP Progress.swift
[340/376] Compiling MCP RequestContext.swift
[341/376] Compiling MCP Value.swift
[342/376] Compiling MCP OAuthURLValidator.swift
[343/376] Compiling MCP OAuthWWWAuthenticateParser.swift
[344/376] Compiling MCP PKCE.swift
[345/376] Compiling MCP TokenStorage.swift
[346/376] Compiling MCP Error.swift
[359/376] Compiling MCP Elicitation.swift
[360/376] Compiling MCP Roots.swift
[366/376] Compiling MCP Sampling.swift
[367/376] Compiling MCP Data+Extensions.swift
[368/376] Compiling MCP Completion.swift
[369/376] Compiling MCP Logging.swift
[370/376] Compiling MCP Prompts.swift
[371/376] Compiling MCP Resources.swift
[372/376] Compiling MCP Server.swift
[373/376] Compiling MCP Tools.swift
[374/393] Compiling swift_mcp_gui CaptureScreenTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:38:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
36 |
37 | guard let screenshot = try? await SwiftAutoGUI.screenshot() else {
38 | return .init(content: [.text("Failed to capture screen")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:46:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
44 |
45 | guard let cgImage = screenshot.cgImage(forProposedRect: nil, context: nil, hints: nil) else {
46 | return .init(content: [.text("Failed to get CGImage")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:61:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
59 |
60 | guard let bitmap = bitmapRep else {
61 | return .init(content: [.text("Failed to create bitmap")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:76:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
74 | // Use JPEG compression with specified quality
75 | guard let jpegData = bitmap.representation(using: .jpeg, properties: [.compressionFactor: quality]) else {
76 | return .init(content: [.text("Failed to convert screenshot to JPEG")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:89:22: warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
87 | let base64String = jpegData.base64EncodedString()
88 | return .init(content: [
89 | .image(data: base64String, mimeType: "image/jpeg", metadata: nil)
| `- warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
90 | ], isError: false)
91 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:95:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
93 | try jpegData.write(to: filePath)
94 | } catch {
95 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
96 | }
97 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:97:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
95 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
96 | }
97 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetPixelColorTool.swift:28:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
26 |
27 | guard let color = try? await SwiftAutoGUI.pixel(x: x, y: y) else {
28 | return .init(content: [.text("Failed to get pixel color at (\(x), \(y))")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetPixelColorTool.swift:37:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
35 | let alpha = Int(color.alphaComponent * 255)
36 |
37 | return .init(content: [.text("Pixel color at (\(x), \(y)): {\"red\": \(red), \"green\": \(green), \"blue\": \(blue), \"alpha\": \(alpha)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
38 | } catch {
39 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetPixelColorTool.swift:39:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
37 | return .init(content: [.text("Pixel color at (\(x), \(y)): {\"red\": \(red), \"green\": \(green), \"blue\": \(blue), \"alpha\": \(alpha)}")], isError: false)
38 | } catch {
39 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
40 | }
41 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[375/393] Compiling swift_mcp_gui GetPixelColorTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:38:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
36 |
37 | guard let screenshot = try? await SwiftAutoGUI.screenshot() else {
38 | return .init(content: [.text("Failed to capture screen")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:46:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
44 |
45 | guard let cgImage = screenshot.cgImage(forProposedRect: nil, context: nil, hints: nil) else {
46 | return .init(content: [.text("Failed to get CGImage")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:61:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
59 |
60 | guard let bitmap = bitmapRep else {
61 | return .init(content: [.text("Failed to create bitmap")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:76:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
74 | // Use JPEG compression with specified quality
75 | guard let jpegData = bitmap.representation(using: .jpeg, properties: [.compressionFactor: quality]) else {
76 | return .init(content: [.text("Failed to convert screenshot to JPEG")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:89:22: warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
87 | let base64String = jpegData.base64EncodedString()
88 | return .init(content: [
89 | .image(data: base64String, mimeType: "image/jpeg", metadata: nil)
| `- warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
90 | ], isError: false)
91 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:95:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
93 | try jpegData.write(to: filePath)
94 | } catch {
95 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
96 | }
97 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureScreenTool.swift:97:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
95 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
96 | }
97 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetPixelColorTool.swift:28:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
26 |
27 | guard let color = try? await SwiftAutoGUI.pixel(x: x, y: y) else {
28 | return .init(content: [.text("Failed to get pixel color at (\(x), \(y))")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetPixelColorTool.swift:37:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
35 | let alpha = Int(color.alphaComponent * 255)
36 |
37 | return .init(content: [.text("Pixel color at (\(x), \(y)): {\"red\": \(red), \"green\": \(green), \"blue\": \(blue), \"alpha\": \(alpha)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
38 | } catch {
39 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetPixelColorTool.swift:39:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
37 | return .init(content: [.text("Pixel color at (\(x), \(y)): {\"red\": \(red), \"green\": \(green), \"blue\": \(blue), \"alpha\": \(alpha)}")], isError: false)
38 | } catch {
39 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
40 | }
41 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[376/393] Emitting module swift_mcp_gui
[377/393] Compiling swift_mcp_gui ToolRegistry.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/ToolRegistry.swift:15:37: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
13 | func execute(name: String, arguments: Value) async throws -> CallTool.Result {
14 | guard let handler = toolHandlers[name] else {
15 | return .init(content: [.text("Unknown tool: \(name)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
16 | }
17 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[378/393] Compiling swift_mcp_gui ExecuteAppleScriptFileTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptFileTool.swift:28:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
26 |
27 | if let resultString = result {
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | } else {
30 | return .init(content: [.text("AppleScript file executed successfully (no result returned): \(path)")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptFileTool.swift:30:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
29 | } else {
30 | return .init(content: [.text("AppleScript file executed successfully (no result returned): \(path)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptFileTool.swift:33:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
33 | return .init(content: [.text("Failed to execute AppleScript file: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptTool.swift:28:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
26 |
27 | if let resultString = result {
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | } else {
30 | return .init(content: [.text("AppleScript executed successfully (no result returned)")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptTool.swift:30:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
29 | } else {
30 | return .init(content: [.text("AppleScript executed successfully (no result returned)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptTool.swift:33:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
33 | return .init(content: [.text("Failed to execute AppleScript: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
34 | }
35 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[379/393] Compiling swift_mcp_gui ExecuteAppleScriptTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptFileTool.swift:28:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
26 |
27 | if let resultString = result {
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | } else {
30 | return .init(content: [.text("AppleScript file executed successfully (no result returned): \(path)")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptFileTool.swift:30:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
29 | } else {
30 | return .init(content: [.text("AppleScript file executed successfully (no result returned): \(path)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptFileTool.swift:33:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
33 | return .init(content: [.text("Failed to execute AppleScript file: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptTool.swift:28:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
26 |
27 | if let resultString = result {
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | } else {
30 | return .init(content: [.text("AppleScript executed successfully (no result returned)")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptTool.swift:30:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
28 | return .init(content: [.text("AppleScript Result: \(resultString)")], isError: false)
29 | } else {
30 | return .init(content: [.text("AppleScript executed successfully (no result returned)")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/AppleScript/ExecuteAppleScriptTool.swift:33:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
31 | }
32 | } catch {
33 | return .init(content: [.text("Failed to execute AppleScript: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
34 | }
35 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[380/393] Compiling swift_mcp_gui ParameterParser.swift
[381/393] Compiling swift_mcp_gui GetScreenContextTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetScreenContextTool.swift:74:37: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | }
73 |
74 | return .init(content: [.text(output)], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetScreenSizeTool.swift:18:37: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
16 | registry.registerTool(definition: tool) { _ in
17 | let screenSize = SwiftAutoGUI.size()
18 | return .init(content: [.text("Screen size: {\"width\": \(screenSize.width), \"height\": \(screenSize.height)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
19 | }
20 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[382/393] Compiling swift_mcp_gui GetScreenSizeTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetScreenContextTool.swift:74:37: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | }
73 |
74 | return .init(content: [.text(output)], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/GetScreenSizeTool.swift:18:37: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
16 | registry.registerTool(definition: tool) { _ in
17 | let screenSize = SwiftAutoGUI.size()
18 | return .init(content: [.text("Screen size: {\"width\": \(screenSize.width), \"height\": \(screenSize.height)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
19 | }
20 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[383/393] Compiling swift_mcp_gui SaveScreenshotTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:71:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
69 |
70 | guard let image = screenshot else {
71 | return .init(content: [.text("Failed to capture screenshot")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:93:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
91 | guard let tiffData = scaledImage.tiffRepresentation,
92 | let bitmapRep = NSBitmapImageRep(data: tiffData) else {
93 | return .init(content: [.text("Failed to convert screenshot")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
94 | }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:111:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
109 |
110 | guard let data = imageData else {
111 | return .init(content: [.text("Failed to encode image")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:117:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
115 | do {
116 | try data.write(to: URL(fileURLWithPath: filename))
117 | return .init(content: [.text("{\"success\": true, \"filename\": \"\(filename)\"}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
118 | } catch {
119 | return .init(content: [.text("Failed to save file: \(error.localizedDescription)")], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:119:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
117 | return .init(content: [.text("{\"success\": true, \"filename\": \"\(filename)\"}")], isError: false)
118 | } catch {
119 | return .init(content: [.text("Failed to save file: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:123:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
121 |
122 | } catch {
123 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/ScrollTool.swift:37:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
35 | SwiftAutoGUI.hscroll(clicks: clicks)
36 | default:
37 | return .init(content: [.text("Invalid scroll direction. Must be 'up', 'down', 'left', or 'right'")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/ScrollTool.swift:40:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
38 | }
39 |
40 | return .init(content: [.text("Scrolled \(direction) by \(clicks) clicks")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
41 | } catch {
42 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/ScrollTool.swift:42:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
40 | return .init(content: [.text("Scrolled \(direction) by \(clicks) clicks")], isError: false)
41 | } catch {
42 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
43 | }
44 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[384/393] Compiling swift_mcp_gui ScrollTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:71:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
69 |
70 | guard let image = screenshot else {
71 | return .init(content: [.text("Failed to capture screenshot")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:93:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
91 | guard let tiffData = scaledImage.tiffRepresentation,
92 | let bitmapRep = NSBitmapImageRep(data: tiffData) else {
93 | return .init(content: [.text("Failed to convert screenshot")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
94 | }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:111:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
109 |
110 | guard let data = imageData else {
111 | return .init(content: [.text("Failed to encode image")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:117:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
115 | do {
116 | try data.write(to: URL(fileURLWithPath: filename))
117 | return .init(content: [.text("{\"success\": true, \"filename\": \"\(filename)\"}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
118 | } catch {
119 | return .init(content: [.text("Failed to save file: \(error.localizedDescription)")], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:119:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
117 | return .init(content: [.text("{\"success\": true, \"filename\": \"\(filename)\"}")], isError: false)
118 | } catch {
119 | return .init(content: [.text("Failed to save file: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/SaveScreenshotTool.swift:123:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
121 |
122 | } catch {
123 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/ScrollTool.swift:37:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
35 | SwiftAutoGUI.hscroll(clicks: clicks)
36 | default:
37 | return .init(content: [.text("Invalid scroll direction. Must be 'up', 'down', 'left', or 'right'")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/ScrollTool.swift:40:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
38 | }
39 |
40 | return .init(content: [.text("Scrolled \(direction) by \(clicks) clicks")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
41 | } catch {
42 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/ScrollTool.swift:42:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
40 | return .init(content: [.text("Scrolled \(direction) by \(clicks) clicks")], isError: false)
41 | } catch {
42 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
43 | }
44 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[385/393] Compiling swift_mcp_gui Server+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Server/MCPServer.swift:46:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
44 | await server.withMethodHandler(CallTool.self) { [weak self] params in
45 | guard let self = self else {
46 | return .init(content: [.text("Server not available")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Server/MCPServer.swift:59:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
57 | return try await self.toolRegistry.execute(name: params.name, arguments: argumentsValue)
58 | } catch {
59 | return .init(content: [.text("Error executing tool: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
60 | }
61 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[386/393] Compiling swift_mcp_gui MCPServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Server/MCPServer.swift:46:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
44 | await server.withMethodHandler(CallTool.self) { [weak self] params in
45 | guard let self = self else {
46 | return .init(content: [.text("Server not available")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Server/MCPServer.swift:59:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
57 | return try await self.toolRegistry.execute(name: params.name, arguments: argumentsValue)
58 | } catch {
59 | return .init(content: [.text("Error executing tool: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
60 | }
61 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[387/393] Compiling swift_mcp_gui MoveMouseTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:28:58: error: missing argument for parameter 'duration' in call
26 | let y = try parser.parseDouble("y")
27 |
28 | SwiftAutoGUI.move(to: CGPoint(x: x, y: y))
| `- error: missing argument for parameter 'duration' in call
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
30 | } catch {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftAutoGUI/Sources/SwiftAutoGUI/Core/SwiftAutoGUI.swift:422:24: note: 'move(to:duration:tweening:fps:)' declared here
420 | /// }), fps: 24)
421 | /// ```
422 | public static func move(to: CGPoint, duration: TimeInterval, tweening: TweeningFunction = .linear, fps: Double = 60.0) async {
| `- note: 'move(to:duration:tweening:fps:)' declared here
423 | let startPosition = position()
424 | let deltaX = to.x - startPosition.x
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:63:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
61 |
62 | guard let screenshot = try? await SwiftAutoGUI.screenshot(region: region) else {
63 | return .init(content: [.text("Failed to capture screen region")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:71:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
69 |
70 | guard let cgImage = screenshot.cgImage(forProposedRect: nil, context: nil, hints: nil) else {
71 | return .init(content: [.text("Failed to get CGImage")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:86:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
84 |
85 | guard let bitmap = bitmapRep else {
86 | return .init(content: [.text("Failed to create bitmap")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
87 | }
88 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:101:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
99 | // Use JPEG compression with specified quality
100 | guard let jpegData = bitmap.representation(using: .jpeg, properties: [.compressionFactor: quality]) else {
101 | return .init(content: [.text("Failed to convert screenshot to JPEG")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:114:22: warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
112 | let base64String = jpegData.base64EncodedString()
113 | return .init(content: [
114 | .image(data: base64String, mimeType: "image/jpeg", metadata: nil)
| `- warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
115 | ], isError: false)
116 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:120:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
118 | try jpegData.write(to: filePath)
119 | } catch {
120 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
121 | }
122 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:122:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
120 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
121 | }
122 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
123 | }
124 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:125:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
123 | }
124 | } catch {
125 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
126 | }
127 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[388/393] Compiling swift_mcp_gui CaptureRegionTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:28:58: error: missing argument for parameter 'duration' in call
26 | let y = try parser.parseDouble("y")
27 |
28 | SwiftAutoGUI.move(to: CGPoint(x: x, y: y))
| `- error: missing argument for parameter 'duration' in call
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
30 | } catch {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftAutoGUI/Sources/SwiftAutoGUI/Core/SwiftAutoGUI.swift:422:24: note: 'move(to:duration:tweening:fps:)' declared here
420 | /// }), fps: 24)
421 | /// ```
422 | public static func move(to: CGPoint, duration: TimeInterval, tweening: TweeningFunction = .linear, fps: Double = 60.0) async {
| `- note: 'move(to:duration:tweening:fps:)' declared here
423 | let startPosition = position()
424 | let deltaX = to.x - startPosition.x
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:63:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
61 |
62 | guard let screenshot = try? await SwiftAutoGUI.screenshot(region: region) else {
63 | return .init(content: [.text("Failed to capture screen region")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:71:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
69 |
70 | guard let cgImage = screenshot.cgImage(forProposedRect: nil, context: nil, hints: nil) else {
71 | return .init(content: [.text("Failed to get CGImage")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:86:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
84 |
85 | guard let bitmap = bitmapRep else {
86 | return .init(content: [.text("Failed to create bitmap")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
87 | }
88 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:101:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
99 | // Use JPEG compression with specified quality
100 | guard let jpegData = bitmap.representation(using: .jpeg, properties: [.compressionFactor: quality]) else {
101 | return .init(content: [.text("Failed to convert screenshot to JPEG")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:114:22: warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
112 | let base64String = jpegData.base64EncodedString()
113 | return .init(content: [
114 | .image(data: base64String, mimeType: "image/jpeg", metadata: nil)
| `- warning: 'image(data:mimeType:metadata:)' is deprecated: Use .image(data:mimeType:annotations:_meta:) instead. [#DeprecatedDeclaration]
115 | ], isError: false)
116 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:120:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
118 | try jpegData.write(to: filePath)
119 | } catch {
120 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
121 | }
122 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:122:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
120 | return .init(content: [.text("Failed to save screenshot: \(error.localizedDescription)")], isError: true)
121 | }
122 | return .init(content: [.text("{\"path\": \"\(filePath.path)\", \"width\": \(scaledWidth), \"height\": \(scaledHeight)}")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
123 | }
124 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Screen/CaptureRegionTool.swift:125:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
123 | }
124 | } catch {
125 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
126 | }
127 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[389/393] Compiling swift_mcp_gui SendKeysTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:62:49: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
60 | case "0": keyCollection.append(.zero)
61 | default:
62 | return .init(content: [.text("Unknown key: \(keyString)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:67:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
65 |
66 | if keyCollection.isEmpty {
67 | return .init(content: [.text("No keys specified")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:71:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
69 |
70 | SwiftAutoGUI.sendKeyShortcut(keyCollection)
71 | return .init(content: [.text("Sent key combination: \(keysArray.joined(separator: "+"))")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | } catch {
73 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:73:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
71 | return .init(content: [.text("Sent key combination: \(keysArray.joined(separator: "+"))")], isError: false)
72 | } catch {
73 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:70:17: error: expression is 'async' but is not marked with 'await'
68 | }
69 |
70 | SwiftAutoGUI.sendKeyShortcut(keyCollection)
| |- error: expression is 'async' but is not marked with 'await'
| `- note: call is 'async'
71 | return .init(content: [.text("Sent key combination: \(keysArray.joined(separator: "+"))")], isError: false)
72 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MouseClickTool.swift:31:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | SwiftAutoGUI.rightClick()
30 | default:
31 | return .init(content: [.text("Invalid button type. Must be 'left' or 'right'")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MouseClickTool.swift:34:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
32 | }
33 |
34 | return .init(content: [.text("\(button) click performed")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
35 | } catch {
36 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MouseClickTool.swift:36:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
34 | return .init(content: [.text("\(button) click performed")], isError: false)
35 | } catch {
36 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
37 | }
38 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[390/393] Compiling swift_mcp_gui MouseClickTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:62:49: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
60 | case "0": keyCollection.append(.zero)
61 | default:
62 | return .init(content: [.text("Unknown key: \(keyString)")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:67:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
65 |
66 | if keyCollection.isEmpty {
67 | return .init(content: [.text("No keys specified")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:71:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
69 |
70 | SwiftAutoGUI.sendKeyShortcut(keyCollection)
71 | return .init(content: [.text("Sent key combination: \(keysArray.joined(separator: "+"))")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
72 | } catch {
73 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:73:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
71 | return .init(content: [.text("Sent key combination: \(keysArray.joined(separator: "+"))")], isError: false)
72 | } catch {
73 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Keyboard/SendKeysTool.swift:70:17: error: expression is 'async' but is not marked with 'await'
68 | }
69 |
70 | SwiftAutoGUI.sendKeyShortcut(keyCollection)
| |- error: expression is 'async' but is not marked with 'await'
| `- note: call is 'async'
71 | return .init(content: [.text("Sent key combination: \(keysArray.joined(separator: "+"))")], isError: false)
72 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MouseClickTool.swift:31:45: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | SwiftAutoGUI.rightClick()
30 | default:
31 | return .init(content: [.text("Invalid button type. Must be 'left' or 'right'")], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MouseClickTool.swift:34:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
32 | }
33 |
34 | return .init(content: [.text("\(button) click performed")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
35 | } catch {
36 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MouseClickTool.swift:36:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
34 | return .init(content: [.text("\(button) click performed")], isError: false)
35 | } catch {
36 | return .init(content: [.text(error.localizedDescription)], isError: true)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
37 | }
38 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[391/394] Compiling swift_mcp_gui main.swift
Fetching https://github.com/NakaokaRei/SwiftAutoGUI.git
Fetching https://github.com/modelcontextprotocol/swift-sdk.git
[1/1640] Fetching swiftautogui
[1641/5198] Fetching swiftautogui, swift-sdk
Fetched https://github.com/modelcontextprotocol/swift-sdk.git from cache (1.44s)
Fetched https://github.com/NakaokaRei/SwiftAutoGUI.git from cache (1.44s)
Computing version for https://github.com/modelcontextprotocol/swift-sdk.git
Computed https://github.com/modelcontextprotocol/swift-sdk.git at 0.12.1 (2.05s)
Fetching https://github.com/mattt/eventsource.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
[1/271] Fetching eventsource
[118/7869] Fetching eventsource, swift-log
[576/13794] Fetching eventsource, swift-log, swift-system
[13795/97948] Fetching eventsource, swift-log, swift-system, swift-nio
Fetched https://github.com/apple/swift-system.git from cache (7.61s)
Fetched https://github.com/apple/swift-nio.git from cache (7.61s)
Fetched https://github.com/apple/swift-log.git from cache (7.61s)
Fetched https://github.com/mattt/eventsource.git from cache (7.61s)
Computing version for https://github.com/mattt/eventsource.git
Computed https://github.com/mattt/eventsource.git at 1.4.1 (8.20s)
Computing version for https://github.com/NakaokaRei/SwiftAutoGUI.git
Computed https://github.com/NakaokaRei/SwiftAutoGUI.git at 0.25.0 (0.56s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/17949] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.39s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (1.98s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.59s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.14.0 (0.58s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.2 (0.87s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1868] Fetching swift-atomics
[151/27107] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.22s)
[1271/1868] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (2.88s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (3.43s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.64s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.14.0
Creating working copy for https://github.com/NakaokaRei/SwiftAutoGUI.git
Working copy of https://github.com/NakaokaRei/SwiftAutoGUI.git resolved at 0.25.0
Creating working copy for https://github.com/modelcontextprotocol/swift-sdk.git
Working copy of https://github.com/modelcontextprotocol/swift-sdk.git resolved at 0.12.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
BUILD FAILURE 6.2 macosSpm