Skip to content

Commit c7cccd7

Browse files
lapfelixclaude
andcommitted
Rename xcode_run to xcode_build_and_run for clarity
BREAKING CHANGE: Tool name changed from xcode_run to xcode_build_and_run - Updated tool definitions to use new name xcode_build_and_run - Modified CLI command mapping: run → build-and-run - Updated all tool handlers and server references - Fixed all test cases and parameter consistency tests - Updated README documentation - Enhanced description to emphasize build + run behavior This change makes the tool name more explicit about its dual functionality of building the project first, then running it. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0018ea6 commit c7cccd7

20 files changed

+30
-30
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ xcodecontrol xcresult-get-ui-hierarchy --xcresult-path /path/to/result.xcresult
188188
CLI commands use kebab-case instead of underscores:
189189
- `xcode_build``build`
190190
- `xcode_test``test`
191-
- `xcode_run``run`
191+
- `xcode_build_and_run``build-and-run`
192192
- `xcode_health_check``health-check`
193193
- `xcresult_browse``xcresult-browse`
194194
- `find_xcresults``find-xcresults`
@@ -205,7 +205,7 @@ CLI commands use kebab-case instead of underscores:
205205
- `xcode_build` - Build with detailed error parsing
206206
- `xcode_clean` - Clean build artifacts
207207
- `xcode_test` - Run tests with optional arguments
208-
- `xcode_run` - Run the active scheme
208+
- `xcode_build_and_run` - Build and run the active scheme
209209
- `xcode_debug` - Start debugging session
210210
- `xcode_stop` - Stop current operation
211211

__tests__/cli-parameter-consistency.vitest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('CLI Parameter Consistency', () => {
1919
expectedError: 'Project file does not exist', // Project not found, but parameters accepted
2020
},
2121
{
22-
command: 'run --xcodeproj /fake/project.xcodeproj --scheme TestScheme --command-line-arguments arg1',
22+
command: 'build-and-run --xcodeproj /fake/project.xcodeproj --scheme TestScheme --command-line-arguments arg1',
2323
expectedError: 'Project file does not exist', // Project not found, but parameters accepted
2424
},
2525
{
@@ -68,7 +68,7 @@ describe('CLI Parameter Consistency', () => {
6868
{ command: 'open-file --help', expected: ['--file-path', '--line-number'] },
6969
{ command: 'set-active-scheme --help', expected: ['--scheme-name'] },
7070
{ command: 'test --help', expected: ['--command-line-arguments'] },
71-
{ command: 'run --help', expected: ['--command-line-arguments'] },
71+
{ command: 'build-and-run --help', expected: ['--command-line-arguments'] },
7272
{ command: 'debug --help', expected: ['--skip-building'] },
7373
{ command: 'xcresult-get-ui-element --help', expected: ['--hierarchy-json-path', '--element-index'] },
7474
{ command: 'xcresult-export-attachment --help', expected: ['--attachment-index'] },

__tests__/functional.vitest.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('XcodeMCP Server Functional Tests', () => {
3131
'xcode_build',
3232
'xcode_clean',
3333
'xcode_test',
34-
'xcode_run',
34+
'xcode_build_and_run',
3535
'xcode_debug',
3636
'xcode_stop',
3737
'xcode_get_schemes',
@@ -45,7 +45,7 @@ describe('XcodeMCP Server Functional Tests', () => {
4545
expect(expectedTools.length).toBe(13);
4646
expect(expectedTools).toContain('xcode_build');
4747
expect(expectedTools).toContain('xcode_test');
48-
expect(expectedTools).toContain('xcode_run');
48+
expect(expectedTools).toContain('xcode_build_and_run');
4949
});
5050

5151
test('should validate JXA script generation patterns', () => {

__tests__/mcp-handlers.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describeIfXcode('MCP Tool Handlers', () => {
9191
expect(toolNames).toContain('xcode_open_project');
9292
expect(toolNames).toContain('xcode_build');
9393
expect(toolNames).toContain('xcode_test');
94-
expect(toolNames).toContain('xcode_run');
94+
expect(toolNames).toContain('xcode_build_and_run');
9595
expect(toolNames).toContain('xcode_debug');
9696
});
9797

__tests__/parameter-mismatch-prevention.vitest.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('Parameter Mismatch Prevention', () => {
7272
{ tool: 'xcode_build', method: 'build', args: ['args.path', 'args.scheme', 'args.destination'] },
7373
{ tool: 'xcode_clean', method: 'clean', args: ['args.path'] },
7474
{ tool: 'xcode_test', method: 'test', args: ['args.path', 'args.commandLineArguments'] },
75-
{ tool: 'xcode_run', method: 'run', args: ['args.path', 'args.commandLineArguments'] },
75+
{ tool: 'xcode_build_and_run', method: 'run', args: ['args.path', 'args.commandLineArguments'] },
7676
{ tool: 'xcode_debug', method: 'debug', args: ['args.path', 'args.scheme', 'args.skipBuilding'] },
7777
{ tool: 'xcode_stop', method: 'stop', args: ['args.xcodeproj'] },
7878
{ tool: 'xcode_get_schemes', method: 'getSchemes', args: ['args.path'] },

__tests__/simple-unit.vitest.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('XcodeMCPServer Basic Tests', () => {
7474
'xcode_build',
7575
'xcode_clean',
7676
'xcode_test',
77-
'xcode_run',
77+
'xcode_build_and_run',
7878
'xcode_debug',
7979
'xcode_stop',
8080
'xcode_get_schemes',

dist/XcodeServer.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/XcodeServer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cli.js

100755100644
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cli.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)