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.
26 lines (25 loc) • 592 B
JavaScript
// Type definitions for the MCP (Message Control Protocol) protocol
// Helper functions
export const createToolResponse = (text, isError) => ({
content: [{
type: "text",
text
}],
isError
});
export const createResourceResponse = (uri, text, mimeType) => ({
contents: [{
uri,
text,
mimeType
}]
});
export const createPromptResponse = (text, role = "assistant") => ({
messages: [{
role,
content: {
type: "text",
text
}
}]
});