xcode_stop
Halt the current scheme action in Xcode to manage builds, parse logs, and extract errors effectively using this tool for Xcode automation.
Instructions
Stop the current scheme action
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/BuildTools.ts:1210-1222 (handler)Core implementation of xcode_stop tool: sends JXA script to Xcode workspace.stop() to stop the current scheme actionpublic static async stop(projectPath: string): Promise<McpResult> { const script = ` (function() { ${getWorkspaceByPathScript(projectPath)} workspace.stop(); return 'Stop command sent'; })() `; const result = await JXAExecutor.execute(script); return { content: [{ type: 'text', text: result }] }; }
- src/XcodeServer.ts:479-483 (handler)MCP tool handler dispatch for xcode_stop: validates xcodeproj param and delegates to BuildTools.stop()case 'xcode_stop': if (!args.xcodeproj) { return { content: [{ type: 'text', text: 'Error: xcodeproj parameter is required' }] }; } return await BuildTools.stop(args.xcodeproj as string);
- src/XcodeServer.ts:916-920 (handler)Direct CLI tool handler dispatch for xcode_stop: validates xcodeproj param and delegates to BuildTools.stop()case 'xcode_stop': if (!args.xcodeproj) { throw new McpError(ErrorCode.InvalidParams, `Missing required parameter: xcodeproj`); } return await BuildTools.stop(args.xcodeproj as string);
- Primary tool schema definition for xcode_stop with input validation for xcodeproj parametername: 'xcode_stop', description: 'Stop the current scheme action for a specific project', inputSchema: { type: 'object', properties: { xcodeproj: { type: 'string', description: preferredXcodeproj ? `Absolute path to the .xcodeproj file (or .xcworkspace if available) - defaults to ${preferredXcodeproj}` : 'Absolute path to the .xcodeproj file (or .xcworkspace if available) - e.g., /path/to/project.xcodeproj', }, }, required: preferredXcodeproj ? [] : ['xcodeproj'], },
- src/mcp/index.ts:247-253 (registration)Tool registration in MCP getTools() method (simplified schema)name: 'xcode_stop', description: 'Stop the current scheme action', inputSchema: { type: 'object', properties: {}, }, },