XcodeBuildMCP icon indicating copy to clipboard operation
XcodeBuildMCP copied to clipboard

[Bug]: Server crashes on startup for one user

Open cameroncooke opened this issue 7 months ago • 0 comments

Bug Description

One user has reported versions greater than 1.3.0 crashing on startup, while earlier versions are fine. User reports that installing the UI automation tools manually resolves the issue for them.

Debug Output

Running XcodeBuildMCP Diagnostic Tool (v1.3.6)...
Collecting system information and checking dependencies...

[2025-05-08T12:01:47.267Z] [INFO] [Diagnostic]: Running diagnostic tool
# XcodeBuildMCP Diagnostic Report

Generated: 2025-05-08T12:01:47.928Z
Server Version: 1.3.6

## System Information
- platform: darwin
- release: 24.3.0
- arch: arm64
- cpus: 10 x Apple M1 Max
- memory: 32 GB
- tmpdir: /var/folders/1q/mvhr4zt12lqcd8pcp6pclk0w0000gn/T

## Node.js Information
- version: v22.14.0
- execPath: /Users/user/.nvm/versions/node/v22.14.0/bin/node
- pid: 30477
- ppid: 86273
- platform: darwin
- arch: arm64
- cwd: /Users/user/Projects/SomeProduct/Apps/SwiftUIDemo
- argv: /Users/user/.nvm/versions/node/v22.14.0/bin/node /Users/user/.local/share/mise/installs/npm-xcodebuildmcp/1.3.6/bin/xcodebuildmcp-diagnostic

## Xcode Information
- version: Xcode 16.3 - Build version 16E140
- path: /Applications/Xcode-16.3.0.app/Contents/Developer
- selectedXcode: /Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild
- xcrunVersion: xcrun version 70.

## Dependencies
- idb: ❌ Not found
- idb_companion: ❌ Not found
- python3: ✅ Python 3.13.2
- pip3: ✅ pip 25.0 from /opt/homebrew/lib/python3.13/site-packages/pip (python 3.13)
- xcodemake: ❌ Not found
- mise: ✅ 2024.2.11 macos-arm64 (b41f4e4 2024-02-10)

## Environment Variables
- XCODEBUILDMCP_DEBUG: true
- XCODEMAKE_ENABLED: (not set)
- XCODEBUILDMCP_RUNNING_UNDER_MISE: (not set)
- DEVELOPER_DIR: (not set)
- HOME: /Users/user
- USER: user
- TMPDIR: /var/folders/1q/mvhr4zt12lqcd8pcp6pclk0w0000gn/T/
- NODE_ENV: (not set)
- SENTRY_DISABLED: (not set)

### PATH

/Users/user/.local/share/mise/installs/npm-xcodebuildmcp/1.3.6/bin /Users/user/.pyenv/shims /Users/user/.nvm/versions/node/v22.14.0/bin /Users/user/.bun/bin /Users/user/.codeium/windsurf/bin /opt/homebrew/opt/openjdk/bin /Users/user/.rvm/gems/ruby-2.7.2/bin /Users/user/.rvm/gems/ruby-2.7.2@global/bin /Users/user/.rvm/rubies/ruby-2.7.2/bin /Users/user/.local/bin /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin /System/Cryptexes/App/usr/bin /usr/bin /bin /usr/sbin /sbin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin /Library/Apple/usr/bin /Applications/iTerm.app/Contents/Resources/utilities /Users/user/.rvm/bin /Users/user/.cache/lm-studio/bin


## Feature Status

### UI Automation (idb)
- Available: ❌ No
- UI Automation Supported: ❌ No

### Mise Integration
- Running under mise: ❌ No
- Mise available: ✅ Yes

### Tool Groups Status
- All tool groups are enabled (selective mode is disabled).

### Individually Enabled Tools
- All tools are enabled (selective mode is disabled).

## Tool Availability Summary
- Build Tools: ✅ Available
- UI Automation Tools: ❌ Not available

## Sentry
- Sentry enabled: ✅ Yes

## Troubleshooting Tips
- If UI automation tools are not available, install idb: `pip3 install fb-idb`
- For mise integration, follow instructions in the [http://README.md](https://t.co/NKgf9mkg38) file
- To enable specific tool groups, set the appropriate environment variables (e.g., `export XCODEBUILDMCP_GROUP_DISCOVERY=true`)
- If you're having issues with environment variables, make sure to use the correct prefix:
  - Use `XCODEBUILDMCP_GROUP_NAME=true` to enable a tool group
  - Use `XCODEBUILDMCP_TOOL_NAME=true` to enable an individual tool
  - Common mistake: Using `XCODEBUILDMCP_BUILD_IOS_SIM=true` instead of `XCODEBUILDMCP_GROUP_BUILD_IOS_SIM=true`

Diagnostic complete. Please include this output when reporting issues.
mise missing: [email protected]

Editor/Client

Cursor

MCP Server Version

1.3.0 and later

LLM

n/a

MCP Configuration

n/a

Steps to Reproduce

n/a

Expected Behavior

n/a

Actual Behavior

n/a

Error Messages

2025-05-08 16:04:15.981 [info] >>>>> MCP Startup
2025-05-08 16:04:15.981 [info] dMCP: Handling CreateClient action
2025-05-08 16:04:15.981 [info] dMCP: Starting new stdio process with command: mise x npm:[email protected] -- xcodebuildmcp
2025-05-08 16:04:15.981 [info] dMCP: Client closed for command
2025-05-08 16:04:15.981 [error] dMCP: Error in MCP: Client closed
2025-05-08 16:04:15.981 [info] dMCP: Handling ListOfferings action
2025-05-08 16:04:15.981 [error] dMCP: No server info found
2025-05-08 16:04:15.981 [info] dMCP: Handling ListOfferings action
2025-05-08 16:04:15.981 [error] dMCP: No server info found

cameroncooke avatar May 08 '25 11:05 cameroncooke