Skip to main content
Glama

Puppeteer-Extra MCP Server

notificationUtil.ts705 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; // Singleton for managing server reference class NotificationManager { private server: McpServer | null = null; setServer(server: McpServer): void { this.server = server; } /** * Send a resource list changed notification if connected */ resourcesChanged(): void { if (!this.server) return; try { this.server.server.notification({ method: 'notifications/resources/list_changed', }); } catch (error) { console.error('Failed to send resource change notification:', error); } } } // Export singleton instance export const notificationManager = new NotificationManager();

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/gpaul-faldin/MCP_puppeteer_extra'

If you have feedback or need assistance with the MCP directory API, please join our Discord server