Skip to main content
Glama

systemprompt-mcp-interview

notifications.ts951 B
import { ServerNotification } from "@modelcontextprotocol/sdk/types.js"; import { server } from "../server.js"; export async function sendOperationNotification(operation: string, message: string): Promise<void> { const notification: ServerNotification = { method: "notifications/message", params: { _meta: {}, message: `Operation ${operation}: ${message}`, level: "info", timestamp: new Date().toISOString(), }, }; await sendNotification(notification); } export async function sendJsonResultNotification(message: string): Promise<void> { const notification: ServerNotification = { method: "notifications/message", params: { _meta: {}, message: message, level: "info", timestamp: new Date().toISOString(), }, }; await sendNotification(notification); } async function sendNotification(notification: ServerNotification) { await server.notification(notification); }

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/Ejb503/systemprompt-mcp-interview'

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