Skip to main content
Glama

resetConfig

Restore default configurations in AutoMobile by clearing all saved settings. Ideal for resetting mobile automation environments for clean test execution.

Instructions

Reset to default settings. This will clear all saved configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'resetConfig' MCP tool using ToolRegistry.register, including inline empty input schema z.object({}), description, and the handler function.
    ToolRegistry.register( "resetConfig", "Reset to default settings. This will clear all saved configuration.", z.object({}), async (): Promise<any> => { try { logger.info("Resetting MCP server configuration to defaults"); await ConfigurationManager.getInstance().resetServerConfig(); const result = { success: true, message: "MCP server configuration reset to defaults", }; return createJSONToolResponse(result); } catch (error) { logger.error("Failed to reset MCP server configuration:", error); const result = { success: false, message: `Failed to reset MCP server configuration: ${error}` }; return createJSONToolResponse(result); } } );
  • The handler function for the resetConfig tool, which logs the action, calls ConfigurationManager.resetServerConfig(), and returns a JSON response.
    async (): Promise<any> => { try { logger.info("Resetting MCP server configuration to defaults"); await ConfigurationManager.getInstance().resetServerConfig(); const result = { success: true, message: "MCP server configuration reset to defaults", }; return createJSONToolResponse(result); } catch (error) { logger.error("Failed to reset MCP server configuration:", error); const result = { success: false, message: `Failed to reset MCP server configuration: ${error}` }; return createJSONToolResponse(result); } } );
  • Helper method in ConfigurationManager that performs the actual reset by clearing device and app configs maps and saving to disk.
    public async resetServerConfig(): Promise<void> { this.deviceSessionConfigs.clear(); this.appSourceConfigs.clear(); await this.saveToDisk(); }

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