@axonity-ai/mcp 0.17.1 → 0.20.0

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 (42) hide show
  1. package/README.md +105 -37
  2. package/dist/errors.js +45 -11
  3. package/dist/errors.js.map +1 -1
  4. package/dist/generated/listFilters.js +23 -1
  5. package/dist/generated/listFilters.js.map +1 -1
  6. package/dist/index.js +208 -26
  7. package/dist/index.js.map +1 -1
  8. package/dist/tools/access.d.ts +19 -0
  9. package/dist/tools/access.js +71 -0
  10. package/dist/tools/access.js.map +1 -0
  11. package/dist/tools/applications.d.ts +24 -0
  12. package/dist/tools/applications.js +145 -0
  13. package/dist/tools/applications.js.map +1 -0
  14. package/dist/tools/concepts.js +68 -3
  15. package/dist/tools/concepts.js.map +1 -1
  16. package/dist/tools/conventions.d.ts +2 -2
  17. package/dist/tools/conventions.js +105 -38
  18. package/dist/tools/conventions.js.map +1 -1
  19. package/dist/tools/dataSources.d.ts +5 -5
  20. package/dist/tools/dataSources.js +10 -9
  21. package/dist/tools/dataSources.js.map +1 -1
  22. package/dist/tools/dataTables.js +7 -5
  23. package/dist/tools/dataTables.js.map +1 -1
  24. package/dist/tools/entityContract.d.ts +44 -0
  25. package/dist/tools/entityContract.js +90 -0
  26. package/dist/tools/entityContract.js.map +1 -0
  27. package/dist/tools/extras.js +40 -2
  28. package/dist/tools/extras.js.map +1 -1
  29. package/dist/tools/knowledgeGraph.d.ts +28 -0
  30. package/dist/tools/knowledgeGraph.js +126 -0
  31. package/dist/tools/knowledgeGraph.js.map +1 -0
  32. package/dist/tools/queries.d.ts +18 -0
  33. package/dist/tools/queries.js +70 -0
  34. package/dist/tools/queries.js.map +1 -0
  35. package/dist/tools/triggers.js +69 -79
  36. package/dist/tools/triggers.js.map +1 -1
  37. package/dist/tools/validation.js +21 -3
  38. package/dist/tools/validation.js.map +1 -1
  39. package/dist/tools/workflowMutations.d.ts +18 -0
  40. package/dist/tools/workflowMutations.js +61 -5
  41. package/dist/tools/workflowMutations.js.map +1 -1
  42. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23,17 +23,22 @@ import { AxonityClient } from "./client.js";
23
23
  import { loadConfig } from "./config.js";
24
24
  import { reportContractSkew } from "./contract.js";
25
25
  import { registerConventions } from "./tools/conventions.js";
26
+ import { registerEntityContractTools } from "./tools/entityContract.js";
26
27
  import { registerDashboardTools, registerDataSourceTools, registerMeasureTools, } from "./tools/dataSources.js";
27
28
  import { registerDataTableTools } from "./tools/dataTables.js";
28
29
  import { assertFormulaShape, registerMeasureFormulaTools } from "./tools/measureFormula.js";
29
30
  import { assertPlaceholderCredentials } from "./tools/credentials.js";
30
31
  import { registerAttachTools, registerCatalogTools, registerConnectorTools, registerDependencyTools, registerPersonaTools, } from "./tools/extras.js";
32
+ import { registerApplicationTools } from "./tools/applications.js";
33
+ import { registerAccessTools } from "./tools/access.js";
31
34
  import { registerAuthoringSpecTools } from "./tools/authoringSpec.js";
32
35
  import { registerCompanyTools } from "./tools/company.js";
33
36
  import { registerComponentTools } from "./tools/components.js";
34
37
  import { registerConceptTools } from "./tools/concepts.js";
38
+ import { registerKnowledgeGraphTools } from "./tools/knowledgeGraph.js";
35
39
  import { registerOperationsTools } from "./tools/operations.js";
36
40
  import { registerPromptPlacementTools } from "./tools/promptPlacement.js";
41
+ import { registerQueryTools } from "./tools/queries.js";
37
42
  import { LIST_FILTERS } from "./generated/listFilters.js";
38
43
  import { registerEntityTools } from "./tools/register.js";
39
44
  import { registerRunTools } from "./tools/runs.js";
@@ -44,22 +49,32 @@ import { registerTriggerTools } from "./tools/triggers.js";
44
49
  import { registerApprovalTools, registerExecutionTools, registerValidationTools, } from "./tools/validation.js";
