remote-copilot-mcp 1.0.2 → 1.0.4
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/index.js +47 -14
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -16,13 +16,46 @@
|
|
|
16
16
|
* and instructing the agent to call the tool again
|
|
17
17
|
* (default: 30).
|
|
18
18
|
*/
|
|
19
|
-
import { createRequire } from "module";
|
|
20
19
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
21
20
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
22
21
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
22
|
+
import { createRequire } from "module";
|
|
23
23
|
import { TelegramClient } from "./telegram.js";
|
|
24
24
|
const _require = createRequire(import.meta.url);
|
|
25
25
|
const { version: PKG_VERSION } = _require("../package.json");
|
|
26
|
+
const telegramifyMarkdown = _require("telegramify-markdown");
|
|
27
|
+
/**
|
|
28
|
+
* Convert standard Markdown to Telegram MarkdownV2.
|
|
29
|
+
*
|
|
30
|
+
* telegramify-markdown has a bug where fenced code blocks are converted to
|
|
31
|
+
* single-backtick inline code instead of triple-backtick blocks. We work
|
|
32
|
+
* around it by:
|
|
33
|
+
* 1. Extracting all fenced code blocks and replacing them with placeholder
|
|
34
|
+
* tokens before calling the library.
|
|
35
|
+
* 2. Letting the library handle everything else (headings, bold/italic,
|
|
36
|
+
* lists, special-char escaping).
|
|
37
|
+
* 3. Re-inserting each code block in proper MarkdownV2 triple-backtick
|
|
38
|
+
* format, escaping only `\` and backtick inside the code content.
|
|
39
|
+
*/
|
|
40
|
+
function convertMarkdown(markdown) {
|
|
41
|
+
const blocks = [];
|
|
42
|
+
const placeholder = (i) => `CODEBLOCKPLACEHOLDER${i}END`;
|
|
43
|
+
// Extract fenced code blocks (``` ... ```).
|
|
44
|
+
const stripped = markdown.replace(/^```(\w*)\n([\s\S]*?)\n?```\s*$/gm, (_match, lang, code) => {
|
|
45
|
+
blocks.push({ lang, code });
|
|
46
|
+
return placeholder(blocks.length - 1);
|
|
47
|
+
});
|
|
48
|
+
// Convert the rest with telegramify-markdown.
|
|
49
|
+
let converted = telegramifyMarkdown(stripped, "escape");
|
|
50
|
+
// Re-insert code blocks in MarkdownV2 format.
|
|
51
|
+
// Inside pre/code blocks only `\` and `` ` `` need escaping.
|
|
52
|
+
converted = converted.replace(/CODEBLOCKPLACEHOLDER(\d+)END/g, (_m, idx) => {
|
|
53
|
+
const { lang, code } = blocks[parseInt(idx, 10)];
|
|
54
|
+
const escaped = code.replace(/\\/g, "\\\\").replace(/`/g, "\\`");
|
|
55
|
+
return `\`\`\`${lang}\n${escaped}\n\`\`\``;
|
|
56
|
+
});
|
|
57
|
+
return converted;
|
|
58
|
+
}
|
|
26
59
|
// ---------------------------------------------------------------------------
|
|
27
60
|
// Configuration
|
|
28
61
|
// ---------------------------------------------------------------------------
|
|
@@ -94,15 +127,14 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
|
94
127
|
{
|
|
95
128
|
name: "report_progress",
|
|
96
129
|
description: "Send a progress update or result message to the operator via Telegram. " +
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"when they appear as literal text: _ * [ ] ( ) ~ ` > # + - = | { } . !",
|
|
130
|
+
"Use standard Markdown for formatting (headings, bold, italic, lists, code blocks, etc.). " +
|
|
131
|
+
"It will be automatically converted to Telegram-compatible formatting.",
|
|
100
132
|
inputSchema: {
|
|
101
133
|
type: "object",
|
|
102
134
|
properties: {
|
|
103
135
|
message: {
|
|
104
136
|
type: "string",
|
|
105
|
-
description: "The progress update or result to report
|
|
137
|
+
description: "The progress update or result to report. Use standard Markdown for formatting.",
|
|
106
138
|
},
|
|
107
139
|
},
|
|
108
140
|
required: ["message"],
|
|
@@ -119,7 +151,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
119
151
|
content: [
|
|
120
152
|
{
|
|
121
153
|
type: "text",
|
|
122
|
-
text: "Call the remote_copilot_wait_for_instructions tool",
|
|
154
|
+
text: "Call report_progress. Greet the user and tell that remote Copilot session started. Call the remote_copilot_wait_for_instructions tool next.",
|
|
123
155
|
},
|
|
124
156
|
],
|
|
125
157
|
};
|
|
@@ -194,10 +226,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
194
226
|
}
|
|
195
227
|
// ── report_progress ───────────────────────────────────────────────────────
|
|
196
228
|
if (name === "report_progress") {
|
|
197
|
-
const
|
|
229
|
+
const rawMessage = typeof args?.message === "string"
|
|
198
230
|
? args.message
|
|
199
231
|
: "";
|
|
200
|
-
if (!
|
|
232
|
+
if (!rawMessage) {
|
|
201
233
|
return {
|
|
202
234
|
content: [
|
|
203
235
|
{
|
|
@@ -208,6 +240,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
208
240
|
isError: true,
|
|
209
241
|
};
|
|
210
242
|
}
|
|
243
|
+
// Convert standard Markdown to Telegram MarkdownV2 (handles headings,
|
|
244
|
+
// lists, bold/italic, code blocks, and special-character escaping).
|
|
245
|
+
const message = convertMarkdown(rawMessage);
|
|
211
246
|
let sentAsPlainText = false;
|
|
212
247
|
try {
|
|
213
248
|
await telegram.sendMessage(TELEGRAM_CHAT_ID, message, "MarkdownV2");
|
|
@@ -215,11 +250,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
215
250
|
catch (error) {
|
|
216
251
|
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
217
252
|
// If Telegram rejected the message due to a MarkdownV2 parse error,
|
|
218
|
-
// retry
|
|
253
|
+
// retry as plain text using the original un-converted message.
|
|
219
254
|
const isParseError = errorMsg.includes("can't parse entities");
|
|
220
255
|
if (isParseError) {
|
|
221
256
|
try {
|
|
222
|
-
await telegram.sendMessage(TELEGRAM_CHAT_ID,
|
|
257
|
+
await telegram.sendMessage(TELEGRAM_CHAT_ID, rawMessage);
|
|
223
258
|
sentAsPlainText = true;
|
|
224
259
|
}
|
|
225
260
|
catch (retryError) {
|
|
@@ -245,9 +280,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
245
280
|
{
|
|
246
281
|
type: "text",
|
|
247
282
|
text: "Error: Failed to send progress update to Telegram. " +
|
|
248
|
-
"
|
|
249
|
-
"ensure they are escaped with a preceding backslash. " +
|
|
250
|
-
"Otherwise, check the Telegram configuration and try again.",
|
|
283
|
+
"Check the Telegram configuration and try again.",
|
|
251
284
|
},
|
|
252
285
|
],
|
|
253
286
|
isError: true,
|
|
@@ -272,7 +305,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
272
305
|
// remote_copilot_wait_for_instructions call.
|
|
273
306
|
}
|
|
274
307
|
const baseStatus = sentAsPlainText
|
|
275
|
-
? "Progress reported successfully (as plain text —
|
|
308
|
+
? "Progress reported successfully (as plain text — formatting could not be applied)."
|
|
276
309
|
: "Progress reported successfully.";
|
|
277
310
|
const responseText = pendingMessages.length > 0
|
|
278
311
|
? `${baseStatus}\n\n` +
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAA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,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAQ,CAAC,IAAc,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,kEAAkE;YAClE,6CAA6C;QAC/C,CAAC;QAED,MAAM,UAAU,GAAG,eAAe;YAChC,CAAC,CAAC,mFAAmF;YACrF,CAAC,CAAC,iCAAiC,CAAC;QAEtC,MAAM,YAAY,GAChB,eAAe,CAAC,MAAM,GAAG,CAAC;YACxB,CAAC,CAAC,GAAG,UAAU,MAAM;gBACrB,mEAAmE;gBACnE,kDAAkD,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;gBAClF,eAAe;gBACf,wDAAwD;gBACxD,4CAA4C;gBAC5C,+GAA+G;gBAC/G,uEAAuE;gBACvE,2HAA2H;YAC3H,CAAC,CAAC,UAAU,CAAC;QAEjB,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,YAAY;iBACnB;aACF;SACF,CAAC;IACJ,CAAC;IAED,eAAe;IACf,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,iBAAiB,IAAI,EAAE;aAC9B;SACF;QACD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAChC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remote-copilot-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "MCP server for remote control of AI assistants via Telegram",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/andriyshevchenko/remote-copilot-mcp#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@modelcontextprotocol/sdk": "^1.27.1"
|
|
37
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
38
|
+
"telegramify-markdown": "^1.3.2"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@types/node": "^25.3.3",
|