@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
29 lines • 1.11 kB
TypeScript
/**
* Telegram Tools — MCP tools for user notification via Telegram
*
* Lets AI agents check if the user has Telegram connected and send them
* notifications for long-running tasks. Agents should check status first,
* then promise "I'll ping you on Telegram when done" if connected.
*/
import { PicaClient } from "@withpica/mcp-sdk";
import { ToolDefinition, ToolExecutor } from "./index.js";
export declare class TelegramTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private getStatus;
private notifyUser;
private connect;
/**
* pica_telegram_config — read the current notification preferences when
* no write fields are given, otherwise apply the single-toggle or
* bulk_config write. Mirrors the retired bespoke assistant's
* handleGetTelegramNotificationConfig / handleConfigureTelegramNotifications
* pair as one action-inferred tool (read-by-default, opt-in write).
*/
private config;
}
//# sourceMappingURL=telegram.d.ts.map