Skip to main content
Glama

Xcode MCP Server

by PolarVista

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
set_projects_base_dir

Sets the base directory where your Xcode projects are stored.

set_project_path

Sets the active Xcode project by specifying the path to its .xcodeproj directory.

get_active_project

Retrieves detailed information about the currently active Xcode project.

read_file

Reads the contents of a file within the active Xcode project.

write_file

Writes or updates the content of a file in the active Xcode project.

list_project_files

Lists all files within an Xcode project.

analyze_file

Analyzes a source file for potential issues using Xcode's static analyzer.

build_project

Builds the active Xcode project using the specified configuration and scheme.

run_tests

Executes tests for the active Xcode project.

run_xcrun

Executes a specified Xcode tool via 'xcrun'.

list_simulators

Lists all available iOS simulators with their details by invoking 'xcrun simctl list --json'.

boot_simulator

Boots an iOS simulator identified by its UDID.

shutdown_simulator

Shuts down an active iOS simulator using its UDID.

compile_asset_catalog

Compiles an asset catalog using 'actool'.

run_lldb

Launches the LLDB debugger with custom arguments.

trace_app

Captures a performance trace of an application using 'xctrace'.

swift_package_update

Updates the dependencies of your Swift project using Swift Package Manager by invoking 'swift package update'.

list_directory

Lists the contents of a directory, showing both files and subdirectories.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PolarVista/Xcode-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server