integram-mcp 0.7.52 → 0.7.53

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 +127 -0
  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.52
18
+ -- npx -y integram-mcp@0.7.53
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.52
46
+ -- npx -y integram-mcp@0.7.53
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.52"],
60
+ "args": ["-y", "integram-mcp@0.7.53"],
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.52"],
80
+ "args": ["-y", "integram-mcp@0.7.53"],
81
81
  "env": {
82
82
  "INTEGRAM_URL": "https://ai2o.online",
83
83
  "INTEGRAM_EMAIL": "you@example.com",
package/index.js CHANGED
@@ -1481,6 +1481,133 @@ const EN_DESCRIPTIONS = {
1481
1481
  register_agent: 'Register a new external AI agent with endpoint URL, capabilities, and authentication.',
1482
1482
  update_agent: 'Update an external agent configuration — endpoint, capabilities, description.',
1483
1483
  delete_agent: 'Delete a registered external agent. Destructive — HITL required.',
1484
+ // Specs (data invariants)
1485
+ create_spec: 'Create a data spec (declarative invariant, ADR-019) for a table. definition: { rules: [{ field, op, value?, problem? }] }. Returns: { id, typeId, name, definition, enabled }.',
1486
+ update_spec: 'Update a spec: name, definition, enabled. Pass definition in FULL — it replaces the stored one. Returns: { id, ...fields }.',
1487
+ delete_spec: 'Delete a spec by ID (requires confirmation). View the spec via list_specs first. Returns: { id, deleted: true }.',
1488
+ // Documents — new tools
1489
+ update_document_fields: 'Update document fields: parent_id, folder_id, sort_order, is_template, is_public, icon, cover_url (for the title alone use update_document_title). null resets a value where allowed. Returns the updated document.',
1490
+ restore_block_version: 'Restore block content from a history version (browse history via get_block_history). Requires confirmation. Returns the updated block.',
1491
+ list_document_variables: 'List template variables for a table type — system fields and columns that can be interpolated into document templates. Returns: { typeId, variables: [{ name, label, type }] }.',
1492
+ // Agent memory
1493
+ list_memories: 'Browse stored memories as a list: keys, values, tags, scopes. Unlike recall (question search), this is an overview of memory contents. Optional tag filter, includeShared, limit (default 50, max 200).',
1494
+ hybrid_search_memory: 'Hybrid search over agent memory (vector + BM25 + MMR) — more precise than recall for pinpoint queries. tags/scope/minScore filters apply after ranking. Returns ranked results with scores.',
1495
+ get_memory_history: 'Bitemporal change history of a memory record by key — which values were written and when. Returns a list of versions.',
1496
+ get_shared_state_log: 'Event log of shared state changes — who changed which key and when. Omit key for the full log. Admin only.',
1497
+ get_memory_audit: 'Audit log of workspace memory operations. Admin only. Optional agentId filter.',
1498
+ link_agent_memory: 'Link an agent memory record to a workspace object (RELATES_TO_OBJ edge in memory_edges). Idempotent — repeated calls with the same arguments change nothing.',
1499
+ // Import & files
1500
+ import_create_all_sheets: 'Import EVERY sheet of an XLSX workbook as a separate table (creates types and columns from headers; requires confirmation). Returns: { tables: [{ sheet, sheetIndex, typeId, typeName, columnsCreated, created, ids, errors }], totalSheets, created }.',
1501
+ list_file_meta: 'List uploaded file metadata (_v2_files): processing status, classification, object link. Optional objectId filter and pagination. Returns: { files: [...], total }.',
1502
+ // Comments
1503
+ get_comment_reactions: 'Get reactions on an object comment. Returns: { commentId, reactions: [{ emoji, count, authors }] }.',
1504
+ // Workspace templates & bots
1505
+ save_workspace_template: 'Save a workspace as a template. Requires admin/owner in the source workspace. Provide source_slug, name, slug; optional description, icon, visibility (private|org|public), include_data.',
1506
+ apply_workspace_template: 'Apply a template to an EXISTING workspace (creating a new one from a template is a separate tool). Requires admin/owner. dry_run=true shows the plan without changes. Requires confirmation.',
1507
+ leave_workspace: 'Leave a workspace yourself. Owners and the last admin cannot leave — the service refuses. Requires confirmation.',
1508
+ update_workspace_template: 'Update workspace template metadata: name, description, icon, visibility. Only the template owner can change it.',
1509
+ delete_workspace_template: 'Delete a workspace template by ID. Irreversible — requires confirmation.',
1510
+ update_service_bot_role: 'Change a service bot role (admin|editor|viewer). Admin/owner only; a role cannot be raised above your own.',
1511
+ revoke_service_key: 'Revoke a service bot API key. The key stops working immediately; irreversible. Requires confirmation.',
1512
+ // KAG
1513
+ kag_get_edges: 'Batch-get knowledge graph edges for a list of entities plus any missing neighbors. Use kag_traverse to walk from a single entity.',
1514
+ // Agents — suggestions & secrets
1515
+ rotate_agent_secret: 'Rotate the callback secret of a registered agent. The old secret stops accepting callbacks immediately (requires confirmation). Returns: { id, slug, callbackSecret, message }.',
1516
+ get_agent_suggestion: 'Details of a single agent-creation suggestion: pattern, rationale, status. Returns: { id, status, pattern, rationale, ... }.',
1517
+ get_agent_suggestion_telemetry: 'Telemetry for agent suggestions: counts per status, average confidence, top patterns. Admin only. Returns: { pending, applied, dismissed, ... }.',
1518
+ find_similar_suggestions: 'Search OPEN (pending) agent suggestions by substring. Returns: { suggestions: [...], total }.',
1519
+ // CDEK & DaData
1520
+ cdek_get_config: 'Get the portal CDEK integration config (staff): whether the connector is configured, sender city, bound reqIds for dimensions, phone, and recipient city. Read-only.',
1521
+ cdek_calculate_tariff: 'Calculate CDEK delivery cost for a portal order — dimensions and city come from the order requisites; optional PVZ code. Returns: { tariffs, city }.',
1522
+ cdek_list_pvz: 'List CDEK pickup points by city name. Returns matching cities; the full point list only when exactly one city matched. Returns: { cities, points }.',
1523
+ cdek_create_shipment: 'Create a CDEK waybill for a portal order (mode: "pvz" or "door"; pvzCode required for "pvz"). EXTERNAL IRREVERSIBLE ACTION: every call creates a REAL waybill — do not retry on an unclear result, check the order first. Requires confirmation.',
1524
+ cdek_get_label: 'Get the CDEK label PDF for a portal order — fetches the barcode by order UUID and waits up to ~12s for the PDF. Returns: { filename, size, base64 }.',
1525
+ dadata_suggest: 'DaData suggestions via server proxy with the platform token: address, company by INN/name, bank, full name, email. mode=findById does an exact lookup by identifier (INN). Returns [{ value, data }].',
1526
+ // Portal orders
1527
+ get_portal_order: 'Get a single portal order in full (admin): status, date, amount, tracking number, items. Unlike get_portal_orders (list), reads one record by ID with no customer filter.',
1528
+ get_portal_order_linked: 'Get portal orders linked to a given order (admin): the merge group of one customer and the group main order. Returns: { linked: [{ id, name, isMain }], mainId }.',
1529
+ add_portal_order_item: 'Add a product to a portal order (admin): creates a child item record; the price is taken from the product unless given. Returns: { id, name, qty, price, variant }.',
1530
+ collect_portal_order_items: 'Portal order assembly (admin), one tool with action: collect_all (default) — mark ALL items collected and move a "Picking" order to "Picked"; check — verify whether all items are collected (no changes); toggle — flip the "collected" flag of ONE item (needs itemId).',
1531
+ merge_portal_orders: 'Merge portal orders (admin): donor items move to the master order, donors get "Cancelled" status with a comment, empty master fields are filled from donors, the amount is recalculated. All orders must belong to one customer and not be in a terminal status. Reversible only manually. Requires confirmation.',
1532
+ // Portal
1533
+ invoke_server_function: 'Execute a codespace server function (api/<name>.js in the workspace git repo). Arbitrary code in a sandbox — requires confirmation. Optional idempotencyMinutes suppresses retries with identical args within an N-minute window — enable for functions with external side effects.',
1534
+ list_portal_config_history: 'List portal config snapshot history (admin): recent saves with dates and authors. Call BEFORE restore_portal_config.',
1535
+ restore_portal_config: 'Roll the portal config back to a history snapshot (admin). Overwrites the ENTIRE current config — call list_portal_config_history first and tell the user what will be lost. The portal cache is invalidated automatically. Requires confirmation.',
1536
+ get_portal_analytics: 'Portal visit and order stats (admin): page/product views and orders created over 1d|7d|30d (default 7d).',
1537
+ search_portal_kb: 'Semantic search in the portal knowledge base (table bound by the kb module). Returns: { configured, items: [{ id, title, score }] }; configured=false when the kb module has no bound table.',
1538
+ // Codespace — review gates & repo policy
1539
+ run_review_gate: 'Run the AI review gate on a PR diff: reviewer + opponent + council verdict. Slow (LLM calls).',
1540
+ enqueue_machine_gate: 'Enqueue the machine gate (automated checks) for a PR. Returns jobId, or { enqueued: false } when Redis is unavailable.',
1541
+ get_machine_gate: 'Get the latest machine gate result for a PR. error NOT_FOUND when there is no result yet.',
1542
+ set_repo_write_mode: 'Change repository write mode: requireBaseCommit (forbid writes without a fresh baseCommit) and the protectedBranches list. Admin only. Security policy change — expects confirmation.',
1543
+ get_tree_commits: 'Last commit per file for a batch of entries (up to 500) — a cheap way to annotate a file tree. Returns a commits map { path: { sha, subject, timestamp, authorName } }.',
1544
+ // Normalizer
1545
+ list_normalization_jobs: 'List recent workspace normalization jobs (last 100). Use get_normalization_status by jobId for details. Returns: { jobs: [{ jobId, status: { stage, progress, errors } }], total }.',
1546
+ // Decisions
1547
+ get_decision_graph: 'Graph of all workspace decisions: nodes (decisions with verdict, impact, domain) and edges (compatible/conflict/parent/supersedes) with colors and widths for visualization.',
1548
+ get_decision_kag_stats: 'How many knowledge base (KAG) entities and relations were derived from a given decision. Requires decision ID.',
1549
+ // Teamchat — new tools
1550
+ list_call_history: 'Call history of the current user — both incoming and outgoing (as initiator or participant). Optional limit (default 50, max 200).',
1551
+ list_public_rooms: 'List public teamchat rooms the user can join via join_room. Returns: { data: [{ id, name, description, roomType, visibility, isMember }] }.',
1552
+ forward_message: 'Forward a teamchat message to another topic: the text is copied with author attribution. Returns: { data: { id, targetTopicId } }.',
1553
+ send_topic_file: 'Attach an already-uploaded workspace file to a chat topic message by fileId (file card like a UI upload). Does not upload binaries — the file must exist in _v2_files. Returns the created message { data: { id, cards } }.',
1554
+ refresh_topic_document: 'Append new topic messages to an already-exported document (export_topic_to_document only creates it; this one continues it). Returns: { data: { documentId, addedBlocks } }.',
1555
+ create_reminder: 'Create a reminder in a chat topic — the user gets a notification at fireAt. The date must be in the future. Returns: { data: { id, fireAt } }.',
1556
+ list_reminders: 'List the current user pending reminders across all chat topics. Returns: { data: [{ id, topicId, topicName, note, fireAt, status }] }.',
1557
+ delete_reminder: 'Cancel your own pending reminder (reminders of others are refused — ownership is checked server-side). Returns: { data: { cancelled: true } }.',
1558
+ get_message_reactions: 'Get reactions on a teamchat message grouped by emoji. Not to be confused with object-comment reactions (get_comment_reactions). Returns: { data: [{ emoji, count, authors }] }.',
1559
+ add_message_reaction: 'Add your emoji reaction to a teamchat message. Requires membership in the topic room. Returns: { data: [{ emoji, count, authors }] }.',
1560
+ remove_message_reaction: 'Remove YOUR reaction from a teamchat message. Not to be confused with remove_reaction (object comments). Returns: { data: [{ emoji, count, authors }] }.',
1561
+ request_topic_approval: 'Ask topic room admins to approve an agent action (merge_pr — merge a PR, change_verdict — change a decision verdict, or a custom type). Creates a request and notifies admins; the decision stays with a human. Returns: { suspendedId, jobKey }.',
1562
+ list_topic_tasks: 'List chat tasks (topics with an assignee) with filters by status, priority, ANY assignee, room, and name search; sort: priority/recent/deadline. Unlike list_recent_topics (assigned_to_me only, sorted by messages). Returns: { data: { tasks: [{ id, name, status, priority, assignedTo, deadlineAt, roomName }], nextCursor } }.',
1563
+ update_room_member_role: 'Change a chat room member role: admin or member. Requires room admin rights (checked server-side); the last admin cannot be demoted. Returns: { data: { roomId, userId, role } }.',
1564
+ // Meta-KB — new tools
1565
+ mk_get_debate_by_topic: 'Get the latest saved debate of a topic (by topicId): question, opinions, consensus, verdict.',
1566
+ mk_list_changes: 'List knowledge base change requests — the review queue. Read it here first, then review via mk_review_change. status: pending (default) | approved | rejected.',
1567
+ mk_update_iteration: 'Close a Meta-KB reasoning iteration: accept, reject, or shelve it. status: accepted | rejected | ignored.',
1568
+ mk_list_debates: 'List expert debates. Without filters — recent across the workspace; topicId — all debates of a topic; decisionId — debates linked to a decision. Pass only ONE filter.',
1569
+ mk_export_debate: 'Export a debate. format=md (default) — Markdown in the markdown field; format=docx — DOCX in the base64 field (save it via create_file, the filename is already chosen).',
1570
+ // Organizations
1571
+ org_list_workspaces: 'List workspaces attached to an organization: slug, name, roles. Returns: { items, total, page, pageSize }.',
1572
+ org_attach_workspace: 'Attach an existing workspace to an organization. Requires admin/owner in the organization AND rights on the workspace (checked server-side). Requires confirmation.',
1573
+ org_detach_workspace: 'Detach a workspace from an organization. Available to the workspace owner or an organization admin/owner. Requires confirmation.',
1574
+ org_get_pm_defaults: 'Get the organization reference task types and statuses (used when creating issues in member workspaces).',
1575
+ org_set_pm_defaults: 'Set the organization reference task types and statuses (up to 16 types, up to 32 statuses; kind: open/active/done/canceled). Organization owner only — checked server-side.',
1576
+ org_suggest_assignee: 'Suggest an assignee in an organization workspace: candidates ranked by overdue work, active load, and points.',
1577
+ // PM — boards, statuses, checklists, analytics
1578
+ pm_add_checklist_item: 'Add a new item to a PM issue checklist. Returns the item with its id — use it with pm_toggle_checklist / pm_remove_checklist_item.',
1579
+ pm_remove_checklist_item: 'Remove one item from a PM issue checklist by item id (ids come from the issue checklist field).',
1580
+ pm_create_board: 'Create a PM board. By default it is seeded with a COPY of the first board statuses (or from copy_statuses_from); empty=true creates it without columns.',
1581
+ pm_update_board: 'Rename a PM board and/or change its sort order.',
1582
+ pm_delete_board: 'Delete a PM board. The last board cannot be deleted; live issues require move_to (statuses are mapped by kind). Requires confirmation.',
1583
+ pm_create_status: 'Add a status column to a PM board. kind is one of open, active, done, canceled. Max 32 statuses per board; a duplicate name on the board is a conflict.',
1584
+ pm_update_status: 'Update a PM status label, kind, or sort. The status NAME cannot be changed (issues reference it).',
1585
+ pm_delete_status: 'Delete a PM status. Refused with 409 while live issues use it; refused with 400 if its kind category would become empty. Requires confirmation.',
1586
+ pm_get_cfd: 'Cumulative flow diagram: issue counts per status over time (sibling of pm_get_velocity / pm_get_burndown). Optional days window 1-365, default 30.',
1587
+ pm_list_issues_by_target: 'List PM issues linked to an EAV target (data links). Sibling of pm_list_data_links, which lists links of ONE issue. Requires target_type (table|document|report|object) and target_id.',
1588
+ // CNM
1589
+ ncl_list_edges: 'List active edges of the requirement graph with optional filters.',
1590
+ ncl_create_proposal: 'Create a generic ModelChangeProposal (any kind: model_change, handler_mapping, artifact_structure). Nothing enters the CNM until accepted via ncl_decide_proposal. Prefer ncl_formalize for formalizing free text.',
1591
+ // Presentations
1592
+ pres_update: 'Update presentation metadata: title, is_public, status (draft|published|archived).',
1593
+ pres_list_versions: 'List saved versions (snapshots) of a presentation, newest first.',
1594
+ pres_create_version: 'Save a version snapshot of the presentation right now.',
1595
+ pres_restore_version: 'Restore slides from a saved version. The current state is snapshotted automatically before the restore.',
1596
+ pres_get_sharing: 'List per-user sharing entries of a presentation.',
1597
+ pres_set_sharing: 'Grant or update a user role on a presentation (viewer|editor|admin). Requires admin role on the presentation.',
1598
+ pres_revoke_sharing: 'Revoke a sharing entry of a presentation by its sharing id.',
1599
+ pres_export: 'Export a presentation to PPTX or PDF. Returns { filename, size, base64 } — decode base64 and save as a binary file.',
1600
+ pres_import: 'Import a PPTX file (base64, max 50 MB) as a new presentation. Returns presId and import warnings.',
1601
+ pres_preview_bindings: 'Resolve binding placeholders ({{...}}) in text against workspace data, same as the editor insert-value button. Requires editor role.',
1602
+ // DLP
1603
+ list_dlp_rules: 'List the workspace DLP (data loss prevention) rules. Admin only.',
1604
+ create_dlp_rule: 'Create a DLP rule. rule_type: keyword|regex|type_block|llm_classify; severity: block|warn|audit. Admin only.',
1605
+ update_dlp_rule: 'Update a DLP rule by id. Pass only the fields to change. Admin only. Security policy change — expects confirmation.',
1606
+ delete_dlp_rule: 'Delete a DLP rule by id. Admin only. Security policy change — expects confirmation.',
1607
+ // Reports & audit — changed semantics
1608
+ get_report: 'Run a report and get data rows. Accepts the same selection params as REST POST /reports/:id/run: order, totals, select, fieldNames, filterId. Returns: { data, total, columns }.',
1609
+ query_audit: 'Query the workspace audit log — changes to objects, schema, reports, and AI tool calls (admin only). type: objects|schema|reports|ai|all; for type=ai filter by action substring or exact toolName. Returns: { items: [...], total }.',
1610
+ export_audit_log: 'Export the workspace audit log (objects, schema, reports, ai) to JSON or CSV (admin only). Returns { data: [...], meta: { total } } for json; CSV text for csv.',
1484
1611
  };
1485
1612
 
1486
1613
  /** Convert backend tool def → MCP tool listing entry */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integram-mcp",
3
- "version": "0.7.52",
3
+ "version": "0.7.53",
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",