Skip to content

docs(clients): Use XCODEBUILDMCP_CWD for global Cursor config#15

Merged
cameroncooke merged 1 commit intomainfrom
cameroncooke/docs/cursor-cwd-env-var
May 8, 2026
Merged

docs(clients): Use XCODEBUILDMCP_CWD for global Cursor config#15
cameroncooke merged 1 commit intomainfrom
cameroncooke/docs/cursor-cwd-env-var

Conversation

@cameroncooke
Copy link
Copy Markdown
Collaborator

Replace the /bin/zsh -lc "cd ${workspaceFolder} && exec npx ..." shell wrapper in the global ~/.cursor/mcp.json example with the supported XCODEBUILDMCP_CWD env var, which Cursor expands to the active workspace at launch.

The shell wrapper was the only way to get a per-workspace cwd into a globally-configured MCP server before XcodeBuildMCP supported XCODEBUILDMCP_CWD. Now that it does, the example collapses back to the standard npx -y xcodebuildmcp@latest mcp invocation with one extra env var, which is easier to copy, easier to debug (no shell quoting), and works the same way for any client that expands ${workspaceFolder} in its MCP config.

Project-scoped Cursor config (.cursor/mcp.json) is unchanged because the spawn cwd is already correct there.

Replace the /bin/zsh -lc "cd $workspaceFolder && exec npx ..." wrapper
in the global `~/.cursor/mcp.json` example with the supported
`XCODEBUILDMCP_CWD` env var, which Cursor expands to the active workspace
at launch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
xcodebuildmcp-com Ready Ready Preview, Comment May 8, 2026 1:52pm

Request Review

@cameroncooke cameroncooke marked this pull request as ready for review May 8, 2026 14:10
@cameroncooke cameroncooke merged commit e190bd0 into main May 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant