integram-mcp 0.6.1 → 0.7.1
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/index.js +61 -53
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -147,33 +147,33 @@ Server: ${BASE_URL}
|
|
|
147
147
|
3. Workspace management: clone_workspace to duplicate an existing workspace; delete_workspace to permanently remove one.
|
|
148
148
|
|
|
149
149
|
## Tool discovery
|
|
150
|
-
Only core tools (
|
|
151
|
-
- "schema" — create/modify tables and columns, AI/HTTP/script buttons, computed columns (LOOKUP/ROLLUP/FORMULA), validation rules, AI formula generation
|
|
152
|
-
- "reports" — create, run, export reports with aggregation, joins and filters
|
|
153
|
-
- "docs" — documents, blocks, folders, tags, sharing, versions, templates, PDF generation
|
|
154
|
-
- "workspace" — files, import/export, connectors, members, backups, dashboards, view/record sharing, audit log, normalizer, automations, webhooks, forms
|
|
155
|
-
- "portal" — portal config, catalog, carts, orders, tickets, KB articles, metrics, customer profiles, Telegram bots, @kit component catalog
|
|
150
|
+
Only core tools (CRUD, search, graph, comments, bulk, history) are loaded by default. Use search_tools to activate more — it reports how many tools it activated and names them:
|
|
151
|
+
- "schema" — create/modify tables and columns, AI/HTTP/script buttons, computed columns (LOOKUP/ROLLUP/FORMULA), validation rules, AI formula generation
|
|
152
|
+
- "reports" — create, run, export reports with aggregation, joins and filters
|
|
153
|
+
- "docs" — documents, blocks, folders, tags, sharing, versions, templates, PDF generation
|
|
154
|
+
- "workspace" — files, import/export, connectors, members, backups, dashboards, view/record sharing, audit log, normalizer, automations, webhooks, forms
|
|
155
|
+
- "portal" — portal config, catalog, carts, orders, tickets, KB articles, metrics, customer profiles, Telegram bots, @kit component catalog
|
|
156
156
|
- "telegram" — Telegram bot management, messaging, moderation, payments, stories, business API (subset of portal group)
|
|
157
|
-
- "grants" — roles, grants, row-level rules, member access (admin only)
|
|
158
|
-
- "codespace" — git repositories: branches, commits, files, pull requests, conflict-safe writes
|
|
159
|
-
- "teamchat" — rooms, topics, messages, decisions, agent metrics, W-matrix (ONA)
|
|
160
|
-
- "graph" — get_related, graph_query, neighborhood, shortest path, health, memory agents
|
|
161
|
-
- "meta-kb" — debate-based knowledge curation: start debates, parallel experts, LLM synthesis
|
|
162
|
-
- "kag" — knowledge-augmented generation: search, traverse, ask, import, browse, stats, clusters, anomalies
|
|
163
|
-
- "memory" — agent long-term memory, recall, procedures, contradictions
|
|
164
|
-
- "timeseries" — record, query, and list time-series data sources
|
|
165
|
-
- "advisor" —
|
|
166
|
-
- "ai" — text-to-speech synthesis (TTS): speak text, list voices
|
|
167
|
-
- "agents" — list and delegate to external AI agents
|
|
168
|
-
- "pm" — project management: issues CRUD + bulk ops, checklists, sprints, board, backlog, comments CRUD, issue links, data-links (issue ↔ table/document/report), watchers, templates, trash/restore, members, CSV export, metrics (velocity, burndown, cycle time, workload), AI helpers (triage, decompose, estimate, plan sprint, detect blockers), org aggregation (portfolio, people, cross-project issues)
|
|
169
|
-
- "nightcall" — specification-driven execution: CNM requirements graph, formalization proposals (Extraction IR → governance decisions), artifact specifications, EffectiveSpecification resolver, execution compiler, directed-retry pipeline run, evidence verification, compliance/release decisions, waivers
|
|
170
|
-
- "orgs" — organizations: create, list, manage multi-workspace orgs and members
|
|
171
|
-
- "bulk" — bulk_create, bulk_update, bulk_delete, autofill_batch
|
|
172
|
-
- "comments" — comments, reactions on records
|
|
173
|
-
- "history" — object change history, rollback
|
|
174
|
-
- "objects" — move, reorder, duplicate records
|
|
175
|
-
- "lookups" — get lookup options, ref options
|
|
176
|
-
- "automations" — get automation details, webhook delivery log
|
|
157
|
+
- "grants" — roles, grants, row-level rules, member access (admin only)
|
|
158
|
+
- "codespace" — git repositories: branches, commits, files, pull requests, conflict-safe writes
|
|
159
|
+
- "teamchat" — rooms, topics, messages, decisions, agent metrics, W-matrix (ONA)
|
|
160
|
+
- "graph" — get_related, graph_query, neighborhood, shortest path, health, memory agents
|
|
161
|
+
- "meta-kb" — debate-based knowledge curation: start debates, parallel experts, LLM synthesis
|
|
162
|
+
- "kag" — knowledge-augmented generation: search, traverse, ask, import, browse, stats, clusters, anomalies
|
|
163
|
+
- "memory" — agent long-term memory, recall, procedures, contradictions
|
|
164
|
+
- "timeseries" — record, query, and list time-series data sources
|
|
165
|
+
- "advisor" — platform expert: docs map/search/read, tool cards, advice on schema design and best practices
|
|
166
|
+
- "ai" — text-to-speech synthesis (TTS): speak text, list voices, check TTS service status
|
|
167
|
+
- "agents" — list and delegate to external AI agents
|
|
168
|
+
- "pm" — project management: issues CRUD + bulk ops, checklists, sprints, board, backlog, comments CRUD, issue links, data-links (issue ↔ table/document/report), watchers, templates, trash/restore, members, CSV export, metrics (velocity, burndown, cycle time, workload), AI helpers (triage, decompose, estimate, plan sprint, detect blockers), org aggregation (portfolio, people, cross-project issues)
|
|
169
|
+
- "nightcall" — specification-driven execution: CNM requirements graph, formalization proposals (Extraction IR → governance decisions), artifact specifications, EffectiveSpecification resolver, execution compiler, directed-retry pipeline run, evidence verification, compliance/release decisions, waivers
|
|
170
|
+
- "orgs" — organizations: create, list, manage multi-workspace orgs and members
|
|
171
|
+
- "bulk" — bulk_create, bulk_update, bulk_delete, autofill_batch
|
|
172
|
+
- "comments" — comments, reactions on records
|
|
173
|
+
- "history" — object change history, rollback
|
|
174
|
+
- "objects" — move, reorder, duplicate records
|
|
175
|
+
- "lookups" — get lookup options, ref options
|
|
176
|
+
- "automations" — get automation details, webhook delivery log
|
|
177
177
|
|
|
178
178
|
---
|
|
179
179
|
|
|
@@ -593,7 +593,8 @@ Block-based documents (like Notion). Activate via search_tools("documents").
|
|
|
593
593
|
|
|
594
594
|
Event-driven rules: when X happens → check condition → do Y. Activate via search_tools("automations").
|
|
595
595
|
|
|
596
|
-
create_automation({ name, trigger: { type, typeId }, condition, actions: [{ type, config }] })
|
|
596
|
+
create_automation({ name, trigger: { type, typeId }, active?, condition, actions: [{ type, config }] })
|
|
597
|
+
- active: false — создать выключенной (по умолчанию включена; выключенная не встаёт в расписание и не срабатывает)
|
|
597
598
|
- 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
|
|
598
599
|
- 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
|
|
599
600
|
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)
|
|
@@ -704,7 +705,7 @@ Activate via search_tools("history").
|
|
|
704
705
|
|
|
705
706
|
## Audit log (admin)
|
|
706
707
|
|
|
707
|
-
query_audit(type
|
|
708
|
+
query_audit(type?, actor?, dateFrom?, dateTo?, action?, objectId?, typeId?, reportId?, limit?, offset?) — unified audit log across objects, schema, and reports. type: all|objects|schema|reports (default all). actor filters by username; dateFrom/dateTo are ISO timestamps. objectId narrows type=objects, typeId narrows type=schema, reportId narrows type=reports.
|
|
708
709
|
|
|
709
710
|
## Notifications
|
|
710
711
|
|
|
@@ -721,7 +722,7 @@ Read-only workspace metadata available without search_tools activation.
|
|
|
721
722
|
## Trash
|
|
722
723
|
|
|
723
724
|
- list_trash(typeId) — see deleted records for a specific table
|
|
724
|
-
- restore_from_trash(
|
|
725
|
+
- restore_from_trash(objectId) — restore a deleted record
|
|
725
726
|
|
|
726
727
|
## Memory (agent long-term memory)
|
|
727
728
|
|
|
@@ -919,10 +920,15 @@ Git repository hosting per workspace. Activate via search_tools("codespace").
|
|
|
919
920
|
|
|
920
921
|
Platform expert for guidance and help. Activate via search_tools("advisor").
|
|
921
922
|
|
|
922
|
-
- ask_advisor(question, topic?) — ask about schema design, best practices, troubleshooting, feature usage.
|
|
923
|
+
- ask_advisor(question, topic?) — ask about schema design, best practices, troubleshooting, feature usage. Grounded in the platform docs corpus + current workspace schema. topic: schema/reports/automations/portal/documents/permissions/import/dashboards/integrations/general
|
|
923
924
|
- list_platform_capabilities() — full list of Integram features by category (data, columns, analytics, automations, documents, integrations, security, portal, AI, graph)
|
|
925
|
+
- docs_map(area?, module?, query?) — map of the platform docs corpus: what documents exist, what each is about, when it last changed. Start here.
|
|
926
|
+
- docs_search(query, area?, limit?) — hybrid search over doc fragments; returns citations (path#section). Empty result means "not in what was retrieved", NOT "not in the platform"
|
|
927
|
+
- docs_read(path, section?, offset?, maxChars?) — read a doc or one section in full; paginated via nextOffset
|
|
928
|
+
- docs_tool(name? | query? | group?) — card for a platform tool: purpose, params, risk tier. Read live from the tool catalog, so counts and names always match the code
|
|
924
929
|
|
|
925
930
|
Use advisor when user asks "help", "how to", "what can you do", "best practice", or needs guidance on platform features.
|
|
931
|
+
Never state a capability, count, or setting you did not confirm via docs_* — say "not covered in the docs" instead.
|
|
926
932
|
|
|
927
933
|
## Teamchat (internal messaging)
|
|
928
934
|
|
|
@@ -930,9 +936,9 @@ Internal messaging with rooms, topics, and decisions. Activate via search_tools(
|
|
|
930
936
|
|
|
931
937
|
**Rooms:**
|
|
932
938
|
- list_rooms() — list chat rooms the user has access to
|
|
933
|
-
- create_room(name,
|
|
939
|
+
- create_room(name, isPublic?) — create a new room
|
|
934
940
|
- get_room(roomId) — room details
|
|
935
|
-
- update_room(roomId, name
|
|
941
|
+
- update_room(roomId, name?) — rename a room (name is the only editable field)
|
|
936
942
|
- delete_room(roomId) — delete room. **Requires confirmation.**
|
|
937
943
|
- join_room(roomId) — join a public room
|
|
938
944
|
|
|
@@ -942,33 +948,33 @@ Internal messaging with rooms, topics, and decisions. Activate via search_tools(
|
|
|
942
948
|
- remove_room_member(roomId, userId) — remove a member
|
|
943
949
|
|
|
944
950
|
**Topics:**
|
|
945
|
-
- list_topics(
|
|
951
|
+
- list_topics(search?, limit?) — list topics across ALL rooms the user is a member of; there is no per-room filter
|
|
946
952
|
- list_recent_topics(limit?) — recently active topics
|
|
947
|
-
- create_topic(roomId, title,
|
|
948
|
-
- update_topic(topicId,
|
|
953
|
+
- create_topic(roomId, title, first_message?) — create a topic in a room; first_message posts an opening message
|
|
954
|
+
- update_topic(topicId, name?, status?, pinned?, assigned_to?, priority?, deadline_at?) — update topic. The title is called \`name\` here, not \`title\` as in create_topic.
|
|
949
955
|
- delete_topic(topicId) — delete topic. **Requires confirmation.**
|
|
950
956
|
- summarize_topic(topicId) — AI-generated summary of topic discussion
|
|
951
957
|
- mark_topic_read(topicId) — mark topic as read
|
|
952
958
|
- export_topic_to_document(topicId) — export topic content to a document
|
|
953
959
|
|
|
954
960
|
**Messages:**
|
|
955
|
-
- list_messages(topicId, limit?,
|
|
961
|
+
- list_messages(topicId, limit?, cursor?) — list messages in a topic
|
|
956
962
|
- create_message(topicId, text) — post a message
|
|
957
963
|
- send_teamchat_message(topicId, text, cards?) — post a message with optional code_cell cards for executable code
|
|
958
964
|
- update_message(msgId, text) — edit a message
|
|
959
965
|
- delete_message(msgId) — delete a message. **Requires confirmation.**
|
|
960
966
|
- move_message(msgId, targetTopicId) — move a message to another topic
|
|
961
|
-
- search_teamchat(query,
|
|
967
|
+
- search_teamchat(query, room_id?, limit?, task_only?) — full-text search across messages; task_only narrows to task-flagged messages
|
|
962
968
|
|
|
963
969
|
**Decisions:**
|
|
964
970
|
- create_decision(title, description?, domain?) — create an architectural decision record
|
|
965
|
-
- get_decision(
|
|
966
|
-
- update_decision(
|
|
967
|
-
- delete_decision(
|
|
971
|
+
- get_decision(id) — get decision details
|
|
972
|
+
- update_decision(id, title?, description?, domain?, verdict?, impact?) — update a decision. There is no \`status\` field: the lifecycle field is \`verdict\` (proposed | accepted | rejected | superseded | draft). \`impact\`: critical | high | medium | low. When the caller is an agent account (username starting with \`agent:\`), changing \`verdict\` is not applied immediately — the call returns \`status: "approval_requested"\` and waits for a human.
|
|
973
|
+
- delete_decision(id) — delete a decision. **Requires confirmation.**
|
|
968
974
|
- search_similar_decisions(query, domain?, limit?) — semantic search for similar decisions
|
|
969
975
|
- analyze_decision_conflicts(decisionId) — find conflicts with other decisions
|
|
970
|
-
- list_decision_links(
|
|
971
|
-
- create_decision_link(
|
|
976
|
+
- list_decision_links(id) — list links to/from a decision
|
|
977
|
+
- create_decision_link(id, targetId, type) — link two decisions. \`id\` is the SOURCE decision (the "from" side), \`targetId\` is the destination — the link reads id → targetId. type: supersedes|depends_on|related_to|conflicts_with
|
|
972
978
|
- delete_decision_link(linkId) — remove a link
|
|
973
979
|
|
|
974
980
|
**Analytics:**
|
|
@@ -978,22 +984,24 @@ Internal messaging with rooms, topics, and decisions. Activate via search_tools(
|
|
|
978
984
|
## Organizations
|
|
979
985
|
|
|
980
986
|
Multi-workspace organizations. Activate via search_tools("orgs").
|
|
987
|
+
Organizations are addressed by \`slug\`, never by a numeric id.
|
|
981
988
|
|
|
982
989
|
- list_orgs() — list organizations the user belongs to
|
|
983
|
-
- get_org(
|
|
990
|
+
- get_org(slug) — organization details
|
|
984
991
|
- create_org(name, slug) — create a new organization. **Requires confirmation.**
|
|
985
|
-
- update_org(
|
|
986
|
-
- delete_org(
|
|
987
|
-
- list_org_members(
|
|
988
|
-
- add_org_member(
|
|
989
|
-
- remove_org_member(
|
|
992
|
+
- update_org(slug, name?) — update organization. **Requires confirmation.**
|
|
993
|
+
- delete_org(slug) — delete organization. **Requires confirmation.**
|
|
994
|
+
- list_org_members(slug) — list members of an organization
|
|
995
|
+
- add_org_member(slug, email, role?) — add member by e-mail. **Requires confirmation.**
|
|
996
|
+
- remove_org_member(slug, memberId) — remove member by membership id (from list_org_members). **Requires confirmation.**
|
|
990
997
|
|
|
991
998
|
## Timeseries
|
|
992
999
|
|
|
993
1000
|
Time-series data ingestion and aggregated queries. Activate via search_tools("timeseries").
|
|
994
1001
|
|
|
995
|
-
- record_timeseries(
|
|
996
|
-
-
|
|
1002
|
+
- record_timeseries(source_id, metric, value?, text_val?, ts?) — record one data point. \`value\` is numeric, \`text_val\` is its textual alternative — one of the two is required. \`ts\` is an ISO timestamp (defaults to now). There is no \`tags\` field.
|
|
1003
|
+
- record_timeseries(points) — batch form: points is an array of { source_id, metric, value?, text_val?, ts? }. Every point needs its own source_id and metric.
|
|
1004
|
+
- query_timeseries(source_id, metric, from?, to?, bucket?, agg?, limit?) — query aggregated data. source_id and metric are REQUIRED. from/to are ISO timestamps. agg: avg|sum|min|max|count (default avg). bucket: 1m|5m|15m|30m|1h|6h|1d|7d|30d (default 1h) — any other value is rejected.
|
|
997
1005
|
- list_timeseries_sources() — list available data sources and their metrics
|
|
998
1006
|
|
|
999
1007
|
## KAG (Knowledge-Augmented Generation)
|
|
@@ -1063,7 +1071,7 @@ Destructive and schema operations return "REQUIRES CONFIRMATION". Ask the user t
|
|
|
1063
1071
|
`;
|
|
1064
1072
|
|
|
1065
1073
|
const server = new Server(
|
|
1066
|
-
{ name: 'integram', version: '0.
|
|
1074
|
+
{ name: 'integram', version: '0.7.1' },
|
|
1067
1075
|
{ capabilities: { tools: { listChanged: true }, elicitation: {} }, instructions: INSTRUCTIONS },
|
|
1068
1076
|
);
|
|
1069
1077
|
|
|
@@ -1360,7 +1368,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1360
1368
|
if (name === 'delete_workspace') return handleDeleteWorkspace(args?.slug || '');
|
|
1361
1369
|
if (name === 'clone_workspace') return handleCloneWorkspace(args || {});
|
|
1362
1370
|
if (name === 'search_tools') return handleSearchTools(args?.query || '');
|
|
1363
|
-
if (name === 'confirm_action') return handleConfirmAction(args?.approved
|
|
1371
|
+
if (name === 'confirm_action') return handleConfirmAction(args?.approved === true);
|
|
1364
1372
|
|
|
1365
1373
|
// Check workspace is set
|
|
1366
1374
|
if (!workspace) {
|
|
@@ -1468,7 +1476,7 @@ async function handleConfirmAction(approved) {
|
|
|
1468
1476
|
let msg;
|
|
1469
1477
|
if (pending.onApprove) {
|
|
1470
1478
|
// Local HITL (e.g. delete_workspace) — execute callback directly
|
|
1471
|
-
if (approved) {
|
|
1479
|
+
if (approved === true) {
|
|
1472
1480
|
msg = await pending.onApprove();
|
|
1473
1481
|
} else {
|
|
1474
1482
|
if (pending.onReject) pending.onReject();
|
package/package.json
CHANGED