integram-mcp 0.7.112 → 0.7.115
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 +30 -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 — даёт доступ к 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.115
|
|
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.115
|
|
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.115"],
|
|
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.115"],
|
|
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
|
@@ -211,11 +211,21 @@ async function checkForUpdate() {
|
|
|
211
211
|
if (cmpVersion(latest, PKG.version) <= 0) return;
|
|
212
212
|
|
|
213
213
|
log(`Доступна версия ${latest} (запущена ${PKG.version}): https://www.npmjs.com/package/${PKG.name}`);
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
214
|
+
// Запуск из репозитория (конфиг указывает на index.js, не на node_modules):
|
|
215
|
+
// пакет в конфиге никто не «пинует» — код в репо мог уже уехать вперёд при
|
|
216
|
+
// локальном бампе, просто процесс ещё живёт со старым. Чинится перезапуском
|
|
217
|
+
// сервера, а не правкой конфига.
|
|
218
|
+
const fromRepo = !__dirname.split(path.sep).includes('node_modules');
|
|
219
|
+
updateNotice = fromRepo
|
|
220
|
+
? [
|
|
221
|
+
`⚠️ integram-mcp: процесс запущен из репозитория и отстал (запущена ${PKG.version}, в npm ${latest}).`,
|
|
222
|
+
`Скажи пользователю перезапустить MCP-сервер (в Claude Code: /mcp → Reconnect) — код в репозитории уже свежий, конфиг править не нужно.`,
|
|
223
|
+
].join(' ')
|
|
224
|
+
: [
|
|
225
|
+
`⚠️ integram-mcp: запущена версия ${PKG.version}, в npm выложена ${latest}.`,
|
|
226
|
+
`Скажи пользователю обновиться: заменить версию в конфиге MCP на \`${PKG.name}@${latest}\` и перезапустить клиент.`,
|
|
227
|
+
`Список изменений: https://www.npmjs.com/package/${PKG.name}`,
|
|
228
|
+
].join(' ');
|
|
219
229
|
} catch { /* нет сети, реестр недоступен, прокси — работе сервера не мешает */ }
|
|
220
230
|
}
|
|
221
231
|
|
|
@@ -1335,7 +1345,7 @@ const READ_ONLY_TOOLS = new Set([
|
|
|
1335
1345
|
'list_documents', 'get_object_history', 'list_comments', 'semantic_search',
|
|
1336
1346
|
'get_table_schema', 'list_reports', 'get_report', 'describe_report',
|
|
1337
1347
|
'list_members', 'list_roles', 'get_user_permissions', 'list_grants',
|
|
1338
|
-
'search_documents', 'get_document', 'get_document_blocks',
|
|
1348
|
+
'search_documents', 'get_document', 'get_document_blocks', 'workflow_get_state',
|
|
1339
1349
|
'list_doc_versions', 'list_doc_sharing', 'list_doc_folders', 'list_doc_tags', 'preview_document',
|
|
1340
1350
|
'get_block_history', 'get_doc_version',
|
|
1341
1351
|
'recall', 'find_procedure', 'list_contradictions',
|
|
@@ -1439,7 +1449,7 @@ export const EN_DESCRIPTIONS = {
|
|
|
1439
1449
|
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
1450
|
meetings_teardown: 'Deactivate the meeting conveyor automations (every meetings: * name, requires confirmation). The workspace config is kept. Returns: {deactivated, message}.',
|
|
1441
1451
|
// 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 }] }.',
|
|
1452
|
+
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
1453
|
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
1454
|
// Meta-KB
|
|
1445
1455
|
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 }.',
|
|
@@ -2204,6 +2214,7 @@ export const EN_DESCRIPTIONS = {
|
|
|
2204
2214
|
pm_get_lead_time: 'Get lead time metrics — time from creation to close, with avg/median.',
|
|
2205
2215
|
pm_get_workload: 'Get workload distribution across team members — active issues, in-progress, overdue, points.',
|
|
2206
2216
|
pm_detect_blockers: 'Find blocked/stale/overdue issues. Returns blockers with reasons.',
|
|
2217
|
+
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
2218
|
pm_summarize_sprint: 'AI summary of a sprint — done, remaining, overdue, points. Useful for standup/review.',
|
|
2208
2219
|
pm_triage_issue: 'Auto-classify an issue: suggest type, priority, labels based on title/description.',
|
|
2209
2220
|
pm_decompose_issue: 'Break down an issue into sub-tasks. Extracts checklists/headers from the description, or suggests a generic breakdown.',
|
|
@@ -3141,6 +3152,18 @@ const AUTO_UPDATE_INTERVAL = 60 * 60 * 1000; // check every hour
|
|
|
3141
3152
|
|
|
3142
3153
|
function tryAutoUpdate() {
|
|
3143
3154
|
try {
|
|
3155
|
+
// Слепое пятно git pull: в дев-дереве репо уезжает вперёд ЛОКАЛЬНЫМИ
|
|
3156
|
+
// коммитами (bump-on-change поднимает версию при правках mcp-server),
|
|
3157
|
+
// и pull отвечает «Already up to date», не замечая смены кода под
|
|
3158
|
+
// процессом. Поэтому версия из package.json на диске сверяется с
|
|
3159
|
+
// запущенной ПЕРВЫМ делом — расхождение само по себе повод к рестарту.
|
|
3160
|
+
const diskVersion = createRequire(import.meta.url)('./package.json').version;
|
|
3161
|
+
if (cmpVersion(diskVersion, PKG.version) !== 0) {
|
|
3162
|
+
log(`Version on disk is ${diskVersion}, running ${PKG.version} — restarting to pick it up...`);
|
|
3163
|
+
log('Shutting down gracefully...');
|
|
3164
|
+
setTimeout(() => process.exit(0), 2000);
|
|
3165
|
+
return;
|
|
3166
|
+
}
|
|
3144
3167
|
execSync('git rev-parse --git-dir', { cwd: __dirname, stdio: 'ignore' });
|
|
3145
3168
|
const before = execSync('git rev-parse HEAD', { cwd: __dirname, encoding: 'utf8' }).trim();
|
|
3146
3169
|
execSync('git pull --ff-only', { cwd: __dirname, stdio: 'ignore', timeout: 15000 });
|
package/package.json
CHANGED