Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

enable-auto-localize

Automatically localize MCP servers by enabling or disabling this feature to simplify configuration across different environments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enabledYesWhether to enable automatic localization of MCP servers

Implementation Reference

  • 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) } ] }; } );
  • 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) => {
  • 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) } ] }; } );

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/devlimelabs/mcp-env-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server