You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the XcodeBuildMCP server with the environmental variable `XCODEBUILDMCP_DEBUG=true` will expose a new diagnostic tool which you can run using MCP Inspector:
80
+
81
+
82
+
```bash
83
+
XCODEBUILDMCP_DEBUG=true npm run inspect
84
+
```
85
+
86
+
Alternatively, you can run the diagnostic tool directly:
*[Autonomously fixing build errors in Cursor](#autonomously-fixing-build-errors-in-cursor)
24
+
*[Utilising the new UI automation and screen capture features](#utilising-the-new-ui-automation-and-screen-capture-features)
21
25
*[Building and running iOS app in Claude Code](#building-and-running-ios-app-in-claude-code)
22
26
-[Contributing](#contributing)
23
27
-[Licence](#licence)
24
28
25
-
26
29
## Overview
27
30
28
31
This project implements an MCP server that exposes Xcode operations as tools that can be invoked by AI agents via the MCP protocol. It enables programmatic interaction with Xcode projects through a standardised interface, optimised for agent-driven development workflows.
@@ -121,6 +124,38 @@ brew install idb-companion
121
124
> [!NOTE]
122
125
> Displaying images in tool responses and embedding them in chat context may not be supported by all MCP Clients; it's currently known to be supported in Cursor.
123
126
127
+
## Troubleshooting
128
+
129
+
If you encounter issues with XcodeBuildMCP, the diagnostic tool can help identify the problem by providing detailed information about your environment and dependencies.
130
+
131
+
### Diagnostic Tool
132
+
133
+
The diagnostic tool is a standalone utility that checks your system configuration and reports on the status of all dependencies required by XcodeBuildMCP. It's particularly useful when reporting issues.
134
+
135
+
#### Using with mise
136
+
137
+
```bash
138
+
# Run the diagnostic tool using mise
139
+
mise x npm:xcodebuildmcp@latest -- xcodebuildmcp-diagnostic
140
+
```
141
+
142
+
#### Using with npx
143
+
144
+
```bash
145
+
# Run the diagnostic tool using npx
146
+
npx xcodebuildmcp@latest xcodebuildmcp-diagnostic
147
+
```
148
+
149
+
The diagnostic tool will output comprehensive information about:
150
+
151
+
- System and Node.js environment
152
+
- Xcode installation and configuration
153
+
- Required dependencies (xcodebuild, idb, etc.)
154
+
- Environment variables affecting XcodeBuildMCP
155
+
- Feature availability status
156
+
157
+
When reporting issues on GitHub, please include the full output from the diagnostic tool to help with troubleshooting.
0 commit comments