integram-mcp 0.7.114 → 0.7.119

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.
Files changed (3) hide show
  1. package/README.md +7 -7
  2. package/index.js +32 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/integram-mcp)](https://www.npmjs.com/package/integram-mcp)
4
4
 
5
- MCP-сервер для Integram — даёт доступ к 772 инструментам (таблицы, документы, отчёты, автоматизации, портал, Telegram-боты, граф знаний и т.д.) из Claude Code, Claude Desktop и Cursor.
5
+ MCP-сервер для Integram — даёт доступ к 773 инструментам (таблицы, документы, отчёты, автоматизации, портал, 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.114
18
+ -- npx -y integram-mcp@0.7.119
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.114
46
+ -- npx -y integram-mcp@0.7.119
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.114"],
60
+ "args": ["-y", "integram-mcp@0.7.119"],
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.114"],
80
+ "args": ["-y", "integram-mcp@0.7.119"],
81
81
  "env": {
82
82
  "INTEGRAM_URL": "https://ai2o.online",
83
83
  "INTEGRAM_EMAIL": "you@example.com",
@@ -177,7 +177,7 @@ claude mcp add integram -e INTEGRAM_URL=... -e INTEGRAM_EMAIL=... -e INTEGRAM_PA
177
177
  | **orgs** | Организации: участники, области, приглашения | 29 |
178
178
  | **memory** | Память агента, инсайты, процедуры, противоречия | 28 |
179
179
  | **meta-kb** | Дебаты: параллельные эксперты, LLM-синтез, курирование знаний | 25 |
180
- | **core** | CRUD объектов, поиск, справочник платформы (docs_map/docs_search), граф, комментарии, bulk-операции | 20 |
180
+ | **core** | CRUD объектов, поиск, справочник платформы (docs_map/docs_search), граф, комментарии, bulk-операции | 21 |
181
181
  | **objects** | Перемещение, дублирование, переупорядочивание записей, корзина, обратные ссылки | 20 |
182
182
  | **agents** | Реестр внешних AI-агентов, делегирование | 16 |
183
183
  | **reports** | Отчёты: CRUD, колонки, JOIN, фильтры, экспорт | 16 |
@@ -202,4 +202,4 @@ claude mcp add integram -e INTEGRAM_URL=... -e INTEGRAM_EMAIL=... -e INTEGRAM_PA
202
202
  | **workflows** | Событийные процессы (ADR-036): состояние и биография объекта, запись события в append-only журнал | 2 |
203
203
  <!-- END:tool-groups -->
204
204
 
205
- Core активна сразу (20 tools). Остальные — через `search_tools`.
205
+ Core активна сразу (21 tools). Остальные — через `search_tools`.
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
- updateNotice = [
215
- `⚠️ integram-mcp: запущена версия ${PKG.version}, в npm выложена ${latest}.`,
216
- `Скажи пользователю обновиться: заменить версию в конфиге MCP на \`${PKG.name}@${latest}\` и перезапустить клиент.`,
217
- `Список изменений: https://www.npmjs.com/package/${PKG.name}`,
218
- ].join(' ');
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
 
@@ -1230,6 +1240,7 @@ Destructive and schema operations return "REQUIRES CONFIRMATION". Ask the user t
1230
1240
 
1231
1241
  ## Reporting platform issues
1232
1242
  - 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 — назови его пользователю.
1243
+ - list_my_feedback() — показать пользователю его отчёты о проблемах и статус задач по ним (номер PM, статус, вхождения). Зови после отправки отчёта и когда пользователь спрашивает, что с его отчётом.
1233
1244
  `;
1234
1245
 
1235
1246
  const server = new Server(
@@ -1645,7 +1656,7 @@ export const EN_DESCRIPTIONS = {
1645
1656
  _load_schema_guide: 'Load the data modeling guide with schema examples. ALWAYS call before plan_schema or when you need to create/modify table structure.',
1646
1657
  search_tools: 'Discover and activate additional tools by keyword. Use when you need a capability missing from the current set (reports, schema, permissions, documents, automations).',
1647
1658
  list_tables: 'List workspace tables. Returns ID, name, column count, creation date. Supports search and sorting. Returns: { items:[{id,name,columns}], total }.',
1648
- list_objects: 'Get records from a table. THE ONLY source of record data — always call for "how many records", "show", "find". Response has fields aliased by column name plus summary (aggregation over ref columns: top values with counts). Filter with where: { "Column name": "value" } — simple substring match, e.g. { "Status": "Active" }. Use search for full-text lookup when the column alias is unknown. VIEWS: pass viewId to apply the filters of a saved view automatically (list them via list_views); viewId combines with where (extra filters applied on top). PAGINATION: if hasMore=true, request page=2,3... until all data collected. USE summary FOR THE BIG PICTURE: do not enumerate all rows when there are many — rely on summary (distribution by country, type, manufacturer). Records without a value appear as a separate { value: null, count: N, noValue: true } row — count them or "how many X" won\'t match total. For a single ref the count sum equals total; for a multi ref (:MULTI:) it is legitimately larger. If _summaryTruncated is set, only the most frequent values are shown for those columns.',
1659
+ list_objects: 'Get records from a table. THE ONLY source of record data — always call for "how many records", "show", "find". Response has fields aliased by column name plus summary (aggregation over ref columns: top values with counts). Filter with where: { "Column name": "value" } — simple substring match, e.g. { "Status": "Active" }. Use search for full-text lookup when the column alias is unknown. VIEWS: pass viewId to apply the filters of a saved view automatically (list them via list_views); viewId combines with where (extra filters applied on top). PAGINATION: if hasMore=true, request page=2,3... until all data collected. USE summary FOR THE BIG PICTURE: do not enumerate all rows when there are many — rely on summary (distribution by country, type, manufacturer). Records without a value appear as a separate { value: null, count: N, noValue: true } row — count them or "how many X" won\'t match total. For a single ref the count sum equals total; for a multi ref (:MULTI:) it is legitimately larger. If _summaryTruncated is set, only the most frequent values are shown for those columns. parentId (number, optional): ID of the parent record — for child tables pass parentId to read ONE parent\'s rows (e.g. line items of one order); the summary is computed over the same narrowed set. Without it a child table returns rows of ALL parents.',
1649
1660
  get_object: 'Get a full object record by ID. Returns: { id, type:"object", ...fields }. Error: { error:"NOT_FOUND", message }. NOT for documents: if the ID is a document, use get_document(docId).',
1650
1661
  resolve_client: 'Recompute a client golden record from source rows using deterministic survivorship rules: per-field source priority + validators + lineage. Governed writeback — the only sanctioned way to write golden fields. Returns: { clientId, resolved, lineage, conflicts, goldenAddressId }.',
1651
1662
  list_specs: 'List specs (declarative data invariants) of a table. Returns: { items:[{id,name,definition,enabled}], total }.',
@@ -1771,7 +1782,7 @@ export const EN_DESCRIPTIONS = {
1771
1782
  list_doc_trash: 'List deleted documents (trash). Returns: { items:[{id,title,deletedAt}], total }.',
1772
1783
  restore_document: 'Restore a document from trash. Returns: { message }.',
1773
1784
  create_document_from_template: 'Create a new document from a template. A template is a document with is_template=true. Returns: { id, title }.',
1774
- generate_pdf: 'Generate a PDF from a template for a specific record. A template is a document with [Column] variables. Returns: { filename, size, base64 }.',
1785
+ generate_pdf: 'Generate a PDF from a template for a specific record. A template is a document (delta blocks or HTML) with [Column], {{column}}, {{req_N}} or {{computed_N}} variables; formatters like {{column|currency}}. Use list_document_variables to discover them. Returns: { filename, size, base64 }.',
1775
1786
  generate_docx: 'Generate a DOCX from a record using a template. templateDocId — ID of a .docx file in the workspace file storage. Returns: { filename, message }.',
1776
1787
  // Automations
1777
1788
  list_automations: 'List all automations in the workspace. Returns: { items:[{id,name}], total }.',
@@ -2163,7 +2174,7 @@ export const EN_DESCRIPTIONS = {
2163
2174
  pm_unlink_data: 'Remove a data link between a PM issue and workspace data.',
2164
2175
  pm_list_data_links: 'List data links of a PM issue (linked tables, documents, reports).',
2165
2176
  pm_toggle_checklist: 'Toggle a checklist item on a PM issue by item id. Omit done to flip the current state. Item ids come from the issue checklist field; positions are not addressable.',
2166
- pm_bulk_update: 'Update multiple PM issues at once (e.g. set status/priority/assignee for a batch).',
2177
+ pm_bulk_update: 'Update multiple PM issues at once (e.g. set status/priority/assignee for a batch). fields.assignee_id: 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.',
2167
2178
  pm_bulk_delete: 'Soft-delete multiple PM issues (move to trash).',
2168
2179
  pm_list_comments: 'List comments of a PM issue.',
2169
2180
  pm_update_comment: 'Edit a PM issue comment (author only).',
@@ -2184,6 +2195,7 @@ export const EN_DESCRIPTIONS = {
2184
2195
  pm_export_csv: 'Export PM issues to CSV. Returns { csv, rowCount }. Supports the same filters as pm_list_issues.',
2185
2196
  pm_list_sprints: 'List all sprints in the workspace.',
2186
2197
  report_platform_issue: 'Report a platform problem (unexplained tool failure, confusing result, unclear documentation) to the platform maintainer. Call after an unexplained tool error or on explicit user request; draft the report from the failure context first. The report body is sanitized of secrets, and the user confirms sending.',
2198
+ list_my_feedback: "List the user's own platform-issue reports (report_platform_issue) with the status of their PM tasks: number, status, occurrence count. Returns: { items:[...], total, workspace }.",
2187
2199
  pm_create_sprint: 'Create a new sprint.',
2188
2200
  pm_update_sprint: 'Update an existing sprint.',
2189
2201
  pm_start_sprint: 'Start a sprint (changes status to active).',
@@ -3142,6 +3154,18 @@ const AUTO_UPDATE_INTERVAL = 60 * 60 * 1000; // check every hour
3142
3154
 
3143
3155
  function tryAutoUpdate() {
3144
3156
  try {
3157
+ // Слепое пятно git pull: в дев-дереве репо уезжает вперёд ЛОКАЛЬНЫМИ
3158
+ // коммитами (bump-on-change поднимает версию при правках mcp-server),
3159
+ // и pull отвечает «Already up to date», не замечая смены кода под
3160
+ // процессом. Поэтому версия из package.json на диске сверяется с
3161
+ // запущенной ПЕРВЫМ делом — расхождение само по себе повод к рестарту.
3162
+ const diskVersion = createRequire(import.meta.url)('./package.json').version;
3163
+ if (cmpVersion(diskVersion, PKG.version) !== 0) {
3164
+ log(`Version on disk is ${diskVersion}, running ${PKG.version} — restarting to pick it up...`);
3165
+ log('Shutting down gracefully...');
3166
+ setTimeout(() => process.exit(0), 2000);
3167
+ return;
3168
+ }
3145
3169
  execSync('git rev-parse --git-dir', { cwd: __dirname, stdio: 'ignore' });
3146
3170
  const before = execSync('git rev-parse HEAD', { cwd: __dirname, encoding: 'utf8' }).trim();
3147
3171
  execSync('git pull --ff-only', { cwd: __dirname, stdio: 'ignore', timeout: 15000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integram-mcp",
3
- "version": "0.7.114",
3
+ "version": "0.7.119",
4
4
  "type": "module",
5
5
  "description": "MCP server for Integram — connect AI assistants to your workspace via Model Context Protocol",
6
6
  "mcpName": "io.github.judas-priest/integram",