integram-mcp 0.7.85 → 0.7.87

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 +4 -4
  2. package/index.js +7 -2
  3. 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.85
18
+ -- npx -y integram-mcp@0.7.87
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.85
46
+ -- npx -y integram-mcp@0.7.87
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.85"],
60
+ "args": ["-y", "integram-mcp@0.7.87"],
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.85"],
80
+ "args": ["-y", "integram-mcp@0.7.87"],
81
81
  "env": {
82
82
  "INTEGRAM_URL": "https://ai2o.online",
83
83
  "INTEGRAM_EMAIL": "you@example.com",
package/index.js CHANGED
@@ -320,6 +320,8 @@ Stuck or unsure how the platform works? docs_map() and docs_search(query) are ac
320
320
 
321
321
  Only core tools (CRUD, search, docs corpus, graph, comments, bulk, history) are loaded by default. Use search_tools to activate more — it reports what it activated and names the tools, so it doubles as the group catalog.
322
322
 
323
+ Different tools with similar names are NOT interchangeable. Before any call that requires confirmation, verify the exact tool name against its description: set_grant (group "grants") changes access rights, set_portal_config (group "portal") writes the portal config — one is not the other. If the tool you need is not in the active list, call search_tools to activate its group — never substitute a similar active tool.
324
+
323
325
  ---
324
326
 
325
327
  Phrase triggers — user wording maps to a tool group; activate it and use its tools, do NOT fall back to generic objects/documents:
@@ -425,6 +427,8 @@ plan_schema({ tables: [...] }) creates all tables, columns, refs, and seed recor
425
427
  - required — true for mandatory field
426
428
  - unique — true for unique constraint (article codes, SKU, email if must be unique)
427
429
  - size — length limit: "100" (max chars) or "10,2" (precision,scale for numbers e.g. price with 2 decimals)
430
+ - kind — set to "FORMULA" for a computed column. Only FORMULA is supported in plan_schema.
431
+ - expr — formula for kind=FORMULA. Variables are other column aliases of the SAME table in square brackets: "[Цена] * [Количество]". Variables are resolved to column IDs automatically.
428
432
 
429
433
  **Smart header grouping — column merging under parent headers:**
430
434
  Use dot "." in alias to group columns: "Group.Column" → columns with same prefix merge under a shared header.
@@ -444,6 +448,7 @@ Every table automatically has a virtual _value column — the record's display n
444
448
  - Tables are auto-sorted: lookups first, then parents, then children. No need to order manually.
445
449
  - refTable must match the exact name of another table in the same plan.
446
450
  - After plan_schema completes — ALL tables, columns, refs, and seed records are ALREADY created. Do NOT call create_table, add_column, create_object, or plan_schema after it — everything is done. Just tell the user what was created.
451
+ - LOOKUP/ROLLUP columns are NOT supported in plan_schema — create the tables first, then add them with create_computed.
447
452
 
448
453
  **Example — Project Management:**
449
454
  \`\`\`json
@@ -1365,7 +1370,7 @@ const DESTRUCTIVE_TOOLS = new Set([
1365
1370
 
1366
1371
  // English descriptions for MCP — backend TOOL_DEFS are in Russian for the in-app agent.
1367
1372
  // Add entries here when introducing new tools so MCP clients see English descriptions.
1368
- const EN_DESCRIPTIONS = {
1373
+ export const EN_DESCRIPTIONS = {
1369
1374
  // Lookups
1370
1375
  get_lookup: 'Get dropdown values for a lookup table by ID. Returns an array of records with id and display name.',
1371
1376
  get_ref_options: 'Get available options for a reference column by reqId. Use before creating/updating objects to discover valid values for ref fields.',
@@ -1681,7 +1686,7 @@ const EN_DESCRIPTIONS = {
1681
1686
  get_schema_snapshot: 'Get the table structure snapshot saved before a destructive operation (column deletion etc).',
1682
1687
  get_schema_backlinks: 'Show which columns from OTHER tables reference this table (backlinks). Useful when building ROLLUP — shows available links. Returns: { items:[{colId,colName,fromTypeId,fromTypeName}] }.',
1683
1688
  // Plan schema
1684
- plan_schema: 'Create a COMPLETE data schema in one shot — tables, columns, lookups, links, child tables — in a single action with one user confirmation. USE INSTEAD OF create_table + add_column when creating 2+ tables. IMPORTANT: specify columns ONLY in the source table (the one that REFERENCES), not in the lookup table. Do NOT create a "Name"/"Title" column — it duplicates _value. Use valueColumnName for the display title. Returns: { type:"schema", tables:[{id,name}], created, skipped, errors, message }.',
1689
+ plan_schema: 'Create a COMPLETE data schema in one shot — tables, columns, lookups, links, child tables — in a single action with one user confirmation. USE INSTEAD OF create_table + add_column when creating 2+ tables. IMPORTANT: specify columns ONLY in the source table (the one that REFERENCES), not in the lookup table. Do NOT create a "Name"/"Title" column — it duplicates _value. Use valueColumnName for the display title. Computed FORMULA columns: {alias, kind: "FORMULA", expr: "[Price] * [Qty]"}. LOOKUP/ROLLUP are not supported here — use create_computed. Returns: { type:"schema", tables:[{id,name}], created, skipped, errors, message }.',
1685
1690
  // AI Button
1686
1691
  get_ai_button_config: 'Get AI button configuration (prompt, model, outputReqId, temperature).',
1687
1692
  configure_ai_button: 'Configure an AI button — set the prompt, model, and where to write the result. In the prompt use [ColumnName] to substitute row values, [ID] for the record id, [VAL] for the record name. outputReqId — column ID to auto-write the result (optional). temperature: "low"(0.2)/"medium"(0.7)/"high"(1.2). agentMode: true runs a full AI agent with access to all tools (web_search, tables, documents etc).',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integram-mcp",
3
- "version": "0.7.85",
3
+ "version": "0.7.87",
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",