Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

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
NameRequiredDescriptionDefault
enabledYesWhether to enable automatic localization of MCP servers

Implementation Reference

  • 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) } ] }; }
  • Input schema for the 'enable-auto-localize' tool, defining an optional 'enabled' boolean parameter with description.
    }, async ({ enabled }, extra) => { const config = configService.getInstallationConfig();
  • 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) } ] }; } );

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