enable-auto-localize
Automatically localize MCP servers by enabling or disabling this feature to simplify configuration across different environments.
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:110-133 (handler)Handler function that updates the package manager configuration to enable or disable automatic localization of MCP servers and returns a success response with the updated setting.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) } ] }; } );
- src/tools/watcher-tools.ts:107-109 (schema)Input schema defining the 'enabled' boolean parameter for the enable-auto-localize tool.enabled: z.boolean().describe("Whether to enable automatic localization of MCP servers") }, async ({ enabled }, extra) => {
- src/tools/watcher-tools.ts:105-134 (registration)Registration of the 'enable-auto-localize' tool on the MCP server within the registerWatcherTools function."enable-auto-localize", { 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) } ] }; } );