integram-mcp 0.7.28 → 0.7.31
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 +4 -4
- package/index.js +14 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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.31
|
|
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.31
|
|
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.31"],
|
|
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.31"],
|
|
81
81
|
"env": {
|
|
82
82
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
83
83
|
"INTEGRAM_EMAIL": "you@example.com",
|
package/index.js
CHANGED
|
@@ -204,7 +204,6 @@ async function checkForUpdate() {
|
|
|
204
204
|
// одноразовая приписка в длинной сессии теряется, а устаревшая сборка — это
|
|
205
205
|
// дыра против юзера (нет новых тулов и фиксов до ручного обновления).
|
|
206
206
|
function withUpdateNotice(result) {
|
|
207
|
-
lastCallAt = Date.now();
|
|
208
207
|
if (!updateNotice) return result;
|
|
209
208
|
if (!result || !Array.isArray(result.content)) return result;
|
|
210
209
|
return { ...result, content: [...result.content, { type: 'text', text: updateNotice }] };
|
|
@@ -708,8 +707,12 @@ Event-driven rules: when X happens → check condition → do Y. Activate via se
|
|
|
708
707
|
|
|
709
708
|
create_automation({ name, trigger: { type, typeId }, active?, condition, actions: [{ type, config }] })
|
|
710
709
|
- active: false — создать выключенной (по умолчанию включена; выключенная не встаёт в расписание и не срабатывает)
|
|
711
|
-
- Trigger types: on_create, on_update, on_delete, on_deadline, on_webhook, on_form_submit, schedule, manual, ai_analysis, on_metric_threshold, on_metric_silence, on_document, on_telegram_command, on_telegram_message, on_telegram_pre_checkout, on_telegram_shipping, on_telegram_payment, on_telegram_inline, on_telegram_join_request, on_telegram_business_connection, on_telegram_business_message, on_bot_chat_member
|
|
712
|
-
|
|
710
|
+
- Trigger types: on_create, on_update, on_delete, on_deadline, on_webhook, on_form_submit, schedule, manual, ai_analysis, on_metric_threshold, on_metric_silence, on_document, on_telegram_command, on_telegram_message, on_telegram_pre_checkout, on_telegram_shipping, on_telegram_payment, on_telegram_inline, on_telegram_join_request, on_telegram_business_connection, on_telegram_business_message, on_bot_chat_member, pm_deadline, on_issue_commented, on_issue_updated
|
|
711
|
+
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}}')
|
|
712
|
+
on_issue_commented / on_issue_updated: событие PM-задачи (комментарий / правка полей), pm-переменные те же
|
|
713
|
+
- Actions: send_notification, send_notification_to_group, update_field, create_object, delete_object, fire_webhook, run_ai_agent, run_script, run_server_function, send_telegram, 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
|
|
714
|
+
create_issue: { title, description?, issue_type?, priority?, assignee_id?, parent_id?, board_id?, sprint_id?, due_date?, estimate?, labels? } — создаёт PM-задачу; результат: {{_created_issue_id}}, {{_created_issue_number}}
|
|
715
|
+
update_issue: { id, title?, description?, issue_type?, status?, priority?, assignee_id?, sprint_id?, parent_id?, estimate?, due_date?, labels? } — правит PM-задачу; id можно взять из {{pm_issue_id}}
|
|
713
716
|
update_related_records: { childTypeId, matchRefReqId, targetTypeId, targetMatchReqId, targetFieldReqId, sourceFieldReqId, operation: 'add'|'subtract'|'set' } — declarative cross-table update (e.g. inventory deduction: order items → match product ref → subtract from stock)
|
|
714
717
|
run_server_function: { repo, fn, args?, resultVar?, idempotencyKey?, idempotencyMinutes? } — call a codespace server function (api/<fn>.js in a workspace git repo) from an automation; this is how repo code gets put on a schedule (trigger.type: 'schedule'), which previously was impossible since server functions were reachable only over HTTP from the portal. Same sandbox, capabilities and limits as the portal path (codespace/server-fn-executor.js); capabilities are declared by a "// capabilities:" comment inside the function file. Replay protection is ON by default: repo+fn+args+record runs once per idempotencyMinutes (default 1) — keep it BELOW the schedule interval or runs are silently skipped; 0 disables it. A failed call releases its claim so the next run retries. Sets {{_server_fn_error}} / {{_server_fn_skipped}}.
|
|
715
718
|
send_notification_to_group: { typeId, usernameReqId, title, body, filter?: { reqId, val } } — notifies all members of a table whose usernameReqId field is a valid Integram username; optional filter restricts to members where reqId==val (e.g. role filter)
|
|
@@ -2235,10 +2238,15 @@ async function main() {
|
|
|
2235
2238
|
// 3. час без единого вызова инструмента — сессия, в которой нас забыли.
|
|
2236
2239
|
// Живой клиент переносит смерть сервера безболезненно: stdio-сервер
|
|
2237
2240
|
// перезапускается по требованию при следующем вызове.
|
|
2241
|
+
//
|
|
2242
|
+
// ВЫХОД ТОЛЬКО ПО СИРОТСТВУ (ppid сменился — родитель умер). Условие «час без
|
|
2243
|
+
// завершённых вызовов» здесь жить не должно: инцидент 03.09.2026 — живая
|
|
2244
|
+
// сессия не звала integram-инструменты час, сторож тихо сделал exit(0),
|
|
2245
|
+
// у клиента «MCP error», потребовался ручной reconnect. Простой живой сессии —
|
|
2246
|
+
// не признак сиротства; смерть родителя ловит проверка ppid, смерть клиента —
|
|
2247
|
+
// stdin end/close.
|
|
2238
2248
|
let ppid0 = process.ppid;
|
|
2239
|
-
let lastCallAt = Date.now();
|
|
2240
2249
|
const ORPHAN_WATCHDOG_MS = 30_000;
|
|
2241
|
-
const ORPHAN_IDLE_MS = 60 * 60 * 1000;
|
|
2242
2250
|
|
|
2243
2251
|
function startOrphanWatchdog() {
|
|
2244
2252
|
process.stdin.on('end', () => process.exit(0));
|
|
@@ -2248,7 +2256,7 @@ function startOrphanWatchdog() {
|
|
|
2248
2256
|
process.on('SIGTERM', () => process.exit(0));
|
|
2249
2257
|
process.on('SIGINT', () => process.exit(0));
|
|
2250
2258
|
const timer = setInterval(() => {
|
|
2251
|
-
if (process.ppid !== ppid0
|
|
2259
|
+
if (process.ppid !== ppid0) process.exit(0);
|
|
2252
2260
|
}, ORPHAN_WATCHDOG_MS);
|
|
2253
2261
|
timer.unref();
|
|
2254
2262
|
}
|
package/package.json
CHANGED