Skip to content

Commit 5e932d6

Browse files
committed
Make CLI
1 parent 53b5605 commit 5e932d6

152 files changed

Lines changed: 9085 additions & 1572 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [Unreleased]
4+
5+
### Fixed
6+
- Honor CLI socket overrides when auto-starting the daemon.
7+
- Disable log file output after stream errors to prevent daemon crashes.
8+
- Update MCP examples and debugging docs to use the `mcp` subcommand.
9+
- Stop routing tool commands through `sh` by default to avoid `spawn sh ENOENT` failures.
10+
311
## [2.0.0] - 2026-01-28
412

513
### Breaking

README.md

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
1212
```json
1313
"XcodeBuildMCP": {
1414
"command": "npx",
15-
"args": ["-y", "xcodebuildmcp@latest"]
15+
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
1616
}
1717
```
1818

@@ -26,15 +26,15 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
2626
"mcpServers": {
2727
"XcodeBuildMCP": {
2828
"command": "npx",
29-
"args": ["-y", "xcodebuildmcp@latest"]
29+
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
3030
}
3131
}
3232
}
3333
```
3434

3535
Or use the quick install link:
3636

37-
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=XcodeBuildMCP&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoibnB4IC15IHhjb2RlYnVpbGRtY3BAbGF0ZXN0IiwiZW52Ijp7IklOQ1JFTUVOVEFMX0JVSUxEU19FTkFCTEVEIjoiZmFsc2UiLCJYQ09ERUJVSUxETUNQX1NFTlRSWV9ESVNBQkxFRCI6ImZhbHNlIn19)
37+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=XcodeBuildMCP&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInhjb2RlYnVpbGRtY3BAbGF0ZXN0IiwibWNwIl19)
3838
<br />
3939
</details>
4040

@@ -44,7 +44,7 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
4444

4545
Run:
4646
```bash
47-
claude mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest
47+
claude mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcp
4848
```
4949
<br />
5050
</details>
@@ -55,14 +55,14 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
5555

5656
Run:
5757
```bash
58-
codex mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest
58+
codex mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcp
5959
```
6060

6161
Or add to `~/.codex/config.toml`:
6262
```toml
6363
[mcp_servers.XcodeBuildMCP]
6464
command = "npx"
65-
args = ["-y", "xcodebuildmcp@latest"]
65+
args = ["-y", "xcodebuildmcp@latest", "mcp"]
6666
```
6767
<br />
6868
</details>
@@ -77,7 +77,7 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
7777
"mcpServers": {
7878
"XcodeBuildMCP": {
7979
"command": "npx",
80-
"args": ["-y", "xcodebuildmcp@latest"]
80+
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
8181
}
8282
}
8383
}
@@ -95,16 +95,16 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
9595
"servers": {
9696
"XcodeBuildMCP": {
9797
"command": "npx",
98-
"args": ["-y", "xcodebuildmcp@latest"]
98+
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
9999
}
100100
}
101101
}
102102
```
103103

104104
Or use the quick install links:
105105

106-
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](https://insiders.vscode.dev/redirect/mcp/install?name=XcodeBuildMCP&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22xcodebuildmcp%40latest%22%5D%7D)
107-
[<img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">](https://insiders.vscode.dev/redirect/mcp/install?name=XcodeBuildMCP&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22xcodebuildmcp%40latest%22%5D%7D&quality=insiders)
106+
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](https://insiders.vscode.dev/redirect/mcp/install?name=XcodeBuildMCP&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22xcodebuildmcp%40latest%22%2C%22mcp%22%5D%7D)
107+
[<img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">](https://insiders.vscode.dev/redirect/mcp/install?name=XcodeBuildMCP&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22xcodebuildmcp%40latest%22%2C%22mcp%22%5D%7D&quality=insiders)
108108
<br />
109109
</details>
110110

@@ -118,7 +118,7 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
118118
"mcpServers": {
119119
"XcodeBuildMCP": {
120120
"command": "npx",
121-
"args": ["-y", "xcodebuildmcp@latest"]
121+
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
122122
}
123123
}
124124
}
@@ -130,13 +130,13 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
130130
<summary>Trae</summary>
131131
<br />
132132

133-
Add to `'~/Library/Application Support/Trae/User/mcp.json'`:
133+
Add to `~/Library/Application Support/Trae/User/mcp.json`:
134134
```json
135135
{
136136
"mcpServers": {
137137
"XcodeBuildMCP": {
138138
"command": "npx",
139-
"args": ["-y", "xcodebuildmcp@latest"]
139+
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
140140
}
141141
}
142142
}
@@ -148,6 +148,8 @@ Add XcodeBuildMCP to your MCP client configuration. Most clients use JSON config
148148

149149
For other installation options see [Getting Started](docs/GETTING_STARTED.md)
150150

151+
When configuring a client manually, ensure the command includes the `mcp` subcommand (for example, `npx -y xcodebuildmcp@latest mcp`).
152+
151153
## Requirements
152154

153155
- macOS 14.5 or later
@@ -174,9 +176,30 @@ For further information on how to install the skill, see: [docs/SKILLS.md](docs/
174176

175177
XcodeBuildMCP uses Sentry for error telemetry. For more information or to opt out of error telemetry see [docs/PRIVACY.md](docs/PRIVACY.md).
176178

179+
## CLI
180+
181+
XcodeBuildMCP provides a unified command-line interface. The `mcp` subcommand starts the MCP server, while all other commands provide direct terminal access to tools:
182+
183+
```bash
184+
# Install globally
185+
npm install -g xcodebuildmcp
186+
187+
# Start the MCP server (for MCP clients)
188+
xcodebuildmcp mcp
189+
190+
# List available tools
191+
xcodebuildmcp tools
192+
193+
# Build for simulator
194+
xcodebuildmcp build-sim --scheme MyApp --project-path ./MyApp.xcodeproj
195+
```
196+
197+
The CLI uses a per-workspace daemon for stateful operations (log capture, debugging, etc.) that auto-starts when needed. See [docs/CLI.md](docs/CLI.md) for full documentation.
198+
177199
## Documentation
178200

179201
- Getting started: [docs/GETTING_STARTED.md](docs/GETTING_STARTED.md)
202+
- CLI usage: [docs/CLI.md](docs/CLI.md)
180203
- Configuration and options: [docs/CONFIGURATION.md](docs/CONFIGURATION.md)
181204
- Tools reference: [docs/TOOLS.md](docs/TOOLS.md)
182205
- Troubleshooting: [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md)

0 commit comments

Comments
 (0)