Skip to main content
Glama

Todo MCP Server

notification.ts471 B
import type { TodoItem } from "@/types"; export async function sendNotification(webhookUrl: string, todo: TodoItem): Promise<void> { const payload = { content: `Task deadline approaching!`, data: todo, }; const response = await fetch(webhookUrl, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(payload), }); if (!response.ok) { throw new Error(`Failed to send notification: ${response.statusText}`); } }

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/mrgoonie/todo-mcp'

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