integram-mcp 0.7.124 → 0.7.131
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 +12 -6
- package/index.js +14 -12
- 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 — даёт доступ к 774 инструментам (таблицы, документы, отчёты, автоматизации, портал, Telegram-боты, граф знаний и т.д.) из Claude Code, Claude Desktop и Cursor.
|
|
6
6
|
|
|
7
7
|
Работает с облачным Integram на **ai2o.online** или с локальным сервером.
|
|
8
8
|
|
|
@@ -15,13 +15,19 @@ 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.131
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Ставить ничего не нужно: `npx` скачает пакет сам.
|
|
22
22
|
|
|
23
23
|
**Номер версии в команде обязателен.** Плавающий `integram-mcp@latest` не годится по двум причинам. Первая: npx кэширует по строке запуска, поэтому окружение, чей кэш заполнился при старом `latest`, продолжает годами запускать ту сборку под тем же именем — открытая ошибка `npm/rfcs#700`. Второй: MCP-сервер по stdio исполняется на твоей машине с твоими правами и без песочницы, и плавающий номер означает «выполнить произвольный свежий код при каждом запуске клиента». О выходе новой версии сервер сообщит сам (см. ниже) — обновление остаётся осознанным движением.
|
|
24
24
|
|
|
25
|
+
### Автообновление (для работающих в монорепозитории)
|
|
26
|
+
|
|
27
|
+
В корне монорепозитория лежит `.mcp.json`: сервер integram стартует через `scripts/mcp-launcher.sh`, и версии руками не ставятся никогда — лаунчер сам спрашивает у npm свежий номер при каждом старте сервера (коннект, reconnect, resume) и запускает `npx integram-mcp@<номер>`. Обход кэша здесь честный: номер входит в строку спецификации, новая версия — новая строка — гарантированная загрузка. Нет сети — стартует последняя скачанная копия.
|
|
28
|
+
|
|
29
|
+
Секьюрити-оговорка из прошлого абзаца действует и здесь, осознанно: лаунчер = «выполнять свежий код при каждом коннекте». Это выбор для машин разработчиков репозитория; для внешних пользователей — закреплённая версия из Быстрого старта.
|
|
30
|
+
|
|
25
31
|
### Из репозитория (для разработки сервера)
|
|
26
32
|
|
|
27
33
|
```bash
|
|
@@ -43,7 +49,7 @@ claude mcp add integram \
|
|
|
43
49
|
-e INTEGRAM_URL=http://localhost:8081 \
|
|
44
50
|
-e INTEGRAM_EMAIL=you@example.com \
|
|
45
51
|
-e INTEGRAM_PASSWORD=secret \
|
|
46
|
-
-- npx -y integram-mcp@0.7.
|
|
52
|
+
-- npx -y integram-mcp@0.7.131
|
|
47
53
|
```
|
|
48
54
|
|
|
49
55
|
Удалить: `claude mcp remove integram`
|
|
@@ -57,7 +63,7 @@ claude mcp add integram \
|
|
|
57
63
|
"mcpServers": {
|
|
58
64
|
"integram": {
|
|
59
65
|
"command": "npx",
|
|
60
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
66
|
+
"args": ["-y", "integram-mcp@0.7.131"],
|
|
61
67
|
"env": {
|
|
62
68
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
63
69
|
"INTEGRAM_EMAIL": "you@example.com",
|
|
@@ -77,7 +83,7 @@ claude mcp add integram \
|
|
|
77
83
|
"mcpServers": {
|
|
78
84
|
"integram": {
|
|
79
85
|
"command": "npx",
|
|
80
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
86
|
+
"args": ["-y", "integram-mcp@0.7.131"],
|
|
81
87
|
"env": {
|
|
82
88
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
83
89
|
"INTEGRAM_EMAIL": "you@example.com",
|
|
@@ -173,7 +179,7 @@ claude mcp add integram -e INTEGRAM_URL=... -e INTEGRAM_EMAIL=... -e INTEGRAM_PA
|
|
|
173
179
|
| **docs** | Документы, блоки, версии, шаринг, папки, теги, шаблоны, PDF | 53 |
|
|
174
180
|
| **nightcall** | Нормативная спецификация и проверяемая генерация: требования, обязательства, свидетельства, базовые линии | 44 |
|
|
175
181
|
| **codespace** | Git-репозитории: ветки, коммиты, файлы, точечная правка (`patch_file`), pull requests; запись с `baseCommit` сливается с чужими изменениями вместо перезаписи | 37 |
|
|
176
|
-
| **schema** | Таблицы, колонки, кнопки (AI/HTTP/script), вычисляемые колонки, валидация |
|
|
182
|
+
| **schema** | Таблицы, колонки, кнопки (AI/HTTP/script), вычисляемые колонки, валидация | 36 |
|
|
177
183
|
| **orgs** | Организации: участники, области, приглашения | 29 |
|
|
178
184
|
| **memory** | Память агента, инсайты, процедуры, противоречия | 28 |
|
|
179
185
|
| **meta-kb** | Дебаты: параллельные эксперты, LLM-синтез, курирование знаний | 25 |
|
package/index.js
CHANGED
|
@@ -412,6 +412,7 @@ Phrase triggers — user wording maps to a tool group; activate it and use its t
|
|
|
412
412
|
- Labels answer «откуда задача и про что» — self-explanatory words, no cryptic codes: источник («спека»), область (backend/frontend/platform), тема («pm», «orgs»). Срочность живёт в priority, НЕ в метках. 2-4 per task. Setting labels REPLACES the whole array — read current labels first when adding to existing.
|
|
413
413
|
- Estimates (1-2-3-5-8-13-21) only for OPEN tasks; don't set on done.
|
|
414
414
|
- Never invent due_date; set it only if the user named a date. Done-статус — переходом через pm_update_issue, не сразу при создании.
|
|
415
|
+
- Mutating an issue by internal id? Pass expectedNumber (the PM-N you believe the id holds): a mismatch is rejected 409 NUMBER_MISMATCH before anything is written — parallel sessions and SQL id|number columns make id mix-ups routine.
|
|
415
416
|
- Child issues do NOT inherit labels from their epic — set labels explicitly on every create.
|
|
416
417
|
- Ask ONLY when: the wording fits both a PM task and something else (EAV record / document), or a bulk breakdown (>3 tasks) has no obvious split.
|
|
417
418
|
|
|
@@ -803,7 +804,7 @@ create_automation({ name, trigger: { type, typeId }, active?, condition, actions
|
|
|
803
804
|
on_member_joined: событие member.joined — новый участник воркспейса (пригласительная ссылка); в действиях доступны {{memberUserId}}, {{memberEmail}}, {{memberRole}}, {{workspaceSlug}}, {{meta}}
|
|
804
805
|
pm_deadline: { days: N (за сколько дней до due_date PM-задачи, default 1), hour: 0-23 (час UTC ежедневного скана, default 7) }; в действиях доступны {{pm_title}}, {{pm_number}}, {{pm_due_date}}, {{pm_assignee_email}} (send_notification адресуйте username: '{{pm_assignee_email}}')
|
|
805
806
|
on_issue_commented / on_issue_updated: событие PM-задачи (комментарий / правка полей), pm-переменные те же
|
|
806
|
-
- Actions: send_notification, send_notification_to_group, update_field, create_object, delete_object, fire_webhook, run_ai_agent, run_script, run_server_function, run_video_job, send_telegram, send_telegram_media, create_document, run_connector, send_email, update_related_records, set_requisite, update_related, http_request, if_else, switch, transform, wait_delay, request_approval, delegate_to_agent, invoke_agent, send_invoice, telegram_forward, answer_inline_query, telegram_ban, telegram_unban, telegram_restrict, telegram_promote, telegram_approve_join, telegram_decline_join, telegram_pin, telegram_unpin, telegram_get_chat, telegram_post_story, answer_shipping, telegram_business_reply, create_issue, update_issue, link_issue
|
|
807
|
+
- Actions: send_notification, send_notification_to_group, update_field, create_object, delete_object, fire_webhook, run_ai_agent, run_script, run_server_function, run_video_job, send_telegram, send_telegram_media, create_document, run_connector, send_email, update_related_records, set_requisite, update_related, http_request, if_else, switch, transform, wait_delay, request_approval, delegate_to_agent (работает и с internal-агентами реестра воркспейса), invoke_agent, send_invoice, telegram_forward, answer_inline_query, telegram_ban, telegram_unban, telegram_restrict, telegram_promote, telegram_approve_join, telegram_decline_join, telegram_pin, telegram_unpin, telegram_get_chat, telegram_post_story, answer_shipping, telegram_business_reply, create_issue, update_issue, link_issue
|
|
807
808
|
create_issue: { title, description?, issue_type?, priority?, assignee_id?, parent_id?, board_id?, sprint_id?, due_date?, estimate?, labels?, assigneeRole?, assigneeStrategy? } — создаёт PM-задачу; результат: {{_created_issue_id}}, {{_created_issue_number}}. assigneeRole — имя EAV-таблицы-роли воркспейса (строки = участники, у каждого логин в колонке «Логин»/«Username»/«Email», колонка ищется по имени или алиасу); assigneeStrategy: least_busy (умолчание) | first; assignee_id и assigneeRole взаимно исключают друг друга — конфликт отвергается при сохранении. Роль без резолвимых участников → задача без исполнителя + уведомление роли (или триггера), прогон не падает.
|
|
808
809
|
link_issue: { issue_id?, issue_number?, target_type?, target_id? } — привязывает задачу к цели через data-links (issue_id или issue_number; без них берётся {{_created_issue_id}} предыдущего create_issue); 409 (связь уже стоит) считается успехом.
|
|
809
810
|
update_issue: { id, title?, description?, issue_type?, status?, priority?, assignee_id?, sprint_id?, parent_id?, estimate?, due_date?, labels? } — правит PM-задачу; id можно взять из {{pm_issue_id}}
|
|
@@ -990,7 +991,7 @@ Client-facing portal management. Activate via search_tools("portal"); for @kit b
|
|
|
990
991
|
**Telegram Bots:**
|
|
991
992
|
- list_telegram_bots() — list all Telegram bots for the workspace
|
|
992
993
|
- create_telegram_bot(name, username, token, config?) — create bot + auto-register webhook. **Requires confirmation.**
|
|
993
|
-
- update_telegram_bot(id, ...) — update bot (name, username, token, enabled, config). Token change re-registers webhook. **Requires confirmation.**
|
|
994
|
+
- update_telegram_bot(id, ...) — update bot (name, username, token, enabled, config). config is replaced wholesale (no merge) — pass the full config. Token change re-registers webhook. **Requires confirmation.**
|
|
994
995
|
- delete_telegram_bot(id) — permanently delete bot. **Requires HITL confirmation.**
|
|
995
996
|
- sync_telegram_bot(id) — sync config → Telegram API (commands menu, description, short description, menu button). **Requires confirmation.**
|
|
996
997
|
- get_telegram_bot_status(id) — get bot info (getMe) + webhook status (getWebhookInfo). Read-only.
|
|
@@ -1027,6 +1028,7 @@ Client-facing portal management. Activate via search_tools("portal"); for @kit b
|
|
|
1027
1028
|
- telegram_set_business_name(botId, businessConnectionId, firstName, lastName?) — set account name. **Requires confirmation.**
|
|
1028
1029
|
|
|
1029
1030
|
Bot config schema: { description?: "...", shortDescription?: "...", welcomeMessage?: "...", menuButton?: {type: "commands"|"web_app"|"default"}, employeeTable?: {typeId, chatIdReqId, roleReqId, emailReqId?} }.
|
|
1031
|
+
config.builtinsDisabled: true — клиентский бот без встроенных обработчиков (только welcomeMessage, правила, платежи); в области с ботом сотрудников (employeeTable) новый бот обязан быть клиентским или нести свою employeeTable.
|
|
1030
1032
|
Bot reactions (commands + keywords) are stored as **automations** with trigger.botId — use create_automation with:
|
|
1031
1033
|
- Command: trigger: { type: "on_telegram_command", command: "status", botId: N }
|
|
1032
1034
|
- Keyword: trigger: { type: "on_telegram_message", pattern: "привет,hello", matchMode: "contains", botId: N }
|
|
@@ -1121,7 +1123,7 @@ Git repository hosting per workspace. Activate via search_tools("codespace").
|
|
|
1121
1123
|
- get_pr(slug, number) — PR details
|
|
1122
1124
|
- create_pr(slug, title, sourceBranch, targetBranch, description?, mergeStrategy?) — create PR
|
|
1123
1125
|
- update_pr(slug, number, title?, description?, status?, mergeStrategy?) — update PR; pass status="open" to reopen
|
|
1124
|
-
- merge_pr(slug, number, strategy?) — merge PR into target branch. **TIER_HIGH**
|
|
1126
|
+
- merge_pr(slug, number, strategy?, allowKnownLoss?) — merge PR into target branch; rejected 409 MERGE_WOULD_REVERT when it erases recent target-branch edits (allowKnownLoss confirms intentional removal). **TIER_HIGH**
|
|
1125
1127
|
- list_pr_comments(slug, number) — list PR comments
|
|
1126
1128
|
- add_pr_comment(slug, number, body) — add comment to PR
|
|
1127
1129
|
|
|
@@ -1271,8 +1273,8 @@ Create Excel files from raw data. Available via search_tools("workspace excel xl
|
|
|
1271
1273
|
## External agents
|
|
1272
1274
|
|
|
1273
1275
|
Delegate tasks to registered external agents. Activate via search_tools("agents").
|
|
1274
|
-
- list_agents — discover available
|
|
1275
|
-
- delegate_to_agent(agentSlug, task, context) —
|
|
1276
|
+
- list_agents — discover available registry agents (external and internal) and their capabilities
|
|
1277
|
+
- delegate_to_agent(agentSlug, task, context) — delegate a task to a registry agent by slug: external via callback URL, internal (workspace-defined) via the shared agent executor (its prompt and tools); returns the result
|
|
1276
1278
|
|
|
1277
1279
|
## Meta KB mode
|
|
1278
1280
|
|
|
@@ -2018,8 +2020,8 @@ export const EN_DESCRIPTIONS = {
|
|
|
2018
2020
|
get_schema_graph: 'Get the workspace schema graph — all tables, columns and relations between them. Use to analyze data structure and find dependencies. Returns: { types:[...], edges:[...] }.',
|
|
2019
2021
|
convert_column_to_ref: 'Convert a text column into a reference. Creates a lookup table from the unique column values and replaces the column with a ref (requires confirmation — changes the schema).',
|
|
2020
2022
|
// External agents
|
|
2021
|
-
list_agents: 'List registered
|
|
2022
|
-
delegate_to_agent: 'Delegate a task to
|
|
2023
|
+
list_agents: 'List registered registry agents (external and internal) and their capabilities. Use to discover available specialists before delegating tasks.',
|
|
2024
|
+
delegate_to_agent: 'Delegate a task to a registry agent by slug: external — via callback URL, internal (workspace-defined) — run by the shared agent executor (its prompt and tools). Returns: { type:"agent_response", message }.',
|
|
2023
2025
|
list_agent_suggestions: 'List agent-creation suggestions based on behavioral patterns.',
|
|
2024
2026
|
apply_agent_suggestion: 'Apply a suggestion — create an agent from the detected pattern (requires confirmation).',
|
|
2025
2027
|
dismiss_agent_suggestion: 'Dismiss an agent-creation suggestion.',
|
|
@@ -2034,8 +2036,8 @@ export const EN_DESCRIPTIONS = {
|
|
|
2034
2036
|
portal_publish: 'Enable (active=true) or disable (active=false) the portal. Requires confirmation.',
|
|
2035
2037
|
// Telegram management
|
|
2036
2038
|
list_telegram_bots: 'List workspace Telegram bots. Returns ID, name, username, enabled, config.',
|
|
2037
|
-
create_telegram_bot: 'Create a new Telegram bot. Registers the webhook automatically. name — display name, username — the @username of the bot in Telegram, token — the token from @BotFather. config.commands — array of commands: [{command:"/status", description:"Status", action:"reply", replyText:"Your order..."}]. Requires confirmation.',
|
|
2038
|
-
update_telegram_bot: 'Update a Telegram bot. If token changes, the webhook is re-registered. Requires confirmation.',
|
|
2039
|
+
create_telegram_bot: 'Create a new Telegram bot. Registers the webhook automatically. name — display name, username — the @username of the bot in Telegram, token — the token from @BotFather. config.commands — array of commands: [{command:"/status", description:"Status", action:"reply", replyText:"Your order..."}]. config.builtinsDisabled: true — клиентский бот без встроенных обработчиков (только welcomeMessage, правила, платежи); в области с ботом сотрудников (employeeTable) новый бот обязан быть клиентским или нести свою employeeTable. Requires confirmation.',
|
|
2040
|
+
update_telegram_bot: 'Update a Telegram bot. config is replaced WHOLESALE (no merge) — pass the full config (read current via list_telegram_bots) or commands/keywords/flags are lost. If token changes, the webhook is re-registered. config.builtinsDisabled: true — клиентский бот без встроенных обработчиков (только welcomeMessage, правила, платежи); в области с ботом сотрудников (employeeTable) новый бот обязан быть клиентским или нести свою employeeTable. Requires confirmation.',
|
|
2039
2041
|
delete_telegram_bot: 'Delete a Telegram bot. Irreversible. Requires HITL confirmation.',
|
|
2040
2042
|
sync_telegram_bot: 'Sync the bot config with the Telegram API — sends commands (setMyCommands), description (setMyDescription), short description (setMyShortDescription), menu button (setChatMenuButton). Requires confirmation.',
|
|
2041
2043
|
get_telegram_bot_status: 'Get the bot status from Telegram — bot info (getMe) and webhook state (getWebhookInfo: URL, pending updates, last error).',
|
|
@@ -2080,7 +2082,7 @@ export const EN_DESCRIPTIONS = {
|
|
|
2080
2082
|
get_pr: 'Pull request details. Returns: { id, number, title, description, status, sourceBranch, targetBranch, mergeStrategy, ... }.',
|
|
2081
2083
|
create_pr: 'Create a pull request. Returns: { id, number, title, status, ... }.',
|
|
2082
2084
|
update_pr: 'Update a PR (title, description, status, strategy). To reopen pass status="open". Returns the updated PR.',
|
|
2083
|
-
merge_pr: 'Merge a pull request into the target branch. Returns: { merged: true, commitHash, ... }.',
|
|
2085
|
+
merge_pr: 'Merge a pull request into the target branch. Rejected with 409 MERGE_WOULD_REVERT when the merge would erase recent edits of the target branch — rebuild the source branch from the current target, or retry with allowKnownLoss: true if the removal is intentional. Returns: { merged: true, commitHash, ... }.',
|
|
2084
2086
|
list_pr_comments: 'List PR comments. Returns: { items: [{ id, body, author_username, created_at }], total }.',
|
|
2085
2087
|
add_pr_comment: 'Add a comment to a PR. Returns: { id, body, author_id, created_at }.',
|
|
2086
2088
|
get_github_sync: 'Get the GitHub Sync configuration of a repository. Returns: { configured, remoteUrl, direction, autoSync, hasToken, lastSync, lastError }.',
|
|
@@ -2214,10 +2216,10 @@ export const EN_DESCRIPTIONS = {
|
|
|
2214
2216
|
pm_list_rituals: 'List dev rituals (metronome): cron schedule, owner, norm, held/missed stats for the last week.',
|
|
2215
2217
|
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.',
|
|
2216
2218
|
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.',
|
|
2217
|
-
pm_list_issues: 'List PM issues with optional filters.',
|
|
2219
|
+
pm_list_issues: 'List PM issues with optional filters. Returns compact rows: description and checklist are stripped; response is { items, total, limit, offset, has_more }. Full text of one issue: pm_get_issue(id). To include heavy fields in the list pass include:["description","checklist"]. Do not call the list to read a single issue — use pm_get_issue. Bulk CSV export: pm_export_csv.',
|
|
2218
2220
|
pm_get_issue: 'Get full details of a PM issue by ID.',
|
|
2219
2221
|
pm_create_issue: 'Create a new PM issue. Assignee. If the user named anyone — pass them here (numeric user ID, or a member name / @username / email — the backend resolves it against workspace membership; ambiguous or unknown name returns an error listing candidates: call pm_list_members to disambiguate). Default to the calling user ONLY when no assignee was mentioned — never default to yourself when a name was given. Pass null explicitly to leave unassigned. 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.',
|
|
2220
|
-
pm_update_issue: 'Update an existing PM issue. New assignee: numeric user ID, or a member name / @username / email (resolved against workspace membership; ambiguous or unknown name returns an error listing candidates — call pm_list_members to disambiguate). "null" clears the assignee. A checklist field passed here is ignored — checklist items are edited one at a time via pm_toggle_checklist and the issue checklist routes; pm_bulk_update rejects the field with a 400.',
|
|
2222
|
+
pm_update_issue: 'Update an existing PM issue. New assignee: numeric user ID, or a member name / @username / email (resolved against workspace membership; ambiguous or unknown name returns an error listing candidates — call pm_list_members to disambiguate). "null" clears the assignee. A checklist field passed here is ignored — checklist items are edited one at a time via pm_toggle_checklist and the issue checklist routes; pm_bulk_update rejects the field with a 400. Pass expectedNumber to guard against a wrong id: it is checked before anything is written.',
|
|
2221
2223
|
pm_delete_issue: 'Soft-delete a PM issue.',
|
|
2222
2224
|
pm_move_issue: 'Move an issue to a different sprint, parent, or reorder within a list.',
|
|
2223
2225
|
pm_add_comment: 'Add a comment to a PM issue.',
|
package/package.json
CHANGED