integram-mcp 0.7.141 → 0.7.143
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/README.md +4 -4
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ claude mcp add integram \
|
|
|
15
15
|
-e INTEGRAM_URL=https://ai2o.online \
|
|
16
16
|
-e INTEGRAM_EMAIL=you@example.com \
|
|
17
17
|
-e INTEGRAM_PASSWORD=secret \
|
|
18
|
-
-- npx -y integram-mcp@0.7.
|
|
18
|
+
-- npx -y integram-mcp@0.7.143
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Ставить ничего не нужно: `npx` скачает пакет сам.
|
|
@@ -49,7 +49,7 @@ claude mcp add integram \
|
|
|
49
49
|
-e INTEGRAM_URL=http://localhost:8081 \
|
|
50
50
|
-e INTEGRAM_EMAIL=you@example.com \
|
|
51
51
|
-e INTEGRAM_PASSWORD=secret \
|
|
52
|
-
-- npx -y integram-mcp@0.7.
|
|
52
|
+
-- npx -y integram-mcp@0.7.143
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
Удалить: `claude mcp remove integram`
|
|
@@ -63,7 +63,7 @@ claude mcp add integram \
|
|
|
63
63
|
"mcpServers": {
|
|
64
64
|
"integram": {
|
|
65
65
|
"command": "npx",
|
|
66
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
66
|
+
"args": ["-y", "integram-mcp@0.7.143"],
|
|
67
67
|
"env": {
|
|
68
68
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
69
69
|
"INTEGRAM_EMAIL": "you@example.com",
|
|
@@ -83,7 +83,7 @@ claude mcp add integram \
|
|
|
83
83
|
"mcpServers": {
|
|
84
84
|
"integram": {
|
|
85
85
|
"command": "npx",
|
|
86
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
86
|
+
"args": ["-y", "integram-mcp@0.7.143"],
|
|
87
87
|
"env": {
|
|
88
88
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
89
89
|
"INTEGRAM_EMAIL": "you@example.com",
|
package/index.js
CHANGED
|
@@ -75,10 +75,10 @@ async function apiFetch(path, opts = {}, _retried = false) {
|
|
|
75
75
|
// TD-065: отказ бэкенда → результат тула с isError:true (признак протокола MCP).
|
|
76
76
|
// Чистый текст для модели: message + details, без JSON-обёртки всего ответа.
|
|
77
77
|
// Тела нет (не JSON, сеть) — остаётся текст самой ошибки.
|
|
78
|
-
function toolErrorResult(err) {
|
|
78
|
+
export function toolErrorResult(err) {
|
|
79
79
|
const be = err?.body?.error;
|
|
80
80
|
const text = be
|
|
81
|
-
? `Error: ${be.message || err.message}${be.details ? '\n\n' + JSON.stringify(be.details, null, 2) : ''}`
|
|
81
|
+
? `Error: ${be.message || err.message}${be.details ? '\n\n' + JSON.stringify(be.details, null, 2) : ''}${be.hint ? '\n\nHint: ' + be.hint : ''}`
|
|
82
82
|
: `Error: ${err?.message}`;
|
|
83
83
|
return { content: [{ type: 'text', text }], isError: true };
|
|
84
84
|
}
|
package/package.json
CHANGED