Skip to main content
Glama

getAllConfigs

Retrieve all current configuration settings from the AutoMobile MCP server for mobile automation testing and execution.

Instructions

Retrieve current configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'getAllConfigs' tool. It retrieves all device and app configurations from the ConfigurationManager singleton and returns them in a standardized JSON response format, handling any errors gracefully.
    async (): Promise<any> => { try { const deviceConfig = ConfigurationManager.getInstance().getDeviceConfigs(); const appConfig = ConfigurationManager.getInstance().getAppConfigs(); const result = { success: true, message: "Retrieved current MCP server configuration", deviceConfig, appConfig }; return createJSONToolResponse(result); } catch (error) { logger.error("Failed to get MCP server configuration:", error); const result = { success: false, message: `Failed to get MCP server configuration: ${error}`, }; return createJSONToolResponse(result); } }
  • The Zod input schema for the 'getAllConfigs' tool, which is empty as the tool requires no input parameters.
    z.object({}),
  • The registration of the 'getAllConfigs' tool using ToolRegistry.register, specifying the tool name, description, schema, and inline handler function.
    ToolRegistry.register( "getAllConfigs", "Retrieve current configuration.", z.object({}), async (): Promise<any> => { try { const deviceConfig = ConfigurationManager.getInstance().getDeviceConfigs(); const appConfig = ConfigurationManager.getInstance().getAppConfigs(); const result = { success: true, message: "Retrieved current MCP server configuration", deviceConfig, appConfig }; return createJSONToolResponse(result); } catch (error) { logger.error("Failed to get MCP server configuration:", error); const result = { success: false, message: `Failed to get MCP server configuration: ${error}`, }; return createJSONToolResponse(result); } } );
  • Helper method in ConfigurationManager that returns an array of all stored DeviceConfig objects.
    public getDeviceConfigs(): DeviceConfig[] { return Array.from(this.deviceSessionConfigs.values()); }
  • Helper method in ConfigurationManager that returns an array of all stored AppConfig objects.
    public getAppConfigs(): AppConfig[] { return Array.from(this.appSourceConfigs.values()); }

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/zillow/auto-mobile'

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