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
| 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 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) } ] }; }
- src/tools/watcher-tools.ts:139-141 (schema)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") },
- src/tools/watcher-tools.ts:137-173 (registration)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) } ] }; } );