Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

configure-notifications

Enable or disable alerts for new server detection and available updates within the MCP Environment & Installation Manager to streamline server management.

Input Schema

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

Implementation Reference

  • Handler function that updates the notification settings (onNewServerDetected and onUpdateAvailable) in the installation config using configService and returns the updated notifications.
    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) } ] }; }
  • Input schema defining optional boolean parameters for configuring notifications.
    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' tool on the MCP server, including inline schema and handler.
    "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