getAllConfigs
Retrieve the current configuration settings from the AutoMobile MCP server to manage and automate mobile testing workflows effectively.
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 that retrieves and returns current device and app configurations from the ConfigurationManager.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); } }
- src/server/configurationTools.ts:124-149 (registration)Registration of the 'getAllConfigs' tool in ToolRegistry within the registerConfigurationTools function, including schema (empty object) and inline handler."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); } } );
- src/server/index.ts:32-32 (registration)Invocation of registerConfigurationTools() during MCP server creation, which triggers the registration of getAllConfigs and other configuration tools.registerConfigurationTools();
- Input schema for getAllConfigs tool, which takes no parameters (empty object).z.object({}),