xcodebug 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/mcp/server.ts +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,24 +68,27 @@ extension rather than a parallel implementation.
|
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
70
|
npm i -g xcodebug # >= 1.1.0, the first release that ships mcp/
|
|
71
|
-
codex mcp add xcodebug --
|
|
72
|
-
claude mcp add xcodebug --
|
|
71
|
+
codex mcp add xcodebug -- bun "$(npm root -g)/xcodebug/mcp/server.ts"
|
|
72
|
+
claude mcp add xcodebug -- bun "$(npm root -g)/xcodebug/mcp/server.ts"
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
Working from a checkout instead? Point both at `mcp/server.ts` in the repo:
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
codex mcp add xcodebug --
|
|
79
|
-
claude mcp add xcodebug --
|
|
78
|
+
codex mcp add xcodebug -- bun /path/to/xcodebug/mcp/server.ts
|
|
79
|
+
claude mcp add xcodebug -- bun /path/to/xcodebug/mcp/server.ts
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
Bun is required ([bun.sh](https://bun.sh)). The sources are TypeScript, and Node
|
|
83
|
+
refuses to strip types for files under `node_modules`
|
|
84
|
+
(`ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING`) - which is exactly where npm
|
|
85
|
+
installs the package, so `node` cannot start an installed copy. Bun loads the
|
|
86
|
+
same file from either location, so one command covers both.
|
|
84
87
|
|
|
85
88
|
Check that the client picked it up:
|
|
86
89
|
|
|
87
90
|
```bash
|
|
88
|
-
codex mcp list # xcodebug
|
|
91
|
+
codex mcp list # xcodebug bun …
|
|
89
92
|
claude mcp list # xcodebug: … ✔ Connected
|
|
90
93
|
```
|
|
91
94
|
|
|
@@ -146,9 +149,10 @@ run is over.
|
|
|
146
149
|
| `idevicesyslog` from libimobiledevice | optional; only `syslog` and the dual-channel safety net |
|
|
147
150
|
| git | change detection; without a repo every run rebuilds |
|
|
148
151
|
| CocoaPods | optional; only projects with a `Podfile` |
|
|
149
|
-
|
|
|
152
|
+
| Bun | only for the MCP clients (Claude Code, Codex); pi runs the extension itself |
|
|
150
153
|
|
|
151
|
-
`xcodebug action=doctor` reports
|
|
154
|
+
`xcodebug action=doctor` reports the Xcode toolchain, the capture tools, the
|
|
155
|
+
active config and the log directory.
|
|
152
156
|
|
|
153
157
|
## Imports
|
|
154
158
|
|
package/mcp/server.ts
CHANGED
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
* tool's execute. index.ts stays untouched, which is what keeps the pi path
|
|
8
8
|
* behaving exactly as verified across pi, omp and omo.
|
|
9
9
|
*
|
|
10
|
-
* Run it with
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Run it with bun. Node can load this file from a checkout, but not from
|
|
11
|
+
* node_modules: it refuses to strip types there
|
|
12
|
+
* (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING), and that is where npm installs
|
|
13
|
+
* the package.
|
|
13
14
|
*
|
|
14
|
-
* codex mcp add xcodebug --
|
|
15
|
+
* codex mcp add xcodebug -- bun /path/to/xcodebug/mcp/server.ts
|
|
15
16
|
*
|
|
16
17
|
* The protocol is hand-written JSON-RPC over stdio because only three methods are
|
|
17
18
|
* needed (initialize, tools/list, tools/call); the official SDK would add ~97
|
package/package.json
CHANGED