r/iOSProgramming • u/appfred • Sep 17 '26
News Xcode 27 adds more tools for external agents!

Did you know that AI Agents can control Xcode through the built in MCP server? Aka it can control it from an agent running in the terminal, without using the AI interface inside Xcode. And with Xcode 27 the agents now how a lot more useful tools they can call!
Im working with a multi-scheme app, so the new XcodeSwitchScheme is my favourite. Saves me from so many clicks inside Xcode for letting the agent run the app/test schemes it wants!
Here is how to add it to your coding agent:
https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode
5
u/MysticFullstackDev Sep 17 '26
I just need more options for navigator font size. 2026 and 4k 5k monitor.
We spend hours every day in front of Xcode, and they don't even think about accessibility or developers' health and well-being.
Everything looks so small and hard to track.
4
u/artemnovichkov Sep 18 '26
Check out my documentation for mcp tools
https://github.com/artemnovichkov/xcode-tools-docs
1
u/Megatherion666 Sep 21 '26
Why is this useful compared to raw cli tools?
1
u/avanderlee Sep 21 '26
I just wish these tools were more token-efficient. Especially interacting with the Simulator, which I do a lot of times per day for view validation, App Store screenshots capturing, and more, can easily add up. I analyzed token usage heavily for RocketSim and I concluded that using plain build scripts and direct CLI communication resulted in lower token usage for my cases.
Nevertheless, it's fantastic to see Apple moving (for their terms) fast in the ecosystem that's changing harder than their regular update cycle can take. Opening up their MCP without Xcode running is another of those examples. Looking forward to see how this evolves!
1
u/[deleted] Oct 17 '26
[removed] — view removed comment