UNPKG

ntfy-mcp-server

Version:

An MCP (Model Context Protocol) server designed to interact with the ntfy push notification service. It enables LLMs and AI agents to send notifications to your devices with extensive customization options.

31 lines (30 loc) 882 B
export interface McpContent { type: "text"; text: string; } export interface McpToolResponse { content: McpContent[]; isError?: boolean; } export interface ResourceContent { uri: string; text: string; mimeType?: string; } export interface ResourceResponse { contents: ResourceContent[]; } export interface PromptMessageContent { type: "text"; text: string; } export interface PromptMessage { role: "user" | "assistant"; content: PromptMessageContent; } export interface PromptResponse { messages: PromptMessage[]; } export declare const createToolResponse: (text: string, isError?: boolean) => McpToolResponse; export declare const createResourceResponse: (uri: string, text: string, mimeType?: string) => ResourceResponse; export declare const createPromptResponse: (text: string, role?: "user" | "assistant") => PromptResponse;