Build Information
Successful build of swift-mcp-gui, reference master (580137), with Swift 6.2 for macOS (SPM) on 18 Apr 2026 00:06:18 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NakaokaRei/swift-mcp-gui.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/NakaokaRei/swift-mcp-gui
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 5801379 Merge pull request #41 from NakaokaRei/dependabot/swift/github.com/nakaokarei/swiftautogui-0.20.0
Cloned https://github.com/NakaokaRei/swift-mcp-gui.git
Revision (git rev-parse @):
5801379fd7fb5f7f5f2590ae6f8a069d96673a5d
SUCCESS checkout https://github.com/NakaokaRei/swift-mcp-gui.git at master
========================================
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/34] Write sources
[2/34] Write swift-mcp-gui-entitlement.plist
[2/34] Write sources
[18/34] Compiling CNIOWindows shim.c
[18/34] Compiling CNIOWindows WSAStartup.c
[18/34] Compiling CSystem shims.c
[21/34] Compiling CNIOWASI CNIOWASI.c
[22/34] Compiling CNIOOpenBSD shim.c
[23/34] Compiling CNIOLinux shim.c
[24/34] Compiling CNIOLinux liburing_shims.c
[25/34] Write swift-version--3CB7CFEC50E0D141.txt
[26/43] Copying opencv2.framework
[27/76] Compiling _AtomicsShims.c
[28/114] Compiling CNIODarwin shim.c
[30/114] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[31/114] Compiling InternalCollectionsUtilities _SortedCollection.swift
[32/114] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[33/114] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[34/115] Compiling InternalCollectionsUtilities Debugging.swift
[35/115] Compiling InternalCollectionsUtilities Descriptions.swift
[36/115] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[37/115] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[42/116] Emitting module _NIOBase64
[43/116] Compiling _NIOBase64 Base64.swift
[44/116] Compiling _NIODataStructures _TinyArray.swift
[45/116] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[46/116] Compiling Atomics Unmanaged extensions.swift
[47/116] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[48/116] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[49/116] Compiling InternalCollectionsUtilities Span+Extras.swift
[50/116] Compiling InternalCollectionsUtilities String+Padding.swift
[51/116] Compiling SystemPackage RawBuffer.swift
[52/116] Compiling SystemPackage Syscalls.swift
[53/116] Compiling SystemPackage WindowsSyscallAdapters.swift
[54/119] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[55/119] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[56/119] Compiling SystemPackage Constants.swift
[57/119] Compiling SystemPackage Exports.swift
[58/119] Compiling SystemPackage Mocking.swift
[67/119] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[68/119] Compiling InternalCollectionsUtilities UInt+reversed.swift
[69/119] Emitting module InternalCollectionsUtilities
[72/119] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[73/119] Compiling InternalCollectionsUtilities Integer rank.swift
[74/119] Compiling Logging MetadataProvider.swift
[75/119] Emitting module SystemPackage
[76/119] Emitting module Logging
[77/119] Compiling Logging Locks.swift
[87/119] Compiling _NIODataStructures Heap.swift
[88/119] Emitting module _NIODataStructures
[89/153] Compiling _NIODataStructures PriorityQueue.swift
[90/153] Compiling ContainersPreview RandomAccessContainer.swift
[91/153] Compiling ContainersPreview RangeExpression2.swift
[92/153] Compiling ContainersPreview RangeReplaceableContainer.swift
[93/153] Compiling ContainersPreview Drain+Map.swift
[94/156] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[95/156] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[96/156] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[97/156] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[98/156] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[99/156] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[100/156] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[101/156] Compiling ContainersPreview BorrowingSequence.swift
[102/156] Compiling ContainersPreview Producer+Filter.swift
[103/156] Compiling ContainersPreview Producer+Map.swift
[104/156] Compiling ContainersPreview Producer+Reduce.swift
[105/156] Compiling ContainersPreview Drain+Reduce.swift
[106/156] Compiling ContainersPreview Drain.swift
[107/156] Compiling ContainersPreview Producer+Collect.swift
[108/156] Compiling ContainersPreview ContainerIterator.swift
[109/156] Compiling ContainersPreview DynamicContainer.swift
[110/156] Compiling ContainersPreview MutableContainer.swift
[111/156] Compiling ContainersPreview PermutableContainer.swift
[112/156] Compiling ContainersPreview Producer.swift
[113/156] Compiling ContainersPreview Borrow.swift
[114/156] Compiling ContainersPreview Box.swift
[115/156] Compiling ContainersPreview BidirectionalContainer.swift
[116/156] Compiling ContainersPreview Container+Filter.swift
[117/156] Compiling ContainersPreview Container+SpanwiseZip.swift
[118/156] Compiling ContainersPreview Container.swift
[119/156] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[125/156] Compiling ContainersPreview OutputSpan+Extras.swift
[126/156] Compiling ContainersPreview TemporaryAllocation.swift
[127/156] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[131/156] Emitting module ContainersPreview
[136/156] Compiling ContainersPreview Inout.swift
[137/156] Compiling ContainersPreview InputSpan.swift
[138/156] Compiling ContainersPreview Shared.swift
[141/156] Emitting module Atomics
[144/156] Compiling Logging LogEvent.swift
[145/156] Compiling Logging Logging.swift
[146/156] Compiling Logging LogHandler.swift
[150/197] Compiling DequeModule RigidDeque+Removals.swift
[151/197] Compiling DequeModule RigidDeque+Replacements.swift
[152/197] Compiling DequeModule RigidDeque+Testing.swift
[153/197] Compiling DequeModule RigidDeque.swift
[154/201] Compiling DequeModule UniqueDeque+Append.swift
[155/201] Compiling DequeModule UniqueDeque+Consumption.swift
[156/201] Compiling DequeModule UniqueDeque+Container.swift
[157/201] Compiling DequeModule UniqueDeque+Descriptions.swift
[158/201] Compiling DequeModule UniqueDeque+Insertions.swift
[159/201] Compiling DequeModule UniqueDeque+Prepend.swift
[160/201] Compiling DequeModule UniqueDeque+Removals.swift
[161/201] Compiling DequeModule UniqueDeque+Replacements.swift
[162/201] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[163/201] Compiling DequeModule Deque+Extras.swift
[164/201] Compiling DequeModule Deque+Hashable.swift
[165/201] Compiling DequeModule Deque+Testing.swift
[166/201] Compiling DequeModule Deque._Storage.swift
[166/201] Compiling c-nioatomics.c
[168/201] Compiling DequeModule UniqueDeque+Equatable.swift
[169/201] Compiling DequeModule UniqueDeque+Experimental.swift
[170/201] Compiling DequeModule UniqueDeque+Hashable.swift
[171/201] Compiling DequeModule UniqueDeque+Initializers.swift
[172/201] Compiling DequeModule Deque._UnsafeHandle.swift
[173/201] Compiling DequeModule Deque.swift
[174/201] Compiling DequeModule _DequeBuffer.swift
[175/201] Compiling DequeModule _DequeBufferHeader.swift
[176/201] Compiling DequeModule RigidDeque+Append.swift
[177/201] Compiling DequeModule RigidDeque+Hashable.swift
[178/201] Compiling DequeModule RigidDeque+Initializers.swift
[179/201] Compiling DequeModule RigidDeque+Insertions.swift
[180/201] Compiling DequeModule RigidDeque+Prepend.swift
[181/201] Compiling DequeModule RigidDeque+Consumption.swift
[182/201] Compiling DequeModule RigidDeque+Container.swift
[183/201] Compiling DequeModule RigidDeque+Descriptions.swift
[184/201] Compiling DequeModule RigidDeque+Equatable.swift
[185/201] Compiling DequeModule RigidDeque+Experimental.swift
[186/201] Compiling DequeModule Deque+Codable.swift
[187/201] Compiling DequeModule Deque+Collection.swift
[188/201] Compiling DequeModule Deque+CustomReflectable.swift
[189/201] Compiling DequeModule Deque+Descriptions.swift
[190/201] Compiling DequeModule Deque+Equatable.swift
[190/201] Compiling c-atomics.c
[192/208] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[193/208] Compiling NIOConcurrencyHelpers NIOLock.swift
[194/208] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[195/208] Compiling NIOConcurrencyHelpers atomics.swift
[196/208] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[197/208] Emitting module NIOConcurrencyHelpers
[198/208] Compiling NIOConcurrencyHelpers lock.swift
[199/208] Emitting module DequeModule
[200/208] Compiling opencv2_dependencies Stub.swift
[201/208] Emitting module opencv2_dependencies
[202/208] Compiling DequeModule UniqueDeque.swift
[203/208] Compiling DequeModule _DequeSlot.swift
[204/208] Compiling DequeModule _UnsafeDequeHandle.swift
[205/208] Compiling DequeModule _UnsafeDequeSegments.swift
[206/290] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[207/290] Compiling NIOCore NIOScheduledCallback.swift
[208/290] Compiling NIOCore NIOSendable.swift
[209/290] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[210/290] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[211/290] Compiling NIOCore RecvByteBufferAllocator.swift
[212/290] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[213/297] Compiling NIOCore IO.swift
[214/297] Compiling NIOCore IOData.swift
[215/297] Compiling NIOCore IPProtocol.swift
[216/297] Compiling NIOCore IntegerBitPacking.swift
[217/297] Compiling NIOCore IntegerTypes.swift
[218/297] Compiling NIOCore Interfaces.swift
[219/297] Compiling NIOCore Linux.swift
[220/297] Compiling NIOCore AddressedEnvelope.swift
[221/297] Compiling NIOCore AsyncAwaitSupport.swift
[222/297] Compiling NIOCore AsyncChannel.swift
[223/297] Compiling NIOCore AsyncChannelHandler.swift
[224/297] Compiling NIOCore AsyncChannelInboundStream.swift
[225/297] Compiling NIOCore AsyncChannelOutboundWriter.swift
[226/297] Compiling NIOCore NIOAsyncSequenceProducer.swift
[227/297] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[228/297] Compiling NIOCore SocketAddresses.swift
[229/297] Compiling NIOCore SocketOptionProvider.swift
[230/297] Compiling NIOCore SystemCallHelpers.swift
[231/297] Compiling NIOCore TimeAmount+Duration.swift
[232/297] Compiling NIOCore TypeAssistedChannelHandler.swift
[233/297] Compiling NIOCore UniversalBootstrapSupport.swift
[234/297] Compiling NIOCore Utilities.swift
[235/297] Compiling NIOCore EventLoopFuture+Deprecated.swift
[236/297] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[237/297] Compiling NIOCore EventLoopFuture.swift
[238/297] Compiling NIOCore FileDescriptor.swift
[239/297] Compiling NIOCore FileHandle.swift
[240/297] Compiling NIOCore FileRegion.swift
[241/297] Compiling NIOCore GlobalSingletons.swift
[242/297] Compiling NIOCore ChannelHandler.swift
[243/297] Compiling NIOCore ChannelHandlers.swift
[244/297] Compiling NIOCore ChannelInvoker.swift
[245/297] Compiling NIOCore ChannelOption.swift
[246/297] Compiling NIOCore ChannelPipeline.swift
[247/297] Compiling NIOCore CircularBuffer.swift
[248/297] Compiling NIOCore Codec.swift
[249/297] Compiling NIOCore ConvenienceOptionSupport.swift
[250/297] Compiling NIOCore DeadChannel.swift
[251/297] Compiling NIOCore DispatchQueue+WithFuture.swift
[252/297] Compiling NIOCore EventLoop+Deprecated.swift
[253/297] Compiling NIOCore EventLoop+SerialExecutor.swift
[254/297] Compiling NIOCore EventLoop.swift
[255/297] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[256/297] Compiling NIOCore MarkedCircularBuffer.swift
[257/297] Compiling NIOCore MulticastChannel.swift
[258/297] Compiling NIOCore NIOAny.swift
[259/297] Compiling NIOCore NIOCloseOnErrorHandler.swift
[260/297] Compiling NIOCore NIOCoreSendableMetatype.swift
[261/297] Compiling NIOCore NIODecodedAsyncSequence.swift
[262/297] Compiling NIOCore NIOLoopBound.swift
[263/297] Compiling NIOCore NIOAsyncWriter.swift
[264/297] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[265/297] Compiling NIOCore BSDSocketAPI.swift
[266/297] Compiling NIOCore ByteBuffer-aux.swift
[267/297] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[268/297] Compiling NIOCore ByteBuffer-conversions.swift
[269/297] Compiling NIOCore ByteBuffer-core.swift
[270/297] Compiling NIOCore ByteBuffer-hex.swift
[271/297] Compiling NIOCore ByteBuffer-int.swift
[272/297] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[273/297] Compiling NIOCore ByteBuffer-multi-int.swift
[274/297] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[275/297] Compiling NIOCore ByteBuffer-views.swift
[276/297] Compiling NIOCore Channel.swift
[277/297] Emitting module NIOCore
[278/302] Compiling EventSource EventSource+AsyncHTTPClient.swift
[279/302] Compiling EventSource AsyncEventsSequence.swift
[280/302] Compiling EventSource EventSource.swift
[281/302] Compiling EventSource AsyncSequence+Events.swift
[282/302] Emitting module EventSource
[283/346] Compiling MCP OAuthDiscovery.swift
[284/346] Compiling MCP OAuthDiscoveryClient.swift
[285/346] Compiling MCP OAuthErrors.swift
[286/346] Compiling MCP OAuthModels.swift
[287/346] Compiling MCP OAuthTokenEndpointClient.swift
[288/350] Compiling MCP Transport.swift
[289/350] Compiling MCP HTTPClientTransport.swift
[290/350] Compiling MCP HTTPRequestValidation.swift
[291/350] Compiling MCP HTTPServerTypes.swift
[292/350] Compiling MCP StatefulHTTPServerTransport.swift
[293/350] Compiling MCP OAuthAuthorizationCodeFlow.swift
[294/350] Compiling MCP OAuthAuthorizer.swift
[295/350] Compiling MCP OAuthClientRegistrar.swift
[296/350] Compiling MCP OAuthConfiguration.swift
[297/350] Compiling MCP OAuthConstants.swift
[298/350] Compiling MCP StatelessHTTPServerTransport.swift
[299/350] Compiling MCP InMemoryTransport.swift
[300/350] Compiling MCP NetworkTransport.swift
[301/350] Compiling MCP StdioTransport.swift
[302/350] Compiling MCP UnitInterval.swift
[303/350] Compiling MCP ID.swift
[304/350] Compiling MCP Icon.swift
[305/350] Compiling MCP Lifecycle.swift
[306/350] Compiling MCP Messages.swift
[307/350] Compiling MCP PendingRequest.swift
[308/350] Compiling MCP Versioning.swift
[309/350] Compiling MCP Client.swift
[310/350] Compiling MCP Elicitation.swift
[311/350] Compiling MCP Roots.swift
[312/350] Compiling MCP Cancellation.swift
[313/350] Compiling MCP Ping.swift
[314/350] Compiling MCP Progress.swift
[315/350] Compiling MCP RequestContext.swift
[316/350] Compiling MCP Value.swift
[317/350] Emitting module MCP
[318/350] Compiling MCP OAuthURLValidator.swift
[319/350] Compiling MCP OAuthWWWAuthenticateParser.swift
[320/350] Compiling MCP PKCE.swift
[321/350] Compiling MCP TokenStorage.swift
[322/350] Compiling MCP Error.swift
[323/350] Compiling MCP Sampling.swift
[324/350] Compiling MCP Data+Extensions.swift
[325/350] Compiling MCP Completion.swift
[326/350] Compiling MCP Logging.swift
[327/350] Compiling MCP Prompts.swift
[328/350] Compiling MCP Resources.swift
[329/350] Compiling MCP Server.swift
[330/350] Compiling MCP Tools.swift
[331/350] Compiling SwiftAutoGUI TweeningFunction.swift
[334/350] Compiling SwiftAutoGUI SwiftAutoGUI.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "Headers/opencv2.h"
| `- note: in file included from <module-includes>:1:
2 | #import "Headers/MatOfRect2d.h"
3 | #import "Headers/MatOfFloat4.h"
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "Headers/opencv2.h"
| `- note: in file included from <module-includes>:1:
2 | #import "Headers/MatOfRect2d.h"
3 | #import "Headers/MatOfFloat4.h"
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "Headers/opencv2.h"
| `- note: in file included from <module-includes>:1:
2 | #import "Headers/MatOfRect2d.h"
3 | #import "Headers/MatOfFloat4.h"
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "Headers/opencv2.h"
| `- note: in file included from <module-includes>:1:
2 | #import "Headers/MatOfRect2d.h"
3 | #import "Headers/MatOfFloat4.h"
[341/350] Emitting module SwiftAutoGUI
[348/351] Compiling SwiftAutoGUI VisionActionGenerating.swift
[349/368] Compiling swift_mcp_gui ParameterParser.swift
[350/368] 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:70:30: warning: 'sendKeyShortcut' is deprecated: Use the async version of sendKeyShortcut instead [#DeprecatedDeclaration]
68 | }
69 |
70 | SwiftAutoGUI.sendKeyShortcut(keyCollection)
| `- warning: 'sendKeyShortcut' is deprecated: Use the async version of sendKeyShortcut instead [#DeprecatedDeclaration]
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/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/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>
[351/368] 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:70:30: warning: 'sendKeyShortcut' is deprecated: Use the async version of sendKeyShortcut instead [#DeprecatedDeclaration]
68 | }
69 |
70 | SwiftAutoGUI.sendKeyShortcut(keyCollection)
| `- warning: 'sendKeyShortcut' is deprecated: Use the async version of sendKeyShortcut instead [#DeprecatedDeclaration]
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/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/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>
[352/368] Compiling swift_mcp_gui MoveMouseTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:28:30: warning: 'move(to:)' is deprecated: Use move(to:duration:tweening:fps:) with duration: 0 for instant movement [#DeprecatedDeclaration]
26 | let y = try parser.parseDouble("y")
27 |
28 | SwiftAutoGUI.move(to: CGPoint(x: x, y: y))
| `- warning: 'move(to:)' is deprecated: Use move(to:duration:tweening:fps:) with duration: 0 for instant movement [#DeprecatedDeclaration]
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
30 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:29:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
27 |
28 | SwiftAutoGUI.move(to: CGPoint(x: x, y: y))
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
30 | } catch {
31 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:31:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
30 | } catch {
31 | return .init(content: [.text(error.localizedDescription)], 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/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>
[353/368] Compiling swift_mcp_gui CaptureRegionTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:28:30: warning: 'move(to:)' is deprecated: Use move(to:duration:tweening:fps:) with duration: 0 for instant movement [#DeprecatedDeclaration]
26 | let y = try parser.parseDouble("y")
27 |
28 | SwiftAutoGUI.move(to: CGPoint(x: x, y: y))
| `- warning: 'move(to:)' is deprecated: Use move(to:duration:tweening:fps:) with duration: 0 for instant movement [#DeprecatedDeclaration]
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
30 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:29:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
27 |
28 | SwiftAutoGUI.move(to: CGPoint(x: x, y: y))
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
| `- warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
30 | } catch {
31 | return .init(content: [.text(error.localizedDescription)], isError: true)
/Users/admin/builder/spi-builder-workspace/Sources/swift-mcp-gui/Tools/Mouse/MoveMouseTool.swift:31:41: warning: 'text(_:metadata:)' is deprecated: Use .text(text:annotations:_meta:) instead. [#DeprecatedDeclaration]
29 | return .init(content: [.text("Mouse moved to (\(x), \(y))")], isError: false)
30 | } catch {
31 | return .init(content: [.text(error.localizedDescription)], 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/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>
[354/368] 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>
[355/368] 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>
[356/368] 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>
[357/368] 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>
[358/368] Emitting module swift_mcp_gui
[359/368] 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>
[360/368] 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>
[361/368] 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>
[362/368] 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>
[363/368] 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>
[364/368] 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>
[365/368] 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>
[366/369] Compiling swift_mcp_gui main.swift
[366/369] Write Objects.LinkFileList
[367/369] Linking swift-mcp-gui
[368/369] Applying swift-mcp-gui
Build complete! (65.88s)
Fetching https://github.com/modelcontextprotocol/swift-sdk.git
Fetching https://github.com/NakaokaRei/SwiftAutoGUI.git
[1/1315] Fetching swiftautogui
[383/4789] Fetching swiftautogui, swift-sdk
Fetched https://github.com/modelcontextprotocol/swift-sdk.git from cache (1.21s)
Fetched https://github.com/NakaokaRei/SwiftAutoGUI.git from cache (1.21s)
Computing version for https://github.com/modelcontextprotocol/swift-sdk.git
Computed https://github.com/modelcontextprotocol/swift-sdk.git at 0.12.0 (1.79s)
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/6906] Fetching eventsource, swift-log
[405/12507] Fetching eventsource, swift-log, swift-system
[12508/95679] Fetching eventsource, swift-log, swift-system, swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (11.69s)
Fetched https://github.com/apple/swift-system.git from cache (11.69s)
Fetched https://github.com/mattt/eventsource.git from cache (11.69s)
Fetched https://github.com/apple/swift-log.git from cache (11.69s)
Computing version for https://github.com/NakaokaRei/SwiftAutoGUI.git
Computed https://github.com/NakaokaRei/SwiftAutoGUI.git at 0.20.0 (12.29s)
Fetching https://github.com/yeatse/opencv-spm.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/364] Fetching opencv-spm
[365/17893] Fetching opencv-spm, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.58s)
Fetched https://github.com/yeatse/opencv-spm.git from cache (1.58s)
Computing version for https://github.com/yeatse/opencv-spm.git
Computed https://github.com/yeatse/opencv-spm.git at 4.13.0 (2.17s)
Computing version for https://github.com/mattt/eventsource.git
Computed https://github.com/mattt/eventsource.git at 1.4.1 (0.55s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (0.55s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.56s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.55s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (0.87s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1820] Fetching swift-atomics
[384/25389] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (2.14s)
Fetched https://github.com/apple/swift-collections.git from cache (2.14s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.68s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.61s)
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
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-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/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/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.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.1
Creating working copy for https://github.com/yeatse/opencv-spm.git
Working copy of https://github.com/yeatse/opencv-spm.git resolved at 4.13.0
Creating working copy for https://github.com/NakaokaRei/SwiftAutoGUI.git
Working copy of https://github.com/NakaokaRei/SwiftAutoGUI.git resolved at 0.20.0
Downloading binary artifact https://github.com/yeatse/opencv-spm/releases/download/4.13.0/opencv2.xcframework.zip
[32750/200350637] Downloading https://github.com/yeatse/opencv-spm/releases/download/4.13.0/opencv2.xcframework.zip
Downloaded https://github.com/yeatse/opencv-spm/releases/download/4.13.0/opencv2.xcframework.zip (11.53s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-sdk",
"requirement" : {
"range" : [
{
"lower_bound" : "0.12.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/modelcontextprotocol/swift-sdk.git"
},
{
"identity" : "swiftautogui",
"requirement" : {
"range" : [
{
"lower_bound" : "0.17.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/NakaokaRei/SwiftAutoGUI.git"
}
],
"manifest_display_name" : "swift-mcp-gui",
"name" : "swift-mcp-gui",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "26.0"
}
],
"products" : [
{
"name" : "swift-mcp-gui",
"targets" : [
"swift-mcp-gui"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "swift_mcp_guiTests",
"module_type" : "SwiftTarget",
"name" : "swift-mcp-guiTests",
"path" : "Tests/swift-mcp-guiTests",
"sources" : [
"Tools/AppleScriptToolsTests.swift",
"Tools/KeyboardToolsTests.swift",
"Tools/MouseToolsTests.swift",
"Tools/ScreenToolsTests.swift",
"Utilities/ParameterParserTests.swift"
],
"target_dependencies" : [
"swift-mcp-gui"
],
"type" : "test"
},
{
"c99name" : "swift_mcp_gui",
"module_type" : "SwiftTarget",
"name" : "swift-mcp-gui",
"path" : "Sources/swift-mcp-gui",
"product_dependencies" : [
"MCP",
"SwiftAutoGUI"
],
"product_memberships" : [
"swift-mcp-gui"
],
"sources" : [
"Extensions/Server+Extension.swift",
"Server/MCPServer.swift",
"Tools/AppleScript/ExecuteAppleScriptFileTool.swift",
"Tools/AppleScript/ExecuteAppleScriptTool.swift",
"Tools/Keyboard/SendKeysTool.swift",
"Tools/Mouse/MouseClickTool.swift",
"Tools/Mouse/MoveMouseTool.swift",
"Tools/Screen/CaptureRegionTool.swift",
"Tools/Screen/CaptureScreenTool.swift",
"Tools/Screen/GetPixelColorTool.swift",
"Tools/Screen/GetScreenContextTool.swift",
"Tools/Screen/GetScreenSizeTool.swift",
"Tools/Screen/SaveScreenshotTool.swift",
"Tools/Screen/ScrollTool.swift",
"Tools/ToolRegistry.swift",
"Utilities/ParameterParser.swift",
"main.swift"
],
"type" : "executable"
}
],
"tools_version" : "6.2"
}
Done.