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
| Name | Required | Description | Default |
|---|---|---|---|
| onNewServerDetected | No | Notify when new servers are detected | |
| onUpdateAvailable | No | Notify when updates are available |
Implementation Reference
- src/tools/watcher-tools.ts:142-172 (handler)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) } ] }; }
- src/tools/watcher-tools.ts:138-141 (schema)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") },
- src/tools/watcher-tools.ts:136-173 (registration)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) } ] }; } );