From 41409dd4913524403c75f45ae753cbb7316f8bbd Mon Sep 17 00:00:00 2001 From: Cameron Cooke Date: Fri, 8 May 2026 14:51:19 +0100 Subject: [PATCH] docs(clients): Use XCODEBUILDMCP_CWD for global Cursor config 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) --- app/docs/_content/clients.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/docs/_content/clients.mdx b/app/docs/_content/clients.mdx index 530e794..18980fa 100644 --- a/app/docs/_content/clients.mdx +++ b/app/docs/_content/clients.mdx @@ -116,17 +116,17 @@ Project-scoped (recommended): create `.cursor/mcp.json` in your workspace root: } ``` -For global Cursor config at `~/.cursor/mcp.json`, use this variant so startup runs from the active workspace: +For global Cursor config at `~/.cursor/mcp.json`, set `XCODEBUILDMCP_CWD` so startup runs from the active workspace: ```json { "mcpServers": { "XcodeBuildMCP": { - "command": "/bin/zsh", - "args": [ - "-lc", - "cd \"${workspaceFolder}\" && exec npx -y xcodebuildmcp@latest mcp" - ] + "command": "npx", + "args": ["-y", "xcodebuildmcp@latest", "mcp"], + "env": { + "XCODEBUILDMCP_CWD": "${workspaceFolder}" + } } } }