enable-auto-localize
Enable automatic localization of MCP servers to manage environment variables, profiles, and package installations efficiently within the MCP Environment & Installation Manager.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | Whether to enable automatic localization of MCP servers |
Implementation Reference
- src/tools/watcher-tools.ts:111-132 (handler)The core handler function for the 'enable-auto-localize' tool. It updates the packageManager.autoLocalize setting in the installation configuration based on the provided 'enabled' boolean parameter and returns a success response with the updated value.const updates = { packageManager: { ...config.packageManager, autoLocalize: enabled } }; const updatedConfig = await configService.updateInstallationConfig(updates); return { content: [ { type: "text", text: JSON.stringify({ success: true, autoLocalize: updatedConfig.packageManager.autoLocalize }, null, 2) } ] }; }
- src/tools/watcher-tools.ts:108-110 (schema)Input schema for the 'enable-auto-localize' tool, defining an optional 'enabled' boolean parameter with description.}, async ({ enabled }, extra) => { const config = configService.getInstallationConfig();
- src/tools/watcher-tools.ts:106-133 (registration)Registration of the 'enable-auto-localize' tool on the MCP server within the registerWatcherTools function.{ enabled: z.boolean().describe("Whether to enable automatic localization of MCP servers") }, async ({ enabled }, extra) => { const config = configService.getInstallationConfig(); const updates = { packageManager: { ...config.packageManager, autoLocalize: enabled } }; const updatedConfig = await configService.updateInstallationConfig(updates); return { content: [ { type: "text", text: JSON.stringify({ success: true, autoLocalize: updatedConfig.packageManager.autoLocalize }, null, 2) } ] }; } );