@node2flow/telegram-bot-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tools.js ADDED
@@ -0,0 +1,531 @@
1
+ /**
2
+ * Telegram Bot API - MCP Tool Definitions (27 tools)
3
+ */
4
+ export const TOOLS = [
5
+ // ========== Bot Info (2) ==========
6
+ {
7
+ name: 'tg_get_me',
8
+ description: 'Get basic information about the bot: id, username, first_name, can_join_groups, can_read_all_group_messages, supports_inline_queries.',
9
+ inputSchema: {
10
+ type: 'object',
11
+ properties: {},
12
+ },
13
+ },
14
+ {
15
+ name: 'tg_set_my_commands',
16
+ description: 'Set the list of bot commands shown in the Telegram chat menu. Each command has a "command" (1-32 chars, lowercase a-z, 0-9, _) and a "description" (1-256 chars). Max 100 commands.',
17
+ inputSchema: {
18
+ type: 'object',
19
+ properties: {
20
+ commands: {
21
+ type: 'array',
22
+ items: {
23
+ type: 'object',
24
+ properties: {
25
+ command: { type: 'string', description: 'Command text without leading /' },
26
+ description: { type: 'string', description: 'Description of the command' },
27
+ },
28
+ required: ['command', 'description'],
29
+ },
30
+ description: 'Array of BotCommand objects',
31
+ },
32
+ scope: {
33
+ type: 'object',
34
+ description: 'Optional scope e.g. {"type":"all_private_chats"}',
35
+ },
36
+ language_code: {
37
+ type: 'string',
38
+ description: 'Two-letter ISO 639-1 language code',
39
+ },
40
+ },
41
+ required: ['commands'],
42
+ },
43
+ },
44
+ // ========== Send Messages (8) ==========
45
+ {
46
+ name: 'tg_send_message',
47
+ description: 'Send a text message to a chat. Supports Markdown, MarkdownV2, and HTML formatting. Can include inline keyboards via reply_markup.',
48
+ inputSchema: {
49
+ type: 'object',
50
+ properties: {
51
+ chat_id: {
52
+ type: 'string',
53
+ description: 'Chat ID (number) or @channel_username',
54
+ },
55
+ text: {
56
+ type: 'string',
57
+ description: 'Message text (1-4096 characters)',
58
+ },
59
+ parse_mode: {
60
+ type: 'string',
61
+ description: '"Markdown", "MarkdownV2", or "HTML"',
62
+ },
63
+ reply_markup: {
64
+ type: 'object',
65
+ description: 'InlineKeyboardMarkup, ReplyKeyboardMarkup, etc.',
66
+ },
67
+ reply_to_message_id: {
68
+ type: 'number',
69
+ description: 'Message ID to reply to',
70
+ },
71
+ disable_notification: {
72
+ type: 'boolean',
73
+ description: 'Send silently (no notification sound)',
74
+ },
75
+ protect_content: {
76
+ type: 'boolean',
77
+ description: 'Prevent message from being forwarded/saved',
78
+ },
79
+ },
80
+ required: ['chat_id', 'text'],
81
+ },
82
+ },
83
+ {
84
+ name: 'tg_send_photo',
85
+ description: 'Send a photo to a chat. Provide a URL or file_id from a previously uploaded photo.',
86
+ inputSchema: {
87
+ type: 'object',
88
+ properties: {
89
+ chat_id: {
90
+ type: 'string',
91
+ description: 'Chat ID or @channel_username',
92
+ },
93
+ photo: {
94
+ type: 'string',
95
+ description: 'Photo URL or file_id',
96
+ },
97
+ caption: {
98
+ type: 'string',
99
+ description: 'Photo caption (0-1024 characters)',
100
+ },
101
+ parse_mode: {
102
+ type: 'string',
103
+ description: 'Caption parse mode',
104
+ },
105
+ reply_markup: {
106
+ type: 'object',
107
+ description: 'Optional reply markup',
108
+ },
109
+ reply_to_message_id: {
110
+ type: 'number',
111
+ description: 'Message ID to reply to',
112
+ },
113
+ },
114
+ required: ['chat_id', 'photo'],
115
+ },
116
+ },
117
+ {
118
+ name: 'tg_send_document',
119
+ description: 'Send a document/file to a chat. Provide a URL or file_id. Max 50MB for bots.',
120
+ inputSchema: {
121
+ type: 'object',
122
+ properties: {
123
+ chat_id: {
124
+ type: 'string',
125
+ description: 'Chat ID or @channel_username',
126
+ },
127
+ document: {
128
+ type: 'string',
129
+ description: 'Document URL or file_id',
130
+ },
131
+ caption: {
132
+ type: 'string',
133
+ description: 'Document caption (0-1024 characters)',
134
+ },
135
+ parse_mode: {
136
+ type: 'string',
137
+ description: 'Caption parse mode',
138
+ },
139
+ reply_markup: {
140
+ type: 'object',
141
+ description: 'Optional reply markup',
142
+ },
143
+ },
144
+ required: ['chat_id', 'document'],
145
+ },
146
+ },
147
+ {
148
+ name: 'tg_send_video',
149
+ description: 'Send a video to a chat. Provide a URL or file_id. Supports MPEG4 format, max 50MB.',
150
+ inputSchema: {
151
+ type: 'object',
152
+ properties: {
153
+ chat_id: {
154
+ type: 'string',
155
+ description: 'Chat ID or @channel_username',
156
+ },
157
+ video: {
158
+ type: 'string',
159
+ description: 'Video URL or file_id',
160
+ },
161
+ caption: {
162
+ type: 'string',
163
+ description: 'Video caption',
164
+ },
165
+ parse_mode: {
166
+ type: 'string',
167
+ description: 'Caption parse mode',
168
+ },
169
+ duration: {
170
+ type: 'number',
171
+ description: 'Duration in seconds',
172
+ },
173
+ width: {
174
+ type: 'number',
175
+ description: 'Video width',
176
+ },
177
+ height: {
178
+ type: 'number',
179
+ description: 'Video height',
180
+ },
181
+ },
182
+ required: ['chat_id', 'video'],
183
+ },
184
+ },
185
+ {
186
+ name: 'tg_send_audio',
187
+ description: 'Send an audio file to a chat. Displayed as a music player. Provide a URL or file_id. Max 50MB, MP3/M4A format.',
188
+ inputSchema: {
189
+ type: 'object',
190
+ properties: {
191
+ chat_id: {
192
+ type: 'string',
193
+ description: 'Chat ID or @channel_username',
194
+ },
195
+ audio: {
196
+ type: 'string',
197
+ description: 'Audio URL or file_id',
198
+ },
199
+ caption: {
200
+ type: 'string',
201
+ description: 'Audio caption',
202
+ },
203
+ parse_mode: {
204
+ type: 'string',
205
+ description: 'Caption parse mode',
206
+ },
207
+ duration: {
208
+ type: 'number',
209
+ description: 'Duration in seconds',
210
+ },
211
+ performer: {
212
+ type: 'string',
213
+ description: 'Performer name',
214
+ },
215
+ title: {
216
+ type: 'string',
217
+ description: 'Track name',
218
+ },
219
+ },
220
+ required: ['chat_id', 'audio'],
221
+ },
222
+ },
223
+ {
224
+ name: 'tg_send_location',
225
+ description: 'Send a geographic location point to a chat.',
226
+ inputSchema: {
227
+ type: 'object',
228
+ properties: {
229
+ chat_id: {
230
+ type: 'string',
231
+ description: 'Chat ID or @channel_username',
232
+ },
233
+ latitude: {
234
+ type: 'number',
235
+ description: 'Latitude (-90 to 90)',
236
+ },
237
+ longitude: {
238
+ type: 'number',
239
+ description: 'Longitude (-180 to 180)',
240
+ },
241
+ reply_markup: {
242
+ type: 'object',
243
+ description: 'Optional reply markup',
244
+ },
245
+ },
246
+ required: ['chat_id', 'latitude', 'longitude'],
247
+ },
248
+ },
249
+ {
250
+ name: 'tg_send_poll',
251
+ description: 'Send a poll to a chat. Supports regular polls and quiz mode. For quiz mode, set type to "quiz" and provide correct_option_id.',
252
+ inputSchema: {
253
+ type: 'object',
254
+ properties: {
255
+ chat_id: {
256
+ type: 'string',
257
+ description: 'Chat ID or @channel_username',
258
+ },
259
+ question: {
260
+ type: 'string',
261
+ description: 'Poll question (1-300 characters)',
262
+ },
263
+ options: {
264
+ type: 'array',
265
+ items: { type: 'string' },
266
+ description: 'Answer options (2-10 strings, each 1-100 chars)',
267
+ },
268
+ is_anonymous: {
269
+ type: 'boolean',
270
+ description: 'Anonymous poll (default: true)',
271
+ },
272
+ type: {
273
+ type: 'string',
274
+ description: '"regular" or "quiz"',
275
+ },
276
+ correct_option_id: {
277
+ type: 'number',
278
+ description: 'Required for quiz: 0-based index of correct answer',
279
+ },
280
+ allows_multiple_answers: {
281
+ type: 'boolean',
282
+ description: 'Allow multiple answers (regular polls only)',
283
+ },
284
+ },
285
+ required: ['chat_id', 'question', 'options'],
286
+ },
287
+ },
288
+ {
289
+ name: 'tg_send_contact',
290
+ description: 'Send a phone contact card to a chat.',
291
+ inputSchema: {
292
+ type: 'object',
293
+ properties: {
294
+ chat_id: {
295
+ type: 'string',
296
+ description: 'Chat ID or @channel_username',
297
+ },
298
+ phone_number: {
299
+ type: 'string',
300
+ description: 'Contact phone number',
301
+ },
302
+ first_name: {
303
+ type: 'string',
304
+ description: 'Contact first name',
305
+ },
306
+ last_name: {
307
+ type: 'string',
308
+ description: 'Contact last name',
309
+ },
310
+ },
311
+ required: ['chat_id', 'phone_number', 'first_name'],
312
+ },
313
+ },
314
+ // ========== Edit/Delete Messages (3) ==========
315
+ {
316
+ name: 'tg_edit_message_text',
317
+ description: 'Edit the text of a previously sent message. The bot must be the author of the message.',
318
+ inputSchema: {
319
+ type: 'object',
320
+ properties: {
321
+ chat_id: { type: 'string', description: 'Chat ID' },
322
+ message_id: { type: 'number', description: 'Message ID to edit' },
323
+ text: { type: 'string', description: 'New text (1-4096 characters)' },
324
+ parse_mode: { type: 'string', description: 'Parse mode for new text' },
325
+ reply_markup: { type: 'object', description: 'New inline keyboard markup' },
326
+ },
327
+ required: ['chat_id', 'message_id', 'text'],
328
+ },
329
+ },
330
+ {
331
+ name: 'tg_edit_message_caption',
332
+ description: 'Edit the caption of a previously sent media message (photo, video, document, audio).',
333
+ inputSchema: {
334
+ type: 'object',
335
+ properties: {
336
+ chat_id: { type: 'string', description: 'Chat ID' },
337
+ message_id: { type: 'number', description: 'Message ID to edit' },
338
+ caption: { type: 'string', description: 'New caption (0-1024 characters)' },
339
+ parse_mode: { type: 'string', description: 'Parse mode for caption' },
340
+ reply_markup: { type: 'object', description: 'New inline keyboard markup' },
341
+ },
342
+ required: ['chat_id', 'message_id'],
343
+ },
344
+ },
345
+ {
346
+ name: 'tg_delete_message',
347
+ description: 'Delete a message. Bot must have delete permission in group chats. Messages older than 48 hours cannot be deleted.',
348
+ inputSchema: {
349
+ type: 'object',
350
+ properties: {
351
+ chat_id: { type: 'string', description: 'Chat ID' },
352
+ message_id: { type: 'number', description: 'Message ID to delete' },
353
+ },
354
+ required: ['chat_id', 'message_id'],
355
+ },
356
+ },
357
+ // ========== Chat Management (5) ==========
358
+ {
359
+ name: 'tg_get_chat',
360
+ description: 'Get detailed information about a chat: title, description, type, member count, permissions, pinned message, etc.',
361
+ inputSchema: {
362
+ type: 'object',
363
+ properties: {
364
+ chat_id: { type: 'string', description: 'Chat ID or @channel_username' },
365
+ },
366
+ required: ['chat_id'],
367
+ },
368
+ },
369
+ {
370
+ name: 'tg_get_chat_member_count',
371
+ description: 'Get the number of members in a chat.',
372
+ inputSchema: {
373
+ type: 'object',
374
+ properties: {
375
+ chat_id: { type: 'string', description: 'Chat ID or @channel_username' },
376
+ },
377
+ required: ['chat_id'],
378
+ },
379
+ },
380
+ {
381
+ name: 'tg_get_chat_member',
382
+ description: 'Get information about a specific member: status (creator, administrator, member, restricted, left, kicked), permissions, and custom title.',
383
+ inputSchema: {
384
+ type: 'object',
385
+ properties: {
386
+ chat_id: { type: 'string', description: 'Chat ID or @channel_username' },
387
+ user_id: { type: 'number', description: 'Telegram user ID' },
388
+ },
389
+ required: ['chat_id', 'user_id'],
390
+ },
391
+ },
392
+ {
393
+ name: 'tg_ban_chat_member',
394
+ description: 'Ban a user from a group, supergroup, or channel. The user will be unable to return unless unbanned. Bot must be admin with ban permission.',
395
+ inputSchema: {
396
+ type: 'object',
397
+ properties: {
398
+ chat_id: { type: 'string', description: 'Chat ID' },
399
+ user_id: { type: 'number', description: 'User ID to ban' },
400
+ until_date: { type: 'number', description: 'Unix timestamp for ban expiry (0 or omit for permanent)' },
401
+ revoke_messages: { type: 'boolean', description: 'Delete all messages from this user in the chat' },
402
+ },
403
+ required: ['chat_id', 'user_id'],
404
+ },
405
+ },
406
+ {
407
+ name: 'tg_unban_chat_member',
408
+ description: 'Unban a previously banned user. The user is NOT added back automatically and must rejoin via invite link.',
409
+ inputSchema: {
410
+ type: 'object',
411
+ properties: {
412
+ chat_id: { type: 'string', description: 'Chat ID' },
413
+ user_id: { type: 'number', description: 'User ID to unban' },
414
+ only_if_banned: { type: 'boolean', description: 'Only unban if currently banned (default: false)' },
415
+ },
416
+ required: ['chat_id', 'user_id'],
417
+ },
418
+ },
419
+ // ========== Webhooks (3) ==========
420
+ {
421
+ name: 'tg_set_webhook',
422
+ description: 'Set a webhook URL for receiving Telegram updates. Telegram sends POST requests with JSON Update objects to this URL. Supported ports: 443, 80, 88, 8443.',
423
+ inputSchema: {
424
+ type: 'object',
425
+ properties: {
426
+ url: { type: 'string', description: 'HTTPS URL for receiving updates' },
427
+ max_connections: { type: 'number', description: 'Max simultaneous connections (1-100, default 40)' },
428
+ allowed_updates: { type: 'array', items: { type: 'string' }, description: 'Update types to receive, e.g. ["message","callback_query"]' },
429
+ secret_token: { type: 'string', description: 'Secret token for X-Telegram-Bot-Api-Secret-Token header (1-256 chars)' },
430
+ },
431
+ required: ['url'],
432
+ },
433
+ },
434
+ {
435
+ name: 'tg_delete_webhook',
436
+ description: 'Remove the webhook integration. After this, you can use getUpdates for polling.',
437
+ inputSchema: {
438
+ type: 'object',
439
+ properties: {
440
+ drop_pending_updates: { type: 'boolean', description: 'Drop all pending updates' },
441
+ },
442
+ },
443
+ },
444
+ {
445
+ name: 'tg_get_webhook_info',
446
+ description: 'Get current webhook status: URL, pending update count, last error date/message, max connections, and allowed update types.',
447
+ inputSchema: {
448
+ type: 'object',
449
+ properties: {},
450
+ },
451
+ },
452
+ // ========== Callbacks & Files (3) ==========
453
+ {
454
+ name: 'tg_answer_callback_query',
455
+ description: 'Answer a callback query from an inline keyboard button press. Must be called to stop the loading indicator on the button.',
456
+ inputSchema: {
457
+ type: 'object',
458
+ properties: {
459
+ callback_query_id: { type: 'string', description: 'Callback query ID from the update' },
460
+ text: { type: 'string', description: 'Notification text (0-200 chars)' },
461
+ show_alert: { type: 'boolean', description: 'Show as alert popup instead of notification at top' },
462
+ },
463
+ required: ['callback_query_id'],
464
+ },
465
+ },
466
+ {
467
+ name: 'tg_get_file',
468
+ description: 'Get file info and download URL. Returns file_id, file_size, file_path, and a ready-to-use download_url. Files up to 20MB.',
469
+ inputSchema: {
470
+ type: 'object',
471
+ properties: {
472
+ file_id: { type: 'string', description: 'File identifier from a message' },
473
+ },
474
+ required: ['file_id'],
475
+ },
476
+ },
477
+ {
478
+ name: 'tg_get_user_profile_photos',
479
+ description: 'Get a list of profile photos for a user.',
480
+ inputSchema: {
481
+ type: 'object',
482
+ properties: {
483
+ user_id: { type: 'number', description: 'Telegram user ID' },
484
+ offset: { type: 'number', description: 'Photo offset for pagination' },
485
+ limit: { type: 'number', description: 'Max photos to return (1-100, default 100)' },
486
+ },
487
+ required: ['user_id'],
488
+ },
489
+ },
490
+ // ========== Pins & Invite Links (3) ==========
491
+ {
492
+ name: 'tg_pin_chat_message',
493
+ description: 'Pin a message in a chat. Bot must have pin_messages admin permission in groups/supergroups.',
494
+ inputSchema: {
495
+ type: 'object',
496
+ properties: {
497
+ chat_id: { type: 'string', description: 'Chat ID' },
498
+ message_id: { type: 'number', description: 'Message ID to pin' },
499
+ disable_notification: { type: 'boolean', description: 'Pin silently (no notification)' },
500
+ },
501
+ required: ['chat_id', 'message_id'],
502
+ },
503
+ },
504
+ {
505
+ name: 'tg_unpin_chat_message',
506
+ description: 'Unpin a message in a chat. If message_id is not provided, unpins the most recent pinned message.',
507
+ inputSchema: {
508
+ type: 'object',
509
+ properties: {
510
+ chat_id: { type: 'string', description: 'Chat ID' },
511
+ message_id: { type: 'number', description: 'Message ID to unpin (omit to unpin latest)' },
512
+ },
513
+ required: ['chat_id'],
514
+ },
515
+ },
516
+ {
517
+ name: 'tg_create_chat_invite_link',
518
+ description: 'Create an additional invite link for a chat. Bot must be admin with invite_users permission.',
519
+ inputSchema: {
520
+ type: 'object',
521
+ properties: {
522
+ chat_id: { type: 'string', description: 'Chat ID' },
523
+ name: { type: 'string', description: 'Invite link name (0-32 chars)' },
524
+ expire_date: { type: 'number', description: 'Unix timestamp when the link expires' },
525
+ member_limit: { type: 'number', description: 'Max users that can join via this link (1-99999)' },
526
+ },
527
+ required: ['chat_id'],
528
+ },
529
+ },
530
+ ];
531
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,MAAM,CAAC,MAAM,KAAK,GAAwB;IACxC,qCAAqC;IACrC;QACE,IAAI,EAAE,WAAW;QACjB,WAAW,EACT,uI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CAAC"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Telegram Bot API - Type Definitions
3
+ */
4
+ export interface TelegramConfig {
5
+ botToken: string;
6
+ }
7
+ export interface TelegramUser {
8
+ id: number;
9
+ is_bot: boolean;
10
+ first_name: string;
11
+ last_name?: string;
12
+ username?: string;
13
+ language_code?: string;
14
+ can_join_groups?: boolean;
15
+ can_read_all_group_messages?: boolean;
16
+ supports_inline_queries?: boolean;
17
+ }
18
+ export interface TelegramChat {
19
+ id: number;
20
+ type: 'private' | 'group' | 'supergroup' | 'channel';
21
+ title?: string;
22
+ username?: string;
23
+ first_name?: string;
24
+ description?: string;
25
+ [key: string]: unknown;
26
+ }
27
+ export interface TelegramMessage {
28
+ message_id: number;
29
+ from?: TelegramUser;
30
+ chat: TelegramChat;
31
+ date: number;
32
+ text?: string;
33
+ [key: string]: unknown;
34
+ }
35
+ export interface TelegramChatMember {
36
+ user: TelegramUser;
37
+ status: 'creator' | 'administrator' | 'member' | 'restricted' | 'left' | 'kicked';
38
+ [key: string]: unknown;
39
+ }
40
+ export interface TelegramFile {
41
+ file_id: string;
42
+ file_unique_id: string;
43
+ file_size?: number;
44
+ file_path?: string;
45
+ }
46
+ export interface TelegramUserProfilePhotos {
47
+ total_count: number;
48
+ photos: Array<Array<{
49
+ file_id: string;
50
+ file_unique_id: string;
51
+ width: number;
52
+ height: number;
53
+ }>>;
54
+ }
55
+ export interface TelegramWebhookInfo {
56
+ url: string;
57
+ has_custom_certificate: boolean;
58
+ pending_update_count: number;
59
+ last_error_date?: number;
60
+ last_error_message?: string;
61
+ max_connections?: number;
62
+ allowed_updates?: string[];
63
+ }
64
+ export interface TelegramChatInviteLink {
65
+ invite_link: string;
66
+ creator: TelegramUser;
67
+ creates_join_request: boolean;
68
+ is_primary: boolean;
69
+ is_revoked: boolean;
70
+ name?: string;
71
+ expire_date?: number;
72
+ member_limit?: number;
73
+ }
74
+ export interface TelegramBotCommand {
75
+ command: string;
76
+ description: string;
77
+ }
78
+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L=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Cloudflare Worker entry — Stateless Streamable HTTP MCP
3
+ *
4
+ * Each request creates a new transport + server (CF Workers can't share memory between isolates).
5
+ */
6
+ declare const _default: {
7
+ fetch(request: Request): Promise<Response>;
8
+ };
9
+ export default _default;
10
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;mBA+BoB,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;;AADlD,wBAsDE"}