45
50
  import { registerVersionTools } from "./tools/versions.js";
46
51
  import { registerWorkflowMutations } from "./tools/workflowMutations.js";
47
- const PROVENANCE_NOTE = "WHERE THE ROWS COME FROM — `provenance`, for a dynamic table filled from " +
48
- "a warehouse. It replaces the old data-source sync: there is no separate " +
49
- "sync object any more, so create_data_source_sync / run_data_source_sync " +
50
- "do not exist. `provenance` is " +
51
- "`{ sourceId, sql, grain, keyColumns?, mode?, cron, timezone?, enabled? }`: " +
52
- "`sourceId` the data source; `sql` the query whose RESULT fills the table " +
53
- "(try it first with query_data_source); `grain` what ONE ROW of that " +
54
- "result is, as a sentence (\"one row per month per country\") — " +
55
- "mandatory, it decides what the table can be asked for ever after; " +
56
- "`keyColumns` which columns identify a row for `mode: \"upsert\"` (the " +
57
- "default — `append` takes no key); `cron` when it runs, read in " +
58
- "`timezone` (default UTC); `enabled: false` pauses it. A table with " +
59
- "provenance has no other filler — a workflow may not also write its " +
60
- "rows. It is part of the table's design, so a changed query is published " +
61
- "through request_publish_data_table like a changed column. To fill it " +
62
- "now rather than at its next turn: refresh_data_table. " +
52
+ /**
53
+ * What fills a table (axonity-flow#2013). The inline `provenance` bag is gone:
54
+ * its SQL, source and grain moved to a named query, and what stays on the
55
+ * table is which filler it has and when it runs.
56
+ */
57
+ const FILL_NOTE = "WHAT FILLS IT — `filledBy`, one word: `author` (the default: reference " +
58
+ "data its author maintains), `workflow` (a workflow writes the rows, " +
59
+ "limited to `allowedOperations`) or `query` (a named query fetches them). " +
60
+ "A table has ONE filler. `isDynamic` is no longer sent: it follows from " +
61
+ "`filledBy` — a table filled by a query or a workflow is dynamic, and " +
62
+ "ONLY A DYNAMIC TABLE CAN BE READ BY A MEASURE. Never set `filledBy: " +
63
+ "\"workflow\"` on a table no workflow fills just to make a measure read " +
64
+ "it; give it a query. " +
65
+ "\n\nFILLED BY A QUERY: `fillingQueryId` is the query (create_query, " +
66
+ "list_queries) — required with `filledBy: \"query\"`, refused otherwise, " +
67
+ "and one query fills one table. The query carries the SQL, the source " +
68
+ "and the grain. `rhythm` says when and how it fills: " +
69
+ "`{ cron, timezone?, keyColumns?, mode?, enabled? }` — `cron` when it " +
70
+ "runs, read in `timezone` (default UTC; an empty cron never runs by " +
71
+ "itself); `mode` `upsert` (the default: replaces the rows that match " +
72
+ "`keyColumns` and adds the rest) or `append` (takes no key); `enabled: " +
73
+ "false` pauses it and keeps its rows. Leave `rhythm` out and the table " +
74
+ "fills only when asked: refresh_data_table. The fill runs the query as " +
75
+ "it stands. " +
76
+ "\n\n`provenance` and `clearProvenance` no longer exist and are refused " +
77
+ "— the query took their place. " +
63
78
  "\n\nMEASURES ARE NOT ON THE TABLE. A measure is its own entity " +
64
79
  "(create_measure); a table carries only its `timeAxis` " +
65
80
  "(`{ column, grain }`), which every measure over it reads.";
@@ -96,8 +111,8 @@ const MEASURE_NOTE = "READ get_measure_formula_spec FIRST; never write a functio
96
111
  "as text or as the stored tree. Four kinds, one grammar: " +
97
112
  "\n- a BASE aggregates one COLUMN of one table: " +
98
113
  "`sum(orders.amount) where orders.channel = 'd2c'`. It reads a column, " +
99
- "never a calculation per row — a value per row belongs in the table's " +
100
- "source query (`provenance.sql`), as a column of its own; " +
114
+ "never a calculation per row — a value per row belongs in the query " +
115
+ "that fills the table, as a column of its own; " +
101
116
  "\n- a DERIVED measure computes with other measures by name: " +
102
117
  "`[revenue_d2c] + [revenue_retail]`, `divide([cm1], [net_revenue])`, " +
