diff --git a/src/main/presenter/mcpPresenter/inMemoryServers/appleServer.ts b/src/main/presenter/mcpPresenter/inMemoryServers/appleServer.ts index 68d7aa4da..6a1675ba1 100644 --- a/src/main/presenter/mcpPresenter/inMemoryServers/appleServer.ts +++ b/src/main/presenter/mcpPresenter/inMemoryServers/appleServer.ts @@ -1569,11 +1569,16 @@ export class AppleServer { if (!parsedArgs.query) { throw new Error('Query is required for search operation') } + await runAppleScript(` + open location "maps://?q=${encodeURIComponent(parsedArgs.query)}" + delay 0.3 + tell application "Maps" to activate + `) return { content: [ { type: 'text' as const, - text: `Found locations for "${parsedArgs.query}":\n\n• Location 1: ${parsedArgs.query} Restaurant\n• Location 2: ${parsedArgs.query} Store\n• Location 3: ${parsedArgs.query} Center` + text: `Search for "${parsedArgs.query}" has been launched in Apple Maps app. Please check the Maps window for results.` } ] }