integram-mcp 0.7.104 → 0.7.108
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 +25 -7
- 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.108
|
|
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.108
|
|
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.108"],
|
|
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.108"],
|
|
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.',
|
|
@@ -2439,16 +2443,21 @@ async function handleConfirmAction(approved, confirmId) {
|
|
|
2439
2443
|
msg = 'Action rejected.';
|
|
2440
2444
|
}
|
|
2441
2445
|
} else {
|
|
2442
|
-
// Backend HITL — proxy to /mcp-resume
|
|
2443
|
-
|
|
2446
|
+
// Backend HITL — proxy to /mcp-resume. ensureAuth под общим try:
|
|
2447
|
+
// отказ авторизации тоже возвращает ожидание в очередь (TD-213).
|
|
2444
2448
|
let data;
|
|
2445
2449
|
try {
|
|
2450
|
+
await ensureAuth();
|
|
2446
2451
|
data = await apiFetch(`/api/v2/${workspace}/ai/mcp-resume`, {
|
|
2447
2452
|
method: 'POST',
|
|
2448
2453
|
body: JSON.stringify({ threadId: pending.threadId, approved }),
|
|
2449
2454
|
});
|
|
2450
2455
|
} catch (resumeErr) {
|
|
2451
|
-
// TD-065: раньше отказ /mcp-resume читался как текст
|
|
2456
|
+
// TD-065: раньше отказ /mcp-resume читался как текст успеха.
|
|
2457
|
+
// Issue #256: отказ сети/бэкенда возвращает ожидание в очередь —
|
|
2458
|
+
// confirmId остаётся живым, повторный confirm даёт внятный ответ
|
|
2459
|
+
// (включая 404, когда бэкенд уже списал pending), а не потерю действия.
|
|
2460
|
+
enqueuePending(pendingHitlQueue, pending, { ttlMs: HITL_QUEUE_TTL_MS, maxSize: HITL_QUEUE_MAX_SIZE });
|
|
2452
2461
|
return toolErrorResult(resumeErr);
|
|
2453
2462
|
}
|
|
2454
2463
|
msg = data.data?.message || (approved ? 'Action confirmed and executed.' : 'Action rejected.');
|
|
@@ -2505,7 +2514,7 @@ async function handleCreateWorkspace({ name, slug, template, templateId, blocks
|
|
|
2505
2514
|
|
|
2506
2515
|
let _pendingDeleteSlug = null;
|
|
2507
2516
|
|
|
2508
|
-
async function handleDeleteWorkspace(slug) {
|
|
2517
|
+
export async function handleDeleteWorkspace(slug) {
|
|
2509
2518
|
if (!slug) {
|
|
2510
2519
|
return { content: [{ type: 'text', text: 'Error: slug is required' }], isError: true };
|
|
2511
2520
|
}
|
|
@@ -2536,14 +2545,23 @@ async function handleDeleteWorkspace(slug) {
|
|
|
2536
2545
|
},
|
|
2537
2546
|
onReject: () => { _pendingDeleteSlug = null; },
|
|
2538
2547
|
}, { now, ttlMs: HITL_QUEUE_TTL_MS, maxSize: HITL_QUEUE_MAX_SIZE });
|
|
2548
|
+
// PM-241/PM-646: тот же конструктор текста, что у бэкенд-HITL-пути —
|
|
2549
|
+
// ожидание в очереди несёт confirmId, и текст обязан его печатать,
|
|
2550
|
+
// иначе подтверждающему нечем назвать ожидание.
|
|
2539
2551
|
return {
|
|
2540
|
-
content: [{ type: 'text', text:
|
|
2552
|
+
content: [{ type: 'text', text: buildHitlConfirmationText({
|
|
2553
|
+
tool: 'delete_workspace',
|
|
2554
|
+
message: `Permanently delete workspace "${slug}" and ALL its data. This action is irreversible.`,
|
|
2555
|
+
queued: pendingHitlQueue.length,
|
|
2556
|
+
confirmId: entry.id,
|
|
2557
|
+
}) }],
|
|
2541
2558
|
};
|
|
2542
2559
|
}
|
|
2543
2560
|
|
|
2544
|
-
// If already pending for same slug, remind
|
|
2561
|
+
// If already pending for same slug, remind — тоже с confirmId (PM-646)
|
|
2562
|
+
const pendingEntry = pendingHitlQueue.find((e) => e.threadId === `delete-ws-${slug}`);
|
|
2545
2563
|
return {
|
|
2546
|
-
content: [{ type: 'text', text: `Deletion of workspace "${slug}" is already pending confirmation. Call confirm_action(approved=true/false).` }],
|
|
2564
|
+
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
2565
|
};
|
|
2548
2566
|
}
|
|
2549
2567
|
|
package/package.json
CHANGED