integram-mcp 0.7.18 → 0.7.21
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 +7 -7
- package/index.js +7 -3
- 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 — даёт доступ к 610 инструментам (таблицы, документы, отчёты, автоматизации, портал, 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.21
|
|
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.21
|
|
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.21"],
|
|
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.21"],
|
|
81
81
|
"env": {
|
|
82
82
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
83
83
|
"INTEGRAM_EMAIL": "you@example.com",
|
|
@@ -170,7 +170,7 @@ claude mcp add integram -e INTEGRAM_URL=... -e INTEGRAM_EMAIL=... -e INTEGRAM_PA
|
|
|
170
170
|
| **schema** | Таблицы, колонки, кнопки (AI/HTTP/script), вычисляемые колонки, валидация | 30 |
|
|
171
171
|
| **memory** | Память агента, инсайты, процедуры, противоречия | 22 |
|
|
172
172
|
| **meta-kb** | Дебаты: параллельные эксперты, LLM-синтез, курирование знаний | 22 |
|
|
173
|
-
| **core** | CRUD объектов, поиск, справочник платформы (docs_map/docs_search), граф, комментарии, bulk-операции |
|
|
173
|
+
| **core** | CRUD объектов, поиск, справочник платформы (docs_map/docs_search), граф, комментарии, bulk-операции | 20 |
|
|
174
174
|
| **objects** | Перемещение, дублирование, переупорядочивание записей, корзина, обратные ссылки | 17 |
|
|
175
175
|
| **reports** | Отчёты: CRUD, колонки, JOIN, фильтры, экспорт | 16 |
|
|
176
176
|
| **grants** | Роли, гранты, row-level правила (только admin) | 13 |
|
|
@@ -190,4 +190,4 @@ claude mcp add integram -e INTEGRAM_URL=... -e INTEGRAM_EMAIL=... -e INTEGRAM_PA
|
|
|
190
190
|
| **lookups** | Справочники: варианты для dropdown/ref | 2 |
|
|
191
191
|
<!-- END:tool-groups -->
|
|
192
192
|
|
|
193
|
-
Core активна сразу (
|
|
193
|
+
Core активна сразу (20 tools). Остальные — через `search_tools`.
|
package/index.js
CHANGED
|
@@ -255,6 +255,7 @@ Phrase triggers — user wording maps to a tool group; activate it and use its t
|
|
|
255
255
|
- 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.
|
|
256
256
|
- Estimates (1-2-3-5-8-13-21) only for OPEN tasks; don't set on done.
|
|
257
257
|
- Never invent due_date; set it only if the user named a date. Done-статус — переходом через pm_update_issue, не сразу при создании.
|
|
258
|
+
- Child issues do NOT inherit labels from their epic — set labels explicitly on every create.
|
|
258
259
|
- 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.
|
|
259
260
|
|
|
260
261
|
Only core tools (CRUD, search, docs corpus, graph, comments, bulk, history) are loaded by default. Use search_tools to activate more — it reports how many tools it activated and names them:
|
|
@@ -851,8 +852,8 @@ Client-facing portal management. Activate via search_tools("portal").
|
|
|
851
852
|
|
|
852
853
|
**Configuration:**
|
|
853
854
|
- get_portal_config() — current portal config (branding, pages, modules, auth, chat, SEO)
|
|
854
|
-
- set_portal_config(config, active, custom_domain, merge?) — create/replace full config. With \`merge: true\` — deep-merge partial config into existing (no need to send entire config; only changed fields). **Requires confirmation.**
|
|
855
|
-
- update_portal_module(slug, config, moduleIndex) — update one module without overwriting others
|
|
855
|
+
- set_portal_config(config, active, custom_domain, merge?) — create/replace full config. With \`merge: true\` — deep-merge partial config into existing (no need to send entire config; only changed fields). Arrays are NOT merged — a partial \`pages[]\` replaces every page; for a one-module change use update_portal_module. **Requires confirmation.**
|
|
856
|
+
- update_portal_module(slug, config, moduleIndex) — update one module without overwriting others. Shallow merge into modules[moduleIndex ?? 0].config — keys you pass replace, keys you omit survive. If the MCP tool call cannot be issued, the equivalent REST is workspace-admin JWT → POST /api/v2/:db/portal/api/config (same upsertConfig + cache invalidation).
|
|
856
857
|
- portal_preview() — get preview URL
|
|
857
858
|
- portal_publish(active) — publish (true) or unpublish (false). **Requires confirmation.**
|
|
858
859
|
|
|
@@ -871,7 +872,7 @@ Client-facing portal management. Activate via search_tools("portal").
|
|
|
871
872
|
|
|
872
873
|
**Custom Code:**
|
|
873
874
|
- Before writing data reading or the markup of a portal section, call kit_list_components — the @kit library already has reading with a completeness proof, EAV value recovery and the three absence states. Don't reinvent them.
|
|
874
|
-
- kit_list_components(version?, kind?, search?) — catalog of @kit building blocks: name, kind, one-line summary, module. Generated from the library sources at build time, so it cannot drift from the code. An empty list means an empty filter; a missing catalog comes back as a refusal (KIT_NOT_DEPLOYED / KIT_VERSION_NOT_FOUND / KIT_CATALOG_MISSING / KIT_CATALOG_BROKEN).
|
|
875
|
+
- kit_list_components(version?, kind?, search?) — catalog of @kit building blocks: name, kind, one-line summary, module. Generated from the library sources at build time, so it cannot drift from the code. An empty list means an empty filter; a missing catalog comes back as a refusal (KIT_NOT_DEPLOYED / KIT_VERSION_NOT_FOUND / KIT_CATALOG_MISSING / KIT_CATALOG_BROKEN). KIT_NOT_DEPLOYED means the server has no KIT_ASSETS_DIR root or no catalog versions — kit.js itself may still be served by nginx; the fix is deploying the manifest, not moving artifacts.
|
|
875
876
|
- kit_get_component(name, version?) — one entry in detail: module, kind, summary, props, slots and uiKeys for components. Unknown name → refusal listing similar names.
|
|
876
877
|
- Styling a @kit widget: never invent class names or token names. Node classes go in through the \`ui\` prop — a map of node key to your classes, e.g. \`<DataTable :ui="{ row: 'my-row' }" />\`; the keys are \`uiKeys\` from kit_get_component, your classes are APPENDED to the widget's own, and a key outside that list does not exist (the widget refuses it and warns in the console). Token names come from kit_get_tokens. A widget with no uiKeys field takes no \`ui\` prop at all — either it is headless, or the deployed version predates the prop.
|
|
877
878
|
- kit_get_tokens(version?, kind?, component?) — the styling contract: every CSS variable the @kit widgets read (colour, spacing, radius, font, motion) plus the stable class names of each widget. Call it BEFORE writing any style for a @kit widget. A name that is not in this dictionary does not exist: it resolves to nothing, and the section comes out structurally correct, with correct ARIA, and completely unstyled — behavioural tests will not catch it, only looking at the rendered page will. Never invent a token name, never guess a prefix. Each token ships a ready \`usage\` string, e.g. \`var(--kit-color-text, var(--color-text, #1f2328))\` — write it whole, fallback included, because the middle link is the portal shell's own token and that is what makes the widget inherit the portal theme. Refusals: KIT_TOKENS_MISSING (versions up to 0.4.0 carry no dictionary), KIT_NO_STYLING (headless widget, nothing to style).
|
|
@@ -1184,6 +1185,9 @@ When agentSlug is set, Q&A is saved to teamchat room 'meta-kb' instead of _v2_ai
|
|
|
1184
1185
|
|
|
1185
1186
|
## Confirmation flow
|
|
1186
1187
|
Destructive and schema operations return "REQUIRES CONFIRMATION". Ask the user to confirm, then call confirm_action(approved=true/false). Never auto-confirm without explicit user approval.
|
|
1188
|
+
|
|
1189
|
+
## Reporting platform issues
|
|
1190
|
+
- report_platform_issue(toolName, title, whatHappened, errorCode?, errorMessage?, category?, severity?, mcpVersion?) — отправить отчёт о проблеме платформы мейнтейнеру. ЗОВИ ЕГО: (1) после необъяснимого отказа инструмента — отказ не по правам/данным, а похожий на поломку (500, INTERNAL, противоречивый ответ); (2) когда несколько попыток подряд не приводят к цели и причина непонятна; (3) когда сам понял, что сделал не то, чего хотел пользователь, и это следствие ограничения платформы, а не твоей ошибки; (4) когда пользователь просит сообщить о проблеме. НЕ зови при обычных отказах прав (FORBIDDEN, NO_READ_ACCESS) — это законные ответы, не баги. Категория: bug — платформа сломалась; missing_capability — нужной возможности нет; docs — документация неясна или неверна; ux — работает, но против всякого здравого смысла. Перед вызовом составь черновик из контекста (что было целью, что делал, сколько попыток, что ответил сервер) и покажи пользователю. Секреты в поля не писать — сервер дополнительно санитизирует. Ответ содержит номер issue — назови его пользователю.
|
|
1187
1191
|
`;
|
|
1188
1192
|
|
|
1189
1193
|
const server = new Server(
|
package/package.json
CHANGED