Run, Build and Test Xcode projects directly from Visual Studio Code with seamless integration to Xcode.
Features
Project Management: Easily select and manage multiple Xcode projects and workspaces
Build, Run, Debug: Build, run and debug projects directly from VSCode
Schemes: View and switch between different schemes
Run Destinations: Switch between simulators and connected devices
Testing: Full integration with VSCode's Test Explorer
Test Coverage: Support for test coverage
Diagnostics: View build diagnostics and errors with direct source navigation
Setup
[!NOTE] Xcody works best with Xcode 27.
You must configure Xcode to allow MCP clients to connect. To do this, open Xcode and go to Settings > Intelligence > Model Context Protocol > Allow External Agents to use Xcode Tools. Set this to While Xcode is open or Always.
When you enable Always, Xcody can connect to the Xcode Background Service, allowing you to work without opening Xcode.app.
Quick Start
Open the folder containing the project or workspace in VSCode
Select your project using the Xcode: Select Project command, or by clicking the Xcode item in the bottom status bar.
Configuration
xcody.useBackgroundService: Defaults to false. When enabled, Xcody will open your project using the Xcode Background Service if it is available.
xcody.xcodeAppPath: The path to Xcode.app. Defaults to /Applications/Xcode.app, but you can change this if you want to use a different Xcode app bundle, such as Xcode-beta.app.
[!IMPORTANT]
When connecting to Xcode.app, it will prompt you to allow the connection. You must accept this in order for Xcody to work.
If you're using the Xcode Background Service, you can disable this security gate by running sudo xcrun mcp-server enable --unsafe-always-allow-all-agents (at your own risk).