Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoControls logging verbosity. Options: SILENT, ERROR, WARN, INFO, DEBUGINFO
XCODEMCP_LOG_FILENoOptional file path for logging. Logs are written to the specified file in addition to stderr
XCODEMCP_CONSOLE_LOGGINGNoEnable/disable console output. Set to 'false' to disable stderr loggingtrue

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
xcode_open_projectC

Open an Xcode project or workspace

xcode_close_projectA

Close the currently active Xcode project or workspace (automatically stops any running actions first)

xcode_buildA

Build a specific Xcode project or workspace with the specified scheme. If destination is not provided, uses the currently active destination. ⏱️ Can take minutes to hours - do not timeout.

xcode_get_schemesC

Get list of available schemes for a specific project

xcode_set_active_schemeC

Set the active scheme for a specific project

xcode_cleanC

Clean the build directory for a specific project

xcode_testA

Run tests for a specific project. Optionally run only specific tests or test classes by temporarily modifying the test plan (automatically restored after completion). ⏱️ Can take minutes to hours - do not timeout.

xcode_build_and_runA

Build and run a specific project with the specified scheme. ⏱️ Can run indefinitely - do not timeout.

xcode_debugA

Start debugging session for a specific project. ⏱️ Can run indefinitely - do not timeout.

xcode_stopC

Stop the current scheme action for a specific project

find_xcresultsC

Find all XCResult files for a specific project with timestamps and file information

xcode_get_run_destinationsC

Get list of available run destinations for a specific project

xcode_get_workspace_infoC

Get information about a specific workspace

xcode_get_projectsC

Get list of projects in a specific workspace

xcode_open_fileC

Open a file in Xcode

xcode_health_checkC

Perform a comprehensive health check of the XcodeMCP environment and configuration

xcresult_browseA

Browse XCResult files - list all tests or show details for a specific test. Returns comprehensive test results including pass/fail status, failure details, and browsing instructions. Large console output (>20 lines or >2KB) is automatically saved to a temporary file.

xcresult_browser_get_consoleA

Get console output and test activities for a specific test in an XCResult file. Large output (>20 lines or >2KB) is automatically saved to a temporary file.

xcresult_summaryC

Get a quick summary of test results from an XCResult file

xcresult_get_screenshotA

Get screenshot from a failed test at specific timestamp - extracts frame from video attachment using ffmpeg

xcresult_get_ui_hierarchyA

Get UI hierarchy attachment from test. Returns raw accessibility tree (best for AI), slim AI-readable JSON (default), or full JSON.

xcresult_get_ui_elementB

Get full details of a specific UI element by index from a previously exported UI hierarchy JSON file

xcresult_list_attachmentsB

List all attachments for a specific test - shows attachment names, types, and indices for export

xcresult_export_attachmentB

Export a specific attachment by index - can convert App UI hierarchy attachments to JSON

xcode_refresh_projectA

Refresh/reload an Xcode project by closing and reopening it to pick up external changes like modified .xctestplan files

xcode_get_test_targetsC

Get information about test targets in a project, including names and identifiers

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/lapfelix/XcodeMCP'

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