Skip to main content
Glama

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

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • Core implementation of xcode_stop tool: sends JXA script to Xcode workspace.stop() to stop the current scheme action
    public 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 }] }; }
  • 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);
  • 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 parameter
    name: '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'], },
  • Tool registration in MCP getTools() method (simplified schema)
    name: 'xcode_stop', description: 'Stop the current scheme action', inputSchema: { type: 'object', properties: {}, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lapfelix/XcodeMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server