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.
38 lines (37 loc) • 1.28 kB
TypeScript
/**
* Constants for the ntfy service
*/
/** Default ntfy server URL */
export declare const DEFAULT_NTFY_BASE_URL = "https://ntfy.sh";
/** HTTP subscription format endpoints */
export declare const SUBSCRIPTION_ENDPOINTS: {
json: string;
sse: string;
raw: string;
ws: string;
};
/** Default subscription options */
export declare const DEFAULT_SUBSCRIPTION_OPTIONS: {
baseUrl: string;
poll: boolean;
scheduled: boolean;
};
/** Default HTTP request timeout in milliseconds */
export declare const DEFAULT_REQUEST_TIMEOUT = 30000;
/** Keepalive timeout in milliseconds (how long to wait before considering connection dead) */
export declare const KEEPALIVE_TIMEOUT = 120000;
/** Reconnect delay in milliseconds (delay before attempting to reconnect after failure) */
export declare const RECONNECT_DELAY = 5000;
/** Maximum reconnect attempts before giving up */
export declare const MAX_RECONNECT_ATTEMPTS = 5;
/** User agent string for requests */
export declare const USER_AGENT = "ntfy-mcp-server/1.0.0";
/** Error messages */
export declare const ERROR_MESSAGES: {
INVALID_TOPIC: string;
CONNECTION_FAILED: string;
SUBSCRIPTION_CLOSED: string;
PARSE_ERROR: string;
NETWORK_ERROR: string;
AUTHENTICATION_FAILED: string;
};