103
118
  "`divide([revenue_d2c], [net_revenue] ignore orders.channel)` for a share " +
@@ -125,6 +140,94 @@ const MEASURE_NOTE = "READ get_measure_formula_spec FIRST; never write a functio
125
140
  "refused with `legacy_field`. " +
126
141
  "\n\nIt is a DRAFT until published: request_publish_measure. Only a " +
127
142
  "published measure gives a certified number.";
143
+ /**
144
+ * What an application is made of (axonity-flow#1901). The limits are the point:
145
+ * an executor enforces them on every command, so a wrong key is a limit nobody
146
+ * enforces — the platform refuses unknown keys, and this says which exist.
147
+ */
148
+ const APPLICATION_NOTE = "Fields: `name` (unique in the workspace), `technology` (`win32` for a " +
149
+ "Windows desktop program, `web` for a site in a browser), `description` " +
150
+ "and `limits` — what an agent may NEVER do in it, enforced by the executor " +
151
+ "on the machine. `limits` keys stay snake_case, the way the executor reads " +
152
+ "them, and an unknown key is refused: `processes` (executables it may " +
153
+ "touch, `app.exe`), `windows` (window classes it may act in), " +
154
+ "`never_keys` (key combinations it may never send, `ctrl+a`), " +
155
+ "`never_buttons` (button captions it may never press), `folders` (folders " +
156
+ "it stays inside), `domains` (web domains it stays inside, " +
157
+ "`nl.wikipedia.org`), `secrets` (workspace secrets it may type, BY NAME — " +
158
+ "never a value), `home` (a website's start address) and `readers` (per " +
159
+ "control class, how a screen reader reads it). " +
160
+ "\n\nAn executor receives only the PUBLISHED limits, never a draft: " +
161
+ "request_publish_application, then a human approves. Which machines run it " +
162
+ "is set_application_executors.";
163
+ /**
164
+ * Who may read a piece of knowledge (axonity-mcp#88, S2; axonity-flow#1918).
165
+ * The four knowledge kinds carry a label; the backend already took the fields,
166
+ * and nothing told an agent they exist or that `null` means "nobody".
167
+ */
168
+ const LABEL_NOTE = "WHO MAY READ IT — the label. `level` is how sensitive it is (public, " +
169
+ "internal or confidential); `audienceIds` is whom it is meant for, as ids " +
170
+ "from list_audiences — never guess one and never match on a name. Leave " +
171
+ "both out and it gets the workspace default: internal, for Staff. " +
172
+ "Sending `level: null` means NO label: nobody can read it — no colleague, " +
173
+ "no agent — until a colleague who maintains its audience labels it. You " +
174
+ "can only give a label you can read yourself.";
175
+ const LABEL_UPDATE_NOTE = "CHANGING WHO MAY READ IT. Narrowing is always allowed: a higher " +
176
+ "`level`, or an audience taken away. WIDENING — a lower level, or an " +
177
+ "audience added — makes it readable for more people, which is publishing " +
178
+ "it, and only a colleague who maintains those audiences may do that. A " +
179
+ "token never can: the refusal says so, and the way forward is to ask a " +
180
+ "colleague in Axonity, not to try another route. `audienceIds` replaces " +
181
+ "the whole set — send the ones it keeps too. `level: null` removes the " +
182
+ "label, which leaves it readable by nobody.";
183
+ /** What an agent or a process may read (axonity-mcp#88, S2). */
184
+ const CLEARANCE_SHAPE = "`clearance` is `{ maxLevel, audienceIds }`: up to which level it reads " +
185
+ "(public, internal or confidential; null reads nothing) and for which " +
186
+ "audiences (ids from list_audiences).";
187
+ const AGENT_CLEARANCE_NOTE = "WHAT THE AGENT MAY READ. " +
188
+ CLEARANCE_SHAPE +
189
+ " Only an ADMINISTRATOR sets it, so a token sending it is refused: leave " +
190
+ "it out and the agent gets the workspace default, internal for Staff. " +
191
+ "Inside a workflow the agent never reads more than the workflow's own " +
192
+ "clearance.";
193
+ const WORKFLOW_CLEARANCE_NOTE = "WHAT THE PROCESS MAY READ. " +
194
+ CLEARANCE_SHAPE +
195
+ " Set it to the audiences of whoever the process serves. A new workflow " +
196
+ "starts with the workspace default (internal, for Staff); change it with " +
197
+ "update_workflow({ fields: { clearance } }). It takes effect through the " +
198
+ "publish approval like the rest of the workflow, and no agent in the " +
199
+ "process ever reads more than this.";
200
+ /**
201
+ * What a query is made of (axonity-flow#2010, S1). A query is a named, typed
202
+ * read of one source: it answers an agent's question once published, and it
203
+ * fills a table. The SQL, source and grain that used to sit in a table's
204
+ * `provenance` live here now.
205
+ */
206
+ const QUERY_NOTE = "A QUERY is a named, typed read of one data source. Published, it does " +
207
+ "two things: it becomes a read tool an agent can be given (its " +
208
+ "`description` is what that agent reads), and it can fill a table " +
209
+ "(`filledBy: \"query\"`, `fillingQueryId` on the table). " +
210
+ "\n\nFields: `name` (unique in the workspace; the tool carries it), " +
211
+ "`description` (what it answers), `dataSourceId` (required — " +
212
+ "list_data_sources), `sql` (read-only, in the warehouse's own dialect, " +
213
+ "with each input written `:name`; read_data_source_schema spells the " +
214
+ "tables), `grain` (what ONE ROW is, as a sentence — \"one row per month " +
215
+ "per country\"), `questions` (how somebody would ask for this, at most " +
216
+ "20), `parameters` and `returns`. " +
217
+ "\n\n`parameters` (at most 20): `[{ name, label?, kind, description?, " +
218
+ "required?, default?, choiceOptions? }]`. `kind` is text, number, date, " +
219
+ "datetime, time, yes-no or choice — one value, never a list or an " +
220
+ "object. A value is BOUND, never written into the statement. An optional " +
221
+ "one with no value binds NULL, which is what `(:land is null or l = " +
222
+ ":land)` is written for. " +
223
+ "\n\n`returns`: `[{ name, label?, kind, description, concept? }]`, one " +
224
+ "per column the statement hands back, named exactly as it returns it. " +
225
+ "`kind` adds object and list to the parameter kinds. Every column needs " +
226
+ "a `description` before the query can be published. " +
227
+ "\n\nThe statement can carry its own figures: a query with no table " +
228
+ "behind it (a `select … union all select …` of plan values) is a query " +
229
+ "like any other. Try it with test_query before you ask for publication; " +
230
+ "its answer suggests `returns` from what came back.";
128
231
  /**
129
232
  * The entities the connector covers. Core entities (C4), memory entities (C5)
130
233
  * — skills, policies, reference docs — which have the same draft→publish
@@ -138,6 +241,8 @@ const ENTITIES = [
138
241
  updateMethod: "PATCH",
139
242
  label: "workflows (business processes)",
140
243
  deleteVersionParam: "expectedVersion",
244
+ createNote: WORKFLOW_CLEARANCE_NOTE,
245
+ updateWarning: WORKFLOW_CLEARANCE_NOTE,
141
246
  },
142
247
  {
143
248
  singular: "agent",
@@ -145,6 +250,8 @@ const ENTITIES = [
145
250
  updateMethod: "PUT",
146
251
  label: "agents",
147
252
  deleteVersionParam: "expectedVersion",
253
+ createNote: AGENT_CLEARANCE_NOTE,
254
+ updateWarning: AGENT_CLEARANCE_NOTE,
148
255
  },
149
256
  {
150
257
  singular: "tool",
@@ -162,6 +269,8 @@ const ENTITIES = [
162
269
  updateMethod: "PUT",
163
270
  label: "skills (reusable know-how for agents)",
164
271
  deleteVersionParam: "expected_version",
272
+ createNote: LABEL_NOTE,
273
+ updateWarning: LABEL_UPDATE_NOTE,
165
274
  },
166
275
  {
167
276
  singular: "policy",
@@ -170,6 +279,8 @@ const ENTITIES = [
170
279
  label: "policies (rules and guardrails for agents)",
171
280
  plural: "policies",
172
281
  deleteVersionParam: "expected_version",
282
+ createNote: LABEL_NOTE,
283
+ updateWarning: LABEL_UPDATE_NOTE,
173
284
  },
174
285
  {
175
286
  singular: "reference_doc",
@@ -177,6 +288,8 @@ const ENTITIES = [
177
288
  updateMethod: "PUT",
178
289
  label: "reference docs (background knowledge for agents)",
179
290
  deleteVersionParam: "expected_version",
291
+ createNote: LABEL_NOTE,
292
+ updateWarning: LABEL_UPDATE_NOTE,
180
293
  },
181
294
  {
182
295
  singular: "output_schema",
@@ -226,20 +339,24 @@ const ENTITIES = [
226
339
  label: "tables (authored reference data agents and decisions read)",
227
340
  deleteVersionParam: "expected_version",
228
341
  listPaging: { defaultPageSize: 20, maxPageSize: 200 },
229
- createNote: `${PROVENANCE_NOTE}\n\n${DATE_TABLE_NOTE}`,
342
+ createNote: `${FILL_NOTE}\n\n${DATE_TABLE_NOTE}\n\n${LABEL_NOTE}`,
230
343
  deleteNote: BREAKS_MEASURE_NOTE,
231
344
  publishNote: BREAKS_MEASURE_NOTE,
232
- updateWarning: PROVENANCE_NOTE +
345
+ updateWarning: FILL_NOTE +
346
+ " On an update: `clearFillingQuery: true` takes the query away and " +
347
+ "leaves the rows that are there; `rhythm` is replaced whole when sent; " +
348
+ "`clearRhythm: true` takes it away (the table then fills only when " +
349
+ "asked), which is not the same as pausing it. " +
233
350
  "\n\n" +
234
351
  DATE_TABLE_NOTE +
235
- " Sending `provenance` replaces it whole; `clearProvenance: true` " +
236
- "takes the source away and leaves the rows that are there. " +
237
352
  "\n\n`rows` AND `columns` ARE WHOLE-COLLECTION FIELDS: sending either " +
238
353
  "REPLACES it entirely. Passing one row in `rows` does not append it — it " +
239
354
  "deletes every other row in the table. To change content, use " +
240
355
  "add_data_table_row / update_data_table_row / delete_data_table_row, " +
241
356
  "which address a single row and cannot destroy the rest. Use `rows` here " +
242
- "only when you genuinely mean to replace the whole content.",
357
+ "only when you genuinely mean to replace the whole content." +
358
+ "\n\n" +
359
+ LABEL_UPDATE_NOTE,
243
360
  },
244
361
  {
245
362
  // A measure was a field on a table; the semantic model (axonity-flow#1881
@@ -273,6 +390,60 @@ const ENTITIES = [
273
390
  "the tables it reads follow from its formula. Sending `definition` " +
274
391
  "replaces it whole, so send the `expression` with it.",
275
392
  },
393
+ {
394
+ // A named read of one source (axonity-flow#2010, S1), with routes in the
395
+ // same order and spelling as a measure's — so the whole family comes from
396
+ // the registrars. Running it once, and who holds its tool, are in
397
+ // tools/queries.ts.
398
+ singular: "query",
399
+ basePath: "/api/v1/queries",
400
+ updateMethod: "PUT",
401
+ plural: "queries",
402
+ label: "queries (named, typed reads of a data source that answer an agent and fill tables)",
403
+ deleteVersionParam: "expectedVersion",
404
+ listPaging: { defaultPageSize: 20, maxPageSize: 200 },
405
+ createNote: QUERY_NOTE,
406
+ deleteNote: "A query that fills a table, or whose tool an agent holds, is used: " +
407
+ "read_query_usage says who holds its tool, and list_data_tables " +
408
+ "({ filledBy: \"query\" }) which tables it fills.",
409
+ publishNote: "Refused while read_query's `publishBlockers` is not empty — each one " +
410
+ "names what is missing (a grain, a column without a description, a " +
411
+ "parameter the statement does not use). Publishing makes its read tool " +
412
+ "live for every agent that holds it.",
413
+ updateWarning: QUERY_NOTE +
414
+ " On an update, `parameters`, `returns` and `questions` are replaced " +
415
+ "WHOLE when sent: read first and send the complete list, each item " +
416
+ "with its `id` so it stays the same item.",
417
+ },
418
+ {
419
+ // A program an agent operates through an executor (axonity-flow#1901),
420
+ // with routes in the same order and spelling as a table's — so the whole
421
+ // family comes from the registrars. What is not generic (the executors it
422
+ // runs on, what it has learned) is in tools/applications.ts.
423
+ singular: "application",
424
+ basePath: "/api/v1/applications",
425
+ updateMethod: "PUT",
426
+ label: "applications (programs an agent operates through an executor, with their limits)",
427
+ deleteVersionParam: "expected_version",
428
+ listPaging: { defaultPageSize: 20, maxPageSize: 200 },
429
+ createNote: APPLICATION_NOTE,
430
+ updateWarning: APPLICATION_NOTE +
431
+ " `limits` is replaced WHOLE when sent: read the application first and " +
432
+ "send the complete object, or a limit you left out is gone.",
433
+ publishNote: "The limits are what an executor on a customer's machine is allowed to " +
434
+ "do, which is why only a human makes them live. Until the approval is " +
435
+ "decided, the executors keep the limits published before. " +
436
+ "\n\nPublishing is also what rebuilds the application's act/observe " +
437
+ "tools from the published version. To publish again WITHOUT a change — " +
438
+ "an application already live, no draft, the request refused as " +
439
+ "`already_live` — call ensure_application_major_version first: it opens " +
440
+ "a draft of the current content, and this request then goes through. " +
441
+ "Never edit a field just to make a draft. A platform release rebuilds " +
442
+ "these tools by itself on start, so a new tool shape after a deploy " +
443
+ "needs no publish. To take a workflow live with the application its " +
444
+ "agents operate, request this alongside request_publish_release: a " +
445
+ "release does not carry the application yet.",
446
+ },
276
447
  // The three below arrived with axonity-flow#1849 (axonity-mcp#78). None is
277
448
  // versioned or publish-approved: a change is live the moment it is saved, so
278
449
  // there is no draft to discard and no request_publish_*. Each lists one page
@@ -296,9 +467,9 @@ const ENTITIES = [
296
467
  "(maxBytesBilled, maxSeconds, allowedDatasets, forbiddenDatasets, " +
297
468
  "personalColumns, dateFilters); all are empty by default. " +
298
469
  "\n\nThen test_data_source to see whether it answers. A table is " +
299
- "filled from this source through its own `provenance.sourceId` " +
300
- "(create_data_table) — not through a sync, and not through a " +
301
- "reference doc.",
470
+ "filled from this source by a query that reads it (create_query, " +
471
+ "then `filledBy: \"query\"` and `fillingQueryId` on the table) — not " +
472
+ "through a sync, and not through a reference doc.",
302
473
  updateWarning: "NO DRAFT: this changes the live source, which every table it fills and every query " +
303
474
  "uses at once. `config` and `policy` are replaced WHOLE when sent — " +
304
475
  "read first and send the complete block.",
@@ -376,6 +547,12 @@ const VERSIONED = [
376
547
  publishedPath: "versions",
377
548
  },
378
549
  { singular: "measure", basePath: "/api/v1/measures", publishedPath: "versions" },
550
+ { singular: "query", basePath: "/api/v1/queries", publishedPath: "versions" },
551
+ {
552
+ singular: "application",
553
+ basePath: "/api/v1/applications",
554
+ publishedPath: "versions",
555
+ },
379
556
  ];
380
557
  export function registerAll(server, client) {
381
558
  registerConventions(server, client);
@@ -392,6 +569,7 @@ export function registerAll(server, client) {
392
569
  registerVersionTools(server, client, def);
393
570
  }
394
571
  registerAuthoringSpecTools(server, client);
572
+ registerEntityContractTools(server, client);
395
573
  registerWorkflowMutations(server, client);
396
574
  registerValidationTools(server, client);
397
575
  registerExecutionTools(server, client);
@@ -415,7 +593,11 @@ export function registerAll(server, client) {
415
593
  registerMeasureFormulaTools(server, client);
416
594
  registerDashboardTools(server, client);
417
595
  registerConceptTools(server, client);
596
+ registerQueryTools(server, client);
418
597
  registerComponentTools(server, client);
598
+ registerApplicationTools(server, client);
599
+ registerAccessTools(server, client);
600
+ registerKnowledgeGraphTools(server, client);
419
601
  }
420
602
  export function buildServer(client) {
421
603
  const server = new McpServer({ name: "axonity", version: "0.1.0" });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,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AiB,EAAE,KAAyB;IACvE,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACzB,IAAI,CAAC;QACH,OAAO,SAAS,KAAK,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/D,CAAC;IAAC,MAAM,CAAC;QACP,2EAA2E;QAC3E,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAc;IACnD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAC9B,MAAM,IAAI,KAAK,CACb;QACE,yDAAyD;QACzD,QAAQ;QACR,eAAe;QACf,EAAE;QACF,2DAA2D;QAC3D,gDAAgD;QAChD,6CAA6C;QAC7C,EAAE;QACF,uBAAuB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;KACxC,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;AACJ,CAAC;AAED,gEAAgE;AAChE,IAAI,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnD,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,OAAO,CAAC,KAAK,CAAC,wCAAwC,EAAE,GAAG,CAAC,CAAC;QAC7D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Who may read what: the audiences and roles of a workspace (axonity-mcp#88,
3
+ * S1; the platform half is axonity-flow#1918).
4
+ *
5
+ * Every piece of knowledge — a policy, a skill, a reference doc, a table —
6
+ * carries a label: a level and the audiences it is meant for. Every reader
7
+ * carries a clearance. Both name audiences BY ID, so an agent that writes a
8
+ * label needs the ids, and the only honest source of them is the workspace
9
+ * itself. That is all this file is for: reading the vocabulary.
10
+ *
11
+ * **Reading only.** Creating or changing an audience or a role, and giving a
12
+ * colleague a role, are `require_admin` on the platform, and a service token
13
+ * always resolves as a member. Whether a token may ever do that is an open
14
+ * decision in #88 (S3); until it is taken those routes are not in the pinned
15
+ * snapshot, so they are neither covered nor excluded here.
16
+ */
17
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
18
+ import type { AxonityClient } from "../client.js";
19
+ export declare function registerAccessTools(server: McpServer, client: AxonityClient): void;
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Who may read what: the audiences and roles of a workspace (axonity-mcp#88,
3
+ * S1; the platform half is axonity-flow#1918).
4
+ *
5
+ * Every piece of knowledge — a policy, a skill, a reference doc, a table —
6
+ * carries a label: a level and the audiences it is meant for. Every reader
7
+ * carries a clearance. Both name audiences BY ID, so an agent that writes a
8
+ * label needs the ids, and the only honest source of them is the workspace
9
+ * itself. That is all this file is for: reading the vocabulary.
10
+ *
11
+ * **Reading only.** Creating or changing an audience or a role, and giving a
12
+ * colleague a role, are `require_admin` on the platform, and a service token
13
+ * always resolves as a member. Whether a token may ever do that is an open
14
+ * decision in #88 (S3); until it is taken those routes are not in the pinned
15
+ * snapshot, so they are neither covered nor excluded here.
16
+ */
17
+ import { z } from "zod";
18
+ import { guard, jsonResult } from "./result.js";
19
+ const AUDIENCES = "/api/v1/audiences";
20
+ const ROLES = "/api/v1/roles";
21
+ /** Said on both list tools: these are pages, not the whole vocabulary. */
22
+ const PAGE_NOTE = "\n\nTHE RESPONSE IS ONE PAGE: { items, nextCursor, pageSize, hasMore }. " +
23
+ "While hasMore is true you have not seen them all — pass nextCursor back " +
24
+ "as cursor for the next page. Never build a cursor yourself.";
25
+ const LIMIT = z
26
+ .number()
27
+ .int()
28
+ .optional()
29
+ .describe("Page size. Omit for the platform's default.");
30
+ const CURSOR = z
31
+ .string()
32
+ .optional()
33
+ .describe("The previous response's nextCursor, to get the next page. Omit for the " +
34
+ "first page.");
35
+ export function registerAccessTools(server, client) {
36
+ server.tool("list_audiences", "The workspace's audiences. Read-only. " +
37
+ "\n\nAN AUDIENCE IS WHOM KNOWLEDGE IS MEANT FOR: Staff, Clients, " +
38
+ "Candidates — a group of people, not a permission. A policy, skill, " +
39
+ "reference doc or table names its audiences in `audienceIds`; a role " +
40
+ "says which audiences a colleague may read. `internal: true` means " +
41
+ "people inside the workspace, false the people it serves. `isSystem` " +
42
+ "marks the one the platform ships (Staff): usable, not changeable. " +
43
+ "\n\nThis is where an audience id comes from. Never guess one and never " +
44
+ "match on a name: two workspaces can both have \"Clients\" with " +
45
+ "different ids, and a name can be changed." +
46
+ PAGE_NOTE, { limit: LIMIT, cursor: CURSOR }, async ({ limit, cursor }) => guard(async () => jsonResult(await client.get(AUDIENCES, { limit, cursor }))));
47
+ server.tool("read_audience", "One audience: its name, description, and whether it is inside the " +
48
+ "workspace (`internal`). Read-only. An audience is whom knowledge is " +
49
+ "meant for — see list_audiences.", { id: z.string().describe("The audience's id, from list_audiences.") }, async ({ id }) => guard(async () => jsonResult(await client.get(`${AUDIENCES}/${id}`))));
50
+ server.tool("list_roles", "The workspace's roles. Read-only. " +
51
+ "\n\nA ROLE IS WHAT A COLLEAGUE MAY READ AND MAINTAIN. Each one says: " +
52
+ "up to which level it reads (`readMaxLevel`: public, internal or " +
53
+ "confidential; null reads nothing), for which audiences " +
54
+ "(`readAudienceIds`), and which audiences it maintains " +
55
+ "(`maintainAudienceIds`) — maintaining is confirming, correcting and " +
56
+ "labelling what is meant for them. `holders` is how many colleagues " +
57
+ "hold it. `isSystem` marks the one the platform ships (Member). A " +
58
+ "colleague with several roles reads with the widest. " +
59
+ "\n\nRoles are for people. An agent, a workflow and your own token " +
60
+ "have a clearance of their own instead, and none of them ever " +
61
+ "maintains anything." +
62
+ PAGE_NOTE, { limit: LIMIT, cursor: CURSOR }, async ({ limit, cursor }) => guard(async () => jsonResult(await client.get(ROLES, { limit, cursor }))));
63
+ server.tool("read_role", "One role: up to which level it reads, for which audiences, which " +
64
+ "audiences it maintains, and how many colleagues hold it. Read-only. " +
65
+ "The audiences are ids — read_audience or list_audiences names them.", { id: z.string().describe("The role's id, from list_roles.") }, async ({ id }) => guard(async () => jsonResult(await client.get(`${ROLES}/${id}`))));
66
+ server.tool("read_member_roles", "Which roles one colleague holds, as role ids. Read-only. Use it to " +
67
+ "answer \"can this person read that?\": read each role with read_role. " +
68
+ "With several roles, the widest applies. The colleague's id comes from " +
69
+ "list_users.", { userId: z.string().describe("The colleague's user id, from list_users.") }, async ({ userId }) => guard(async () => jsonResult(await client.get(`/api/v1/users/${userId}/roles`))));
70
+ }
71
+ //# sourceMappingURL=access.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access.js","sourceRoot":"","sources":["../../src/tools/access.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,SAAS,GAAG,mBAAmB,CAAC;AACtC,MAAM,KAAK,GAAG,eAAe,CAAC;AAE9B,0EAA0E;AAC1E,MAAM,SAAS,GACb,0EAA0E;IAC1E,0EAA0E;IAC1E,6DAA6D,CAAC;AAEhE,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,EAAE;KACR,GAAG,EAAE;KACL,QAAQ,EAAE;KACV,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAE3D,MAAM,MAAM,GAAG,CAAC;KACb,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CACP,yEAAyE;IACvE,aAAa,CAChB,CAAC;AAEJ,MAAM,UAAU,mBAAmB,CAAC,MAAiB,EAAE,MAAqB;IAC1E,MAAM,CAAC,IAAI,CACT,gBAAgB,EAChB,wCAAwC;QACtC,kEAAkE;QAClE,qEAAqE;QACrE,sEAAsE;QACtE,oEAAoE;QACpE,sEAAsE;QACtE,oEAAoE;QACpE,yEAAyE;QACzE,iEAAiE;QACjE,2CA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E,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC,EAAE,EAC9D,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CACpF,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,mBAAmB,EACnB,qEAAqE;QACnE,wEAAwE;QACxE,wEAAwE;QACxE,aAAa,EACf,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC,EAAE,EAC5E,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CACnB,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,iBAAiB,MAAM,QAAQ,CAAC,CAAC,CAAC,CACnF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Applications beyond the entity verbs (axonity-mcp#86, the connector half of
3
+ * axonity-flow#1901): which executors an application runs on, the executors
4
+ * themselves, and what the application has learned about itself.
5
+ *
6
+ * The plain verbs — list/read/create/update/delete/restore, the versions and
7
+ * request_publish_application — come from the registrars (see `ENTITIES` in
8
+ * index.ts). Publishing is the human approval queue, as everywhere: the limits
9
+ * are what an executor on a customer's machine is allowed to do.
10
+ *
11
+ * **Executors are read-only here.** Registering one mints its token and
12
+ * revoking one cuts a machine off; both are deny-listed. Nothing here returns a
13
+ * token: an executor's answer carries only its prefix and expiry.
14
+ *
15
+ * **Who may write.** Linking executors and writing, forgetting or restoring
16
+ * knowledge are `require_admin` on the platform, and a service token always
17
+ * resolves as a member — so today these answer 403 for every token, and
18
+ * `ForbiddenError` says so in words. The tools are here so the refusal names
19
+ * its reason rather than the tool being missing, and so they work the day the
20
+ * platform opens them.
21
+ */
22
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
23
+ import type { AxonityClient } from "../client.js";
24
+ export declare function registerApplicationTools(server: McpServer, client: AxonityClient): void;