Skip to main content
Glama

boot_simulator

Boot an iOS simulator using its unique device identifier (UDID) to prepare for automated testing and interaction within the app-screen-mcp environment.

Instructions

Boot an iOS simulator by UDID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesSimulator UDID to boot

Implementation Reference

  • The 'bootSimulator' method handles the 'boot_simulator' tool request by executing 'xcrun simctl boot'.
    private async bootSimulator(udid: string) {
      try {
        await execAsync(`xcrun simctl boot ${udid}`);
      } catch (error: any) {
        if (!error.stderr?.includes('current state: Booted')) {
          throw new McpError(ErrorCode.InternalError, `Failed to boot simulator: ${error.message}`);
        }
      }
      return {
        content: [{ type: 'text', text: `Simulator ${udid} is booted.` }],
      };
    }
  • src/index.ts:284-295 (registration)
    The 'boot_simulator' tool is registered in the list of available tools.
    {
      name: 'boot_simulator',
      description: 'Boot an iOS simulator by UDID',
      inputSchema: {
        type: 'object',
        properties: {
          udid: { type: 'string', description: 'Simulator UDID to boot' },
        },
        required: ['udid'],
        additionalProperties: false,
      },
    },
  • The 'boot_simulator' tool request is routed to the handler in the switch statement.
    case 'boot_simulator':
      return this.bootSimulator(args.udid as string);

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/xmuweili/app-screen-mcp'

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