Skip to main content
Glama
itrimble

Moom MCP Server

by itrimble

launch_application

Launch applications to configure Moom window layouts on macOS using natural language commands in Claude Desktop.

Instructions

Launch a specified application for workflow setup

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNameYesName of the application to launch

Implementation Reference

  • The main handler function for the 'launch_application' tool. It executes an AppleScript command to activate (launch if not running) the specified application and returns success or error message.
    async launchApplication(appName) {
      const script = `tell application "${appName}" to activate`;
      
      try {
        await this.runAppleScript(script);
        return {
          content: [{
            type: 'text',
            text: `Successfully launched ${appName}`
          }]
        };
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: `Error launching ${appName}: ${error.message}`
          }]
        };
      }
    }
  • Input schema definition for the 'launch_application' tool, specifying that it requires an 'appName' string parameter.
    name: 'launch_application',
    description: 'Launch a specified application for workflow setup',
    inputSchema: {
      type: 'object',
      properties: {
        appName: {
          type: 'string',
          description: 'Name of the application to launch',
        },
      },
      required: ['appName'],
    },
  • src/index.js:225-226 (registration)
    Registration and dispatch of the 'launch_application' tool in the CallToolRequestHandler switch statement, routing calls to the handler function.
    case 'launch_application':
      return await this.launchApplication(args.appName);

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/itrimble/moom-mcp'

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