Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

configure-notifications

Set up notification preferences for the MCP Environment & Installation Manager to receive alerts about new server detection and available updates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
onNewServerDetectedNoNotify when new servers are detected
onUpdateAvailableNoNotify when updates are available

Implementation Reference

  • Handler function for the 'configure-notifications' tool. Updates notification settings (onNewServerDetected, onUpdateAvailable) in the installation config using configService and returns the updated notifications configuration.
    async ({ onNewServerDetected, onUpdateAvailable }, extra) => {
      const config = configService.getInstallationConfig();
      
      const updates = {
        notifications: {
          ...config.notifications
        }
      };
      
      if (onNewServerDetected !== undefined) {
        updates.notifications.onNewServerDetected = onNewServerDetected;
      }
      
      if (onUpdateAvailable !== undefined) {
        updates.notifications.onUpdateAvailable = onUpdateAvailable;
      }
      
      const updatedConfig = await configService.updateInstallationConfig(updates);
      
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify({
              success: true,
              notifications: updatedConfig.notifications
            }, null, 2)
          }
        ]
      };
    }
  • Zod input schema defining optional boolean parameters for notification settings.
    {
      onNewServerDetected: z.boolean().optional().describe("Notify when new servers are detected"),
      onUpdateAvailable: z.boolean().optional().describe("Notify when updates are available")
    },
  • Registration of the 'configure-notifications' MCP tool, including schema and inline handler implementation.
    server.tool(
      "configure-notifications",
      {
        onNewServerDetected: z.boolean().optional().describe("Notify when new servers are detected"),
        onUpdateAvailable: z.boolean().optional().describe("Notify when updates are available")
      },
      async ({ onNewServerDetected, onUpdateAvailable }, extra) => {
        const config = configService.getInstallationConfig();
        
        const updates = {
          notifications: {
            ...config.notifications
          }
        };
        
        if (onNewServerDetected !== undefined) {
          updates.notifications.onNewServerDetected = onNewServerDetected;
        }
        
        if (onUpdateAvailable !== undefined) {
          updates.notifications.onUpdateAvailable = onUpdateAvailable;
        }
        
        const updatedConfig = await configService.updateInstallationConfig(updates);
        
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                success: true,
                notifications: updatedConfig.notifications
              }, 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