integram-mcp 0.7.111 → 0.7.114
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 +21 -10
- 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 — даёт доступ к 772 инструментам (таблицы, документы, отчёты, автоматизации, портал, 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.114
|
|
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.114
|
|
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.114"],
|
|
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.114"],
|
|
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** | Управление проектами: задачи, спринты, доски, бэклог, диаграммы | 77 |
|
|
171
171
|
| **portal** | Портал: конфиг, каталог, корзины, заказы, тикеты, KB, метрики, Telegram-боты | 67 |
|
|
172
172
|
| **teamchat** | Сообщения, решения, метрики агентов, W-матрица, топики | 58 |
|
|
173
173
|
| **docs** | Документы, блоки, версии, шаринг, папки, теги, шаблоны, PDF | 53 |
|
package/index.js
CHANGED
|
@@ -760,7 +760,7 @@ Role-based access control. Activate via search_tools("permissions").
|
|
|
760
760
|
- list_members — all workspace users with roles. Returns { items:[{userId,email,name,username,role,roleId,roleName,lastSeenAt}], total }; lastSeenAt is the member's last visit to this workspace (null if never). It is throttled to 5-minute granularity, so treat it as "last seen within ~5 min", not an exact timestamp
|
|
761
761
|
- list_roles — all roles and their access levels per table
|
|
762
762
|
- get_user_permissions(username or userId) — what a specific user can access
|
|
763
|
-
- set_grant(roleId or username, targetTypeId, level) — level: NONE/READ/WRITE/ADMIN. targetTypeId=0 = all tables.
|
|
763
|
+
- set_grant(roleId or username, targetTypeId, level) — level: NONE/READ/WRITE/ADMIN; NONE = deny row that overrides the role grant; revoking a grant is remove_grant. targetTypeId=0 = all tables.
|
|
764
764
|
Optional: canExport (allow CSV export), canDelete (allow record deletion)
|
|
765
765
|
- remove_grant — revoke access
|
|
766
766
|
|
|
@@ -1335,7 +1335,7 @@ const READ_ONLY_TOOLS = new Set([
|
|
|
1335
1335
|
'list_documents', 'get_object_history', 'list_comments', 'semantic_search',
|
|
1336
1336
|
'get_table_schema', 'list_reports', 'get_report', 'describe_report',
|
|
1337
1337
|
'list_members', 'list_roles', 'get_user_permissions', 'list_grants',
|
|
1338
|
-
'search_documents', 'get_document', 'get_document_blocks',
|
|
1338
|
+
'search_documents', 'get_document', 'get_document_blocks', 'workflow_get_state',
|
|
1339
1339
|
'list_doc_versions', 'list_doc_sharing', 'list_doc_folders', 'list_doc_tags', 'preview_document',
|
|
1340
1340
|
'get_block_history', 'get_doc_version',
|
|
1341
1341
|
'recall', 'find_procedure', 'list_contradictions',
|
|
@@ -1439,7 +1439,7 @@ export const EN_DESCRIPTIONS = {
|
|
|
1439
1439
|
meetings_setup: 'Install or update the meeting conveyor (requires confirmation): creates/updates the meetings: intake and meetings: protocol automations from config. Idempotent on repeated calls (upsert by name). Column aliases must match real column names byte-for-byte; the meetings table must have all 8 meet.cols columns (including record), the messages table all 12 tg.cols (including Транскрипт). Returns: {created, updated, message}.',
|
|
1440
1440
|
meetings_teardown: 'Deactivate the meeting conveyor automations (every meetings: * name, requires confirmation). The workspace config is kept. Returns: {deactivated, message}.',
|
|
1441
1441
|
// Workflows (event-sourced processes, ADR-036)
|
|
1442
|
-
workflow_get_state: 'State and biography of an object in an event-sourced process: current event, terminal flag, available transitions (blocked + reason from gates), and the event history. Pure read of the journal and spec — adjacency/gate/role/terminal are enforced by the server on write. Returns: { process, objectId, current, terminal, started, available: [{ key, title, blocked, reason? }], history: [{ id, key, actor, seq, occurred_at, fields, cause_id }] }.',
|
|
1442
|
+
workflow_get_state: 'State and biography of an object in an event-sourced process: current event, terminal flag, available transitions (blocked + reason from gates), and the event history. Pure read of the journal and spec — adjacency/gate/role/terminal are enforced by the server on write. Returns: { process, objectId, current, terminal, started, available: [{ key, title, blocked, reason? }], history: [{ id, key, actor, seq, occurred_at, fields, cause_id, object_table_id, subject_kind }] }.',
|
|
1443
1443
|
workflow_record_event: 'Append an event to a process journal (append-only, ADR-036; requires confirmation). The server validates adjacency, gates, roles and terminal state: non-adjacent or terminal write → 422 SPEC_INVALID, lost race → 409 CONCURRENCY (refresh expectedSeq). Optionally pass docId of the document artifact for provenance. Call workflow_get_state first. Returns the inserted journal row.',
|
|
1444
1444
|
// Meta-KB
|
|
1445
1445
|
mk_revoke_entity: 'Revoke all knowledge base entities derived from a specified decision. Use when a decision was found to be incorrect. Returns { revoked: number, message: string }.',
|
|
@@ -1750,7 +1750,7 @@ export const EN_DESCRIPTIONS = {
|
|
|
1750
1750
|
list_roles: 'Show all roles and their access rights to object types (READ/WRITE/ADMIN). Use for "what roles exist", "role permissions", "what can an editor do" (admin only). Returns: { items:[{id,name}], total }.',
|
|
1751
1751
|
get_user_permissions: 'Show all permissions of a specific user — which objects and at what level (READ/WRITE/ADMIN), whether they can export and delete (admin only).',
|
|
1752
1752
|
get_permissions_report: 'Permissions matrix: users, roles, grants on object types (admin only).',
|
|
1753
|
-
set_grant: 'Grant or change access of a role or user to an object type (requires confirmation). level: NONE/READ/WRITE/ADMIN. targetTypeId=0 means all types (admin only). NOT for portal settings: portal config — set_portal_config.',
|
|
1753
|
+
set_grant: 'Grant or change access of a role or user to an object type (requires confirmation). level: NONE/READ/WRITE/ADMIN; NONE writes a DENY row (overrides the role grant for that targetTypeId) — to revoke a grant entirely use remove_grant. targetTypeId=0 means all types (admin only). NOT for portal settings: portal config — set_portal_config.',
|
|
1754
1754
|
remove_grant: 'Revoke access of a role or user to an object type (requires confirmation, admin only).',
|
|
1755
1755
|
list_grants: 'List all workspace grants from the _v2_grants table. Filter by roleId or username. Returns: { items:[{id, role_id, username, target_type_id, level, can_export, can_delete}], total }.',
|
|
1756
1756
|
// Roles
|
|
@@ -2204,6 +2204,7 @@ export const EN_DESCRIPTIONS = {
|
|
|
2204
2204
|
pm_get_lead_time: 'Get lead time metrics — time from creation to close, with avg/median.',
|
|
2205
2205
|
pm_get_workload: 'Get workload distribution across team members — active issues, in-progress, overdue, points.',
|
|
2206
2206
|
pm_detect_blockers: 'Find blocked/stale/overdue issues. Returns blockers with reasons.',
|
|
2207
|
+
pm_task_status: 'Task status summary for a person: open, overdue and due-today counts with a list (number, status, due, title). Resolve the person by fio (exact member name), pm_key (e.g. PM-123) or assignee id.',
|
|
2207
2208
|
pm_summarize_sprint: 'AI summary of a sprint — done, remaining, overdue, points. Useful for standup/review.',
|
|
2208
2209
|
pm_triage_issue: 'Auto-classify an issue: suggest type, priority, labels based on title/description.',
|
|
2209
2210
|
pm_decompose_issue: 'Break down an issue into sub-tasks. Extracts checklists/headers from the description, or suggests a generic breakdown.',
|
|
@@ -2353,6 +2354,7 @@ async function dispatchTool(request) {
|
|
|
2353
2354
|
threadId: result.threadId,
|
|
2354
2355
|
action: name,
|
|
2355
2356
|
description: result.message || `Pending: ${name}`,
|
|
2357
|
+
workspace,
|
|
2356
2358
|
createdAt: now,
|
|
2357
2359
|
}, { now, ttlMs: HITL_QUEUE_TTL_MS, maxSize: HITL_QUEUE_MAX_SIZE });
|
|
2358
2360
|
return {
|
|
@@ -2451,16 +2453,25 @@ async function handleConfirmAction(approved, confirmId) {
|
|
|
2451
2453
|
let data;
|
|
2452
2454
|
try {
|
|
2453
2455
|
await ensureAuth();
|
|
2454
|
-
|
|
2456
|
+
// Резюм по воркспейсу, где ожидание создано: после switch_workspace
|
|
2457
|
+
// сессионный воркспейс промахнулся бы по scope (takeAndDeletePendingHitl
|
|
2458
|
+
// фильтрует по workspace_db) — 404 при живом, исполнимом действии.
|
|
2459
|
+
data = await apiFetch(`/api/v2/${pending.workspace || workspace}/ai/mcp-resume`, {
|
|
2455
2460
|
method: 'POST',
|
|
2456
2461
|
body: JSON.stringify({ threadId: pending.threadId, approved }),
|
|
2457
2462
|
});
|
|
2458
2463
|
} catch (resumeErr) {
|
|
2459
|
-
//
|
|
2460
|
-
//
|
|
2461
|
-
//
|
|
2462
|
-
//
|
|
2463
|
-
|
|
2464
|
+
// Issue #256: отказ сети/бэкенда возвращает ожидание в очередь.
|
|
2465
|
+
// КРОМЕ 404 NOT_FOUND: бэкенд списывает pending ДО исполнения
|
|
2466
|
+
// (ai/router.js:1336, атомарный DELETE … RETURNING) — это ответ
|
|
2467
|
+
// idempotency-ключа «уже обработано». Re-enqueue здесь давал залипание:
|
|
2468
|
+
// каждый следующий confirm по этому id снова 404 и снова в очередь,
|
|
2469
|
+
// до TTL. DB_NOT_FOUND (воркспейс не найден) — транзиентный, остаётся.
|
|
2470
|
+
const consumed = resumeErr?.status === 404
|
|
2471
|
+
&& resumeErr?.body?.error?.code === 'NOT_FOUND';
|
|
2472
|
+
if (!consumed) {
|
|
2473
|
+
enqueuePending(pendingHitlQueue, pending, { ttlMs: HITL_QUEUE_TTL_MS, maxSize: HITL_QUEUE_MAX_SIZE });
|
|
2474
|
+
}
|
|
2464
2475
|
return toolErrorResult(resumeErr);
|
|
2465
2476
|
}
|
|
2466
2477
|
msg = data.data?.message || (approved ? 'Action confirmed and executed.' : 'Action rejected.');
|
package/package.json
CHANGED