integram-mcp 0.7.104 → 0.7.107
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 +6 -6
- package/index.js +22 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/integram-mcp)
|
|
4
4
|
|
|
5
|
-
MCP-сервер для Integram — даёт доступ к
|
|
5
|
+
MCP-сервер для Integram — даёт доступ к 769 инструментам (таблицы, документы, отчёты, автоматизации, портал, Telegram-боты, граф знаний и т.д.) из Claude Code, Claude Desktop и Cursor.
|
|
6
6
|
|
|
7
7
|
Работает с облачным Integram на **ai2o.online** или с локальным сервером.
|
|
8
8
|
|
|
@@ -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.107
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Ставить ничего не нужно: `npx` скачает пакет сам.
|
|
@@ -43,7 +43,7 @@ claude mcp add integram \
|
|
|
43
43
|
-e INTEGRAM_URL=http://localhost:8081 \
|
|
44
44
|
-e INTEGRAM_EMAIL=you@example.com \
|
|
45
45
|
-e INTEGRAM_PASSWORD=secret \
|
|
46
|
-
-- npx -y integram-mcp@0.7.
|
|
46
|
+
-- npx -y integram-mcp@0.7.107
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Удалить: `claude mcp remove integram`
|
|
@@ -57,7 +57,7 @@ claude mcp add integram \
|
|
|
57
57
|
"mcpServers": {
|
|
58
58
|
"integram": {
|
|
59
59
|
"command": "npx",
|
|
60
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
60
|
+
"args": ["-y", "integram-mcp@0.7.107"],
|
|
61
61
|
"env": {
|
|
62
62
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
63
63
|
"INTEGRAM_EMAIL": "you@example.com",
|
|
@@ -77,7 +77,7 @@ claude mcp add integram \
|
|
|
77
77
|
"mcpServers": {
|
|
78
78
|
"integram": {
|
|
79
79
|
"command": "npx",
|
|
80
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
80
|
+
"args": ["-y", "integram-mcp@0.7.107"],
|
|
81
81
|
"env": {
|
|
82
82
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
83
83
|
"INTEGRAM_EMAIL": "you@example.com",
|
|
@@ -167,7 +167,7 @@ claude mcp add integram -e INTEGRAM_URL=... -e INTEGRAM_EMAIL=... -e INTEGRAM_PA
|
|
|
167
167
|
| Группа | Что делает | Кол-во |
|
|
168
168
|
|---|---|---|
|
|
169
169
|
| **workspace** | Файлы, коннекторы, участники, бэкапы, дашборды, вью, аудит, нормализатор, автоматизации, вебхуки, формы | 134 |
|
|
170
|
-
| **pm** | Управление проектами: задачи, спринты, доски, бэклог, диаграммы |
|
|
170
|
+
| **pm** | Управление проектами: задачи, спринты, доски, бэклог, диаграммы | 76 |
|
|
171
171
|
| **portal** | Портал: конфиг, каталог, корзины, заказы, тикеты, KB, метрики, Telegram-боты | 67 |
|
|
172
172
|
| **teamchat** | Сообщения, решения, метрики агентов, W-матрица, топики | 58 |
|
|
173
173
|
| **docs** | Документы, блоки, версии, шаринг, папки, теги, шаблоны, PDF | 53 |
|
package/index.js
CHANGED
|
@@ -2143,6 +2143,10 @@ export const EN_DESCRIPTIONS = {
|
|
|
2143
2143
|
delete_workspace_tool: 'Delete a custom workspace tool.',
|
|
2144
2144
|
import_tool_pack: 'Bulk-import a tool pack (set of custom tools) into the workspace.',
|
|
2145
2145
|
// PM
|
|
2146
|
+
pm_briefing: 'Morning PM briefing: today\'s rituals, my in-progress issues, WIP limit overflows, blocked issues with reasons, overdue items. mine=false for a workspace-wide view without the assignee filter.',
|
|
2147
|
+
pm_list_rituals: 'List dev rituals (metronome): cron schedule, owner, norm, held/missed stats for the last week.',
|
|
2148
|
+
pm_save_ritual: 'Create or update a dev ritual. cron: 5 fields (minute hour day month weekday), UTC (e.g. "30 6 * * 1-5" = Mon-Fri 06:30 UTC). Pass id to update; omitted fields are left unchanged.',
|
|
2149
|
+
pm_hold_ritual: 'Mark a ritual as held, missed, or skipped — writes to the metronome log for the current minute. status: held (default) | missed | skipped.',
|
|
2146
2150
|
pm_list_issues: 'List PM issues with optional filters.',
|
|
2147
2151
|
pm_get_issue: 'Get full details of a PM issue by ID.',
|
|
2148
2152
|
pm_create_issue: 'Create a new PM issue. Trigger phrases: "create a task", "task in PM" — prefer this over create_object and documents. NOT for plain table records: create_object(typeId, fields). For multi-part work create an epic and attach child issues (parent_id) with labels — not one task with a wall of text.',
|
|
@@ -2448,7 +2452,11 @@ async function handleConfirmAction(approved, confirmId) {
|
|
|
2448
2452
|
body: JSON.stringify({ threadId: pending.threadId, approved }),
|
|
2449
2453
|
});
|
|
2450
2454
|
} catch (resumeErr) {
|
|
2451
|
-
// TD-065: раньше отказ /mcp-resume читался как текст
|
|
2455
|
+
// TD-065: раньше отказ /mcp-resume читался как текст успеха.
|
|
2456
|
+
// Issue #256: отказ сети/бэкенда возвращает ожидание в очередь —
|
|
2457
|
+
// confirmId остаётся живым, повторный confirm даёт внятный ответ
|
|
2458
|
+
// (включая 404, когда бэкенд уже списал pending), а не потерю действия.
|
|
2459
|
+
enqueuePending(pendingHitlQueue, pending, { ttlMs: HITL_QUEUE_TTL_MS, maxSize: HITL_QUEUE_MAX_SIZE });
|
|
2452
2460
|
return toolErrorResult(resumeErr);
|
|
2453
2461
|
}
|
|
2454
2462
|
msg = data.data?.message || (approved ? 'Action confirmed and executed.' : 'Action rejected.');
|
|
@@ -2505,7 +2513,7 @@ async function handleCreateWorkspace({ name, slug, template, templateId, blocks
|
|
|
2505
2513
|
|
|
2506
2514
|
let _pendingDeleteSlug = null;
|
|
2507
2515
|
|
|
2508
|
-
async function handleDeleteWorkspace(slug) {
|
|
2516
|
+
export async function handleDeleteWorkspace(slug) {
|
|
2509
2517
|
if (!slug) {
|
|
2510
2518
|
return { content: [{ type: 'text', text: 'Error: slug is required' }], isError: true };
|
|
2511
2519
|
}
|
|
@@ -2536,14 +2544,23 @@ async function handleDeleteWorkspace(slug) {
|
|
|
2536
2544
|
},
|
|
2537
2545
|
onReject: () => { _pendingDeleteSlug = null; },
|
|
2538
2546
|
}, { now, ttlMs: HITL_QUEUE_TTL_MS, maxSize: HITL_QUEUE_MAX_SIZE });
|
|
2547
|
+
// PM-241/PM-646: тот же конструктор текста, что у бэкенд-HITL-пути —
|
|
2548
|
+
// ожидание в очереди несёт confirmId, и текст обязан его печатать,
|
|
2549
|
+
// иначе подтверждающему нечем назвать ожидание.
|
|
2539
2550
|
return {
|
|
2540
|
-
content: [{ type: 'text', text:
|
|
2551
|
+
content: [{ type: 'text', text: buildHitlConfirmationText({
|
|
2552
|
+
tool: 'delete_workspace',
|
|
2553
|
+
message: `Permanently delete workspace "${slug}" and ALL its data. This action is irreversible.`,
|
|
2554
|
+
queued: pendingHitlQueue.length,
|
|
2555
|
+
confirmId: entry.id,
|
|
2556
|
+
}) }],
|
|
2541
2557
|
};
|
|
2542
2558
|
}
|
|
2543
2559
|
|
|
2544
|
-
// If already pending for same slug, remind
|
|
2560
|
+
// If already pending for same slug, remind — тоже с confirmId (PM-646)
|
|
2561
|
+
const pendingEntry = pendingHitlQueue.find((e) => e.threadId === `delete-ws-${slug}`);
|
|
2545
2562
|
return {
|
|
2546
|
-
content: [{ type: 'text', text: `Deletion of workspace "${slug}" is already pending confirmation. Call confirm_action(approved=true/false).` }],
|
|
2563
|
+
content: [{ type: 'text', text: `Deletion of workspace "${slug}" is already pending confirmation.${pendingEntry ? ` confirm id: ${pendingEntry.id}.` : ''} Call confirm_action(approved=true/false${pendingEntry ? `, confirmId="${pendingEntry.id}"` : ''}).` }],
|
|
2547
2564
|
};
|
|
2548
2565
|
}
|
|
2549
2566
|
|
package/package.json
CHANGED