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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/configurationTools.ts:127-148 (handler)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({}),
- src/server/configurationTools.ts:123-149 (registration)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()); }