@axonity-ai/mcp 0.8.0 → 0.10.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.
- package/README.md +98 -41
- package/dist/client.d.ts +11 -3
- package/dist/client.js +14 -6
- package/dist/client.js.map +1 -1
- package/dist/contract.js +19 -1
- package/dist/contract.js.map +1 -1
- package/dist/generated/listFilters.js +20 -0
- package/dist/generated/listFilters.js.map +1 -1
- package/dist/index.js +34 -4
- package/dist/index.js.map +1 -1
- package/dist/tools/conventions.js +98 -0
- package/dist/tools/conventions.js.map +1 -1
- package/dist/tools/dataTables.d.ts +38 -0
- package/dist/tools/dataTables.js +129 -0
- package/dist/tools/dataTables.js.map +1 -0
- package/dist/tools/extras.js +50 -26
- package/dist/tools/extras.js.map +1 -1
- package/dist/tools/register.d.ts +34 -0
- package/dist/tools/register.js +51 -12
- package/dist/tools/register.js.map +1 -1
- package/dist/tools/runs.js +40 -2
- package/dist/tools/runs.js.map +1 -1
- package/dist/tools/triggers.js +84 -9
- package/dist/tools/triggers.js.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ tenant + scope on every call, so the connector is not a trust boundary.
|
|
|
40
40
|
|
|
41
41
|
## Tools
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
345 tools total. `axonity_conventions` (read this first) covers the authoring
|
|
44
44
|
rules — drafts vs live, optimistic locking, per-entity fields, delete/restore,
|
|
45
45
|
and how to tell a retryable error from one that will never succeed.
|
|
46
46
|
|
|
@@ -52,9 +52,10 @@ was kept here. A conformance test asserts their absence.
|
|
|
52
52
|
|
|
53
53
|
### The generic entity family
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
output_schema, prompt_snippet, flow** — share one shape,
|
|
57
|
-
entity gets every verb (see the per-entity notes below for the
|
|
55
|
+
Eleven entities — **workflow, agent, tool, skill, policy, reference_doc,
|
|
56
|
+
persona, output_schema, prompt_snippet, flow, data_table** — share one shape,
|
|
57
|
+
though not every entity gets every verb (see the per-entity notes below for the
|
|
58
|
+
exceptions):
|
|
58
59
|
|
|
59
60
|
| Tool (per `<entity>`) | What it does |
|
|
60
61
|
|------|--------------|
|
|
@@ -69,7 +70,8 @@ entity gets every verb (see the per-entity notes below for the exceptions):
|
|
|
69
70
|
| `request_publish_<entity>` | Ask for a draft to be published — creates a pending approval; never publishes. |
|
|
70
71
|
|
|
71
72
|
Exceptions: `persona` has no `create_persona` (create only via
|
|
72
|
-
`create_agent_persona`).
|
|
73
|
+
`create_agent_persona`). And `list_data_tables` answers **one page**, not the
|
|
74
|
+
whole library — see Tables below.
|
|
73
75
|
|
|
74
76
|
Some list routes narrow in the query, which is where narrowing belongs — the
|
|
75
77
|
backend applies it before the rows come back:
|
|
@@ -77,7 +79,8 @@ backend applies it before the rows come back:
|
|
|
77
79
|
`list_agents({ includeSystem? })`,
|
|
78
80
|
`list_policies({ scope?, ownerId? })`,
|
|
79
81
|
`list_reference_docs({ scope?, ownerId? })`,
|
|
80
|
-
`list_prompt_snippets({ deleted? })
|
|
82
|
+
`list_prompt_snippets({ deleted? })`,
|
|
83
|
+
`list_data_tables({ name?, status?, isDynamic? })`.
|
|
81
84
|
|
|
82
85
|
That table is **generated** from the pinned schema's own query parameters
|
|
83
86
|
(`npm run generate:filters` → `src/generated/listFilters.ts`), not hand-listed.
|
|
@@ -115,7 +118,7 @@ Plus:
|
|
|
115
118
|
|
|
116
119
|
### Version history, rollback, and version-level delete
|
|
117
120
|
|
|
118
|
-
For the
|
|
121
|
+
For the eleven versioned entities (including `flow` and `data_table`):
|
|
119
122
|
|
|
120
123
|
| Tool | What it does |
|
|
121
124
|
|------|--------------|
|
|
@@ -156,13 +159,14 @@ across these routes — the tool parameter names say which.
|
|
|
156
159
|
box's tools share and carries the same placeholder guard as a connector.
|
|
157
160
|
- **Attach / detach memory**: `attach_skill_to_agent`,
|
|
158
161
|
`attach_skill_to_workflow`, `attach_policy_to_agent`,
|
|
159
|
-
`attach_reference_to_agent`, and a
|
|
160
|
-
removes the link only — the skill or
|
|
161
|
-
links back with `list_agent_skills`,
|
|
162
|
-
`list_agent_reference_docs
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
`attach_reference_to_agent`, `attach_reference_to_workflow`, and a
|
|
163
|
+
`detach_*_from_*` for each. Detaching removes the link only — the skill or
|
|
164
|
+
policy itself is untouched. Read the links back with `list_agent_skills`,
|
|
165
|
+
`list_agent_policies`, `list_agent_reference_docs`, `list_workflow_skills`
|
|
166
|
+
and `list_workflow_reference_docs`. The three agent read-backs take an
|
|
167
|
+
optional `workflowId` for the **composed runtime view** — what the agent's
|
|
168
|
+
prompt actually assembles inside that workflow, with a `linkSource` per row
|
|
169
|
+
saying why each item is there.
|
|
166
170
|
- **What uses this?**: `list_workflows_using({ entityKind, entityId })` names
|
|
167
171
|
the workflows that reference a tool, agent, flow, output schema or workflow,
|
|
168
172
|
**and the steps they reference it in**, with `draft`/`published` per hit.
|
|
@@ -209,7 +213,8 @@ across these routes — the tool parameter names say which.
|
|
|
209
213
|
is my run not moving* without asking a human to look at a screen. Every write
|
|
210
214
|
in these families — purging or replaying queue work, changing a cap or the
|
|
211
215
|
tier map, importing a tenant bundle, reading someone's notifications — is
|
|
212
|
-
deliberately absent and recorded in `test/
|
|
216
|
+
deliberately absent and recorded in `test/denyList.ts`, the list
|
|
217
|
+
`test/exclusions.test.ts` enforces.
|
|
213
218
|
- **Secrets** (read-only): `list_secrets`, `read_secret` — the catalogue a
|
|
214
219
|
connector's `authConfig.secretId` points at. Values are never returned by any
|
|
215
220
|
Axonity route; `valueKeys` says which keys a human has filled in, so you can
|
|
@@ -220,6 +225,25 @@ across these routes — the tool parameter names say which.
|
|
|
220
225
|
`clone_flow`, `clone_prompt_snippet`, `list_tool_packages` (the import
|
|
221
226
|
allowlist `validate_tool_code` judges against), `list_templates` /
|
|
222
227
|
`read_template`.
|
|
228
|
+
- **Tables** (`data_table`): the tenant's own reference data — a table an
|
|
229
|
+
author designs and maintains, and agents and decisions read. The whole
|
|
230
|
+
lifecycle is the generic family above; three things are not, and each is a
|
|
231
|
+
way to be quietly wrong:
|
|
232
|
+
- `list_data_tables` is **paged** (20 by default, 200 max), alone among the
|
|
233
|
+
library lists, because a tenant's reference data has no ceiling. Page one
|
|
234
|
+
is not the library — follow `nextCursor` while `hasMore`, or narrow with
|
|
235
|
+
`name`, which is exact and unique per workspace.
|
|
236
|
+
- **`rows` and `columns` are whole-collection fields.** Sending `rows`
|
|
237
|
+
through `update_data_table` replaces the table's content; one row there
|
|
238
|
+
deletes every other. `add_data_table_row`, `update_data_table_row` and
|
|
239
|
+
`delete_data_table_row` address a single row by a `matchColumn` /
|
|
240
|
+
`matchValue` pair and cannot touch the rest.
|
|
241
|
+
- **A table's derived tools follow its published version.** A published table
|
|
242
|
+
mints its own CRUD tools, so granting an agent access to one is ordinary
|
|
243
|
+
tool granting. `list_data_table_tools` reports `offered` (what the draft
|
|
244
|
+
would yield), `toolId` (whether a row exists) and `isLive` (whether a run
|
|
245
|
+
can reach it) separately — an author who ticked "may add rows" and has not
|
|
246
|
+
published has granted nothing yet.
|
|
223
247
|
- `list_deleted_prompt_snippets` calls `/api/v1/prompt-snippets/deleted`; the
|
|
224
248
|
backend returns it as `{ items: [... ] }`, and the tool forwards that response
|
|
225
249
|
unchanged.
|
|
@@ -260,6 +284,24 @@ trigger must exist in the **published** document. Rule shapes come from
|
|
|
260
284
|
`get_workflow_authoring_spec` → `scheduleRuleKinds`; this connector names none
|
|
261
285
|
of its own.
|
|
262
286
|
|
|
287
|
+
**A conditional trigger without a check starts the workflow every beat.** It
|
|
288
|
+
wakes on its interval and, with nothing set, runs whether or not there was
|
|
289
|
+
anything to do — a mailbox on fifteen minutes makes ninety-six empty runs a
|
|
290
|
+
day. `checkKind` decides instead, and it is a gate ahead of the run being
|
|
291
|
+
created: `"automatic"` is one tool call plus one rule on its answer, no model.
|
|
292
|
+
Its `checkConfig` is `{ toolId, inputs?, rule: { field, op, value } }`, where
|
|
293
|
+
`field` names a key of the *tool's* answer. `"agent"` is reserved for a model
|
|
294
|
+
judging the condition and is refused today.
|
|
295
|
+
|
|
296
|
+
Set it on `create_conditional_trigger` or on an existing trigger with
|
|
297
|
+
`update_conditional_trigger` — everything authored before checks existed has
|
|
298
|
+
none, which `list_conditional_triggers` shows as `checkKind: null`. **To take a
|
|
299
|
+
check off, send `checkKind: ""`**: the empty string clears the kind and its
|
|
300
|
+
config together, where omitting the field leaves it standing. The connector
|
|
301
|
+
does not judge a check — the backend validates it with the same function the
|
|
302
|
+
dispatcher runs when the trigger fires, so a setting that saves is one that
|
|
303
|
+
runs, and a bad one comes back as a refusal naming what to fix.
|
|
304
|
+
|
|
263
305
|
### Runs — evaluating what you built
|
|
264
306
|
|
|
265
307
|
`start_workflow_run` (test a workflow you built — it runs the **published**
|
|
@@ -286,7 +328,10 @@ the run, its steps, and the items a fan-out handed out, flat with parent
|
|
|
286
328
|
pointers. It carries no bodies, so its size follows the run's *shape* rather
|
|
287
329
|
than its content: a launch over four thousand items costs about what one over
|
|
288
330
|
four costs. `itemCap` bounds the items listed per fan-out step and the remainder
|
|
289
|
-
is counted in `counts.truncated`, never dropped silently
|
|
331
|
+
is counted in `counts.truncated`, never dropped silently —
|
|
332
|
+
`read_run_outline_items` carries on from where the outline stopped, one step at
|
|
333
|
+
a time, walked by `offset` (safe here: a fan-out's items are fixed once handed
|
|
334
|
+
out, so the ordering cannot shift under you). Then open only what
|
|
290
335
|
you want: `read_run_value` for one large step value (by the digest in
|
|
291
336
|
`stepStates`) and `read_run_invocation_messages` for one agent's transcript (by
|
|
292
337
|
the id in `agentInvocations`). Reading a whole run to find one message is the
|
|
@@ -298,7 +343,7 @@ waiting for; `answer_run_question` answers an `ask_user` step and
|
|
|
298
343
|
a person's, so use them on runs you started. Deciding a **plan approval** and
|
|
299
344
|
restarting a stuck run are deliberately absent — the first is the human review
|
|
300
345
|
the step exists to get, the second is `require_admin` and a service token is
|
|
301
|
-
always `role="member"`. Both are recorded in `test/
|
|
346
|
+
always `role="member"`. Both are recorded in `test/denyList.ts`, together
|
|
302
347
|
with stopping runs in bulk (admin), the tenant's storage footprint (admin), an
|
|
303
348
|
inbound channel reply (authenticated by the email/WhatsApp adapter, not by a
|
|
304
349
|
service token) and the retired `workflow-memory` placeholder.
|
|
@@ -396,7 +441,7 @@ These are enforced by the backend, not merely by convention:
|
|
|
396
441
|
matching the message text.
|
|
397
442
|
- **No tool crosses the authority boundary.** A test drives the whole registered
|
|
398
443
|
surface and fails the build if any tool targets a publish / approve /
|
|
399
|
-
secret-write / service-token / deploy route (`test/
|
|
444
|
+
secret-write / service-token / deploy route (`test/denyList.ts`). The
|
|
400
445
|
rules are method-aware: `GET /api/v1/secrets` is allowed, every write verb on
|
|
401
446
|
it is not.
|
|
402
447
|
- **Guidance can't silently drift from the backend.** The field/enum facts the
|
|
@@ -428,40 +473,52 @@ npm run build # emits dist/
|
|
|
428
473
|
|
|
429
474
|
## Releasing
|
|
430
475
|
|
|
431
|
-
|
|
432
|
-
that bypass 2FA for direct publishing, so a stored `NPM_TOKEN` cannot ship this
|
|
433
|
-
package; `npm login` is the supported path.
|
|
434
|
-
|
|
435
|
-
**Check the contract first.** Shipping with a stale snapshot is how the
|
|
436
|
-
connector fell nine operations behind the backend without any test noticing:
|
|
476
|
+
**One command.**
|
|
437
477
|
|
|
438
478
|
```bash
|
|
439
|
-
npm run
|
|
479
|
+
npm run release:minor # or release:patch / release:major
|
|
440
480
|
```
|
|
441
481
|
|
|
442
|
-
|
|
443
|
-
`
|
|
444
|
-
|
|
445
|
-
|
|
482
|
+
That is the whole procedure. It refuses to start unless you are on `main` with
|
|
483
|
+
nothing uncommitted, resets `main` to exactly what is on GitHub, then installs,
|
|
484
|
+
tests and builds *before* touching the version — so anything that can fail,
|
|
485
|
+
fails while there is still nothing to undo. Only then does it bump, push, tag,
|
|
486
|
+
publish, and read the version back from npm to confirm it landed.
|
|
446
487
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
command timeout will kill it mid-flow
|
|
488
|
+
You need to be logged in first, once per machine. Run it in a real terminal:
|
|
489
|
+
`npm login` prints a URL and waits for the browser, so an editor's two-minute
|
|
490
|
+
command timeout will kill it mid-flow.
|
|
450
491
|
|
|
451
492
|
```bash
|
|
452
|
-
npm login
|
|
493
|
+
npm login
|
|
453
494
|
npm whoami # confirm the account
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
**Why a script and not a list of steps.** The list used to live here, and the
|
|
498
|
+
ORDER was load-bearing: sync first, or the version bump lands on a stale
|
|
499
|
+
checkout. That went wrong twice in one week, identically both times — the bump
|
|
500
|
+
was made on a tree missing the last merge, the branch push was refused, and the
|
|
501
|
+
tag went up anyway. Recovering meant deleting a published tag and hard-resetting,
|
|
502
|
+
which is not something a release should ever require. The script pushes the
|
|
503
|
+
branch *before* the tag for the same reason: a refused push then leaves nothing
|
|
504
|
+
behind.
|
|
454
505
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
506
|
+
**Check the contract before a release that matters.** Shipping with a stale
|
|
507
|
+
snapshot is how the connector fell nine operations behind the backend without
|
|
508
|
+
any test noticing:
|
|
509
|
+
|
|
510
|
+
```bash
|
|
511
|
+
npm run check:contract # expects ../axonity-flow; override with AXONITY_FLOW_PATH
|
|
460
512
|
```
|
|
461
513
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
514
|
+
It dumps the schema from a local `axonity-flow` checkout and diffs it against
|
|
515
|
+
`test/fixtures/openapi.snapshot.json`, naming every operation that moved. It
|
|
516
|
+
runs here rather than in CI because the publish runs here — a gate in CI cannot
|
|
517
|
+
stop a local `npm publish`.
|
|
518
|
+
|
|
519
|
+
After releasing, optionally cut a GitHub release for the tag. That triggers
|
|
520
|
+
`Verify release`, which rebuilds and packs the tagged commit without publishing
|
|
521
|
+
— it catches a tag cut from a state CI cannot install.
|
|
465
522
|
|
|
466
523
|
Keep npm 11 locally: Node 20 bundles npm 10, whose resolver writes an
|
|
467
524
|
incompatible lockfile tree. CI pins npm 11 for the same reason.
|
package/dist/client.d.ts
CHANGED
|
@@ -32,9 +32,17 @@ export declare class AxonityClient {
|
|
|
32
32
|
*/
|
|
33
33
|
request<T = unknown>(method: string, path: string, body?: unknown, query?: Query): Promise<T>;
|
|
34
34
|
get<T = unknown>(path: string, query?: Query): Promise<T>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
/**
|
|
36
|
+
* The writes. `query` is optional and usually absent — a write's arguments
|
|
37
|
+
* belong in its body — but a route may address its SUBJECT in the query while
|
|
38
|
+
* the body says what to change: `PATCH /data-tables/{id}/rows` takes
|
|
39
|
+
* `match_column`/`match_value` there to name the one row it edits. Without
|
|
40
|
+
* this the only way to call such a route would be to build the query string
|
|
41
|
+
* into `path` by hand, which is how an unencoded value becomes a bug.
|
|
42
|
+
*/
|
|
43
|
+
post<T = unknown>(path: string, body?: unknown, query?: Query): Promise<T>;
|
|
44
|
+
put<T = unknown>(path: string, body?: unknown, query?: Query): Promise<T>;
|
|
45
|
+
patch<T = unknown>(path: string, body?: unknown, query?: Query): Promise<T>;
|
|
38
46
|
/**
|
|
39
47
|
* DELETE. The optimistic lock travels as a QUERY parameter on these routes,
|
|
40
48
|
* not in the body — and its spelling differs by entity family
|
package/dist/client.js
CHANGED
|
@@ -72,14 +72,22 @@ export class AxonityClient {
|
|
|
72
72
|
get(path, query) {
|
|
73
73
|
return this.request("GET", path, undefined, query);
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
/**
|
|
76
|
+
* The writes. `query` is optional and usually absent — a write's arguments
|
|
77
|
+
* belong in its body — but a route may address its SUBJECT in the query while
|
|
78
|
+
* the body says what to change: `PATCH /data-tables/{id}/rows` takes
|
|
79
|
+
* `match_column`/`match_value` there to name the one row it edits. Without
|
|
80
|
+
* this the only way to call such a route would be to build the query string
|
|
81
|
+
* into `path` by hand, which is how an unencoded value becomes a bug.
|
|
82
|
+
*/
|
|
83
|
+
post(path, body, query) {
|
|
84
|
+
return this.request("POST", path, body, query);
|
|
77
85
|
}
|
|
78
|
-
put(path, body) {
|
|
79
|
-
return this.request("PUT", path, body);
|
|
86
|
+
put(path, body, query) {
|
|
87
|
+
return this.request("PUT", path, body, query);
|
|
80
88
|
}
|
|
81
|
-
patch(path, body) {
|
|
82
|
-
return this.request("PATCH", path, body);
|
|
89
|
+
patch(path, body, query) {
|
|
90
|
+
return this.request("PATCH", path, body, query);
|
|
83
91
|
}
|
|
84
92
|
/**
|
|
85
93
|
* DELETE. The optimistic lock travels as a QUERY parameter on these routes,
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAoB5E,MAAM,OAAO,aAAa;IACK;IAA7B,YAA6B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE9C,GAAG,CAAC,IAAY,EAAE,KAAa;QACrC,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;QAChF,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC;QAExB,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACjD,IAAI,KAAK,KAAK,SAAS;gBAAE,SAAS;YAClC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,KAAK,MAAM,IAAI,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AE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACpD,CAAC;IAED,GAAG,CAAc,IAAY,EAAE,IAAc,EAAE,KAAa;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAI,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAc,IAAY,EAAE,IAAc,EAAE,KAAa;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAI,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAc,IAAY,EAAE,KAAa;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAI,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;CACF;AAED,SAAS,QAAQ,CAAC,IAAY;IAC5B,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -125,7 +125,25 @@ export async function collectCalledRoutes(register) {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
// DEDUPLICATED, because every consumer of this list is a SET question —
|
|
129
|
+
// "which routes does this build call" — and the replay above asks it once per
|
|
130
|
+
// probe variant. Fourteen variants over three hundred handlers is ~4,400
|
|
131
|
+
// observations of a few hundred distinct routes, and both readers then match
|
|
132
|
+
// each one against the whole route surface: 2.2M comparisons where 150k
|
|
133
|
+
// would do. `missingFromContract` already collapses the duplicates into a
|
|
134
|
+
// Set, and the completeness sweep does the same, so nothing downstream can
|
|
135
|
+
// tell the difference — it was paying for repetition it then discarded.
|
|
136
|
+
//
|
|
137
|
+
// It is not only a test cost. This runs at connector STARTUP, ahead of the
|
|
138
|
+
// transport, on any deploy whose contract hash has changed.
|
|
139
|
+
const seen = new Set();
|
|
140
|
+
return calls.filter((call) => {
|
|
141
|
+
const key = `${call.method} ${call.path}`;
|
|
142
|
+
if (seen.has(key))
|
|
143
|
+
return false;
|
|
144
|
+
seen.add(key);
|
|
145
|
+
return true;
|
|
146
|
+
});
|
|
129
147
|
}
|
|
130
148
|
/** Split a path into segments, dropping any query string. */
|
|
131
149
|
function segments(path) {
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAoB/D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG;IAChF,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IACzE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;IAC1E,YAAY,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG;IAC/D,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,EAA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AAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5D,0EAA0E;QAC1E,kEAAkE;QAClE,8DAA8D,CACjE,CAAC;IACF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -74,5 +74,25 @@ export const LIST_FILTERS = {
|
|
|
74
74
|
description: "Return the tenant's soft-deleted rows instead of the live ones. `list_deleted_prompt_snippets` asks the dedicated route for the same thing and is usually clearer.",
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
|
+
"data_table": [
|
|
78
|
+
{
|
|
79
|
+
arg: "name",
|
|
80
|
+
query: "name",
|
|
81
|
+
type: "string",
|
|
82
|
+
description: "Only the table with exactly this name. A name is unique within the workspace and is what a tool grant and a decision rule refer to, so this answers 'does it already exist' in one call. Matching is exact, never a substring.",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
arg: "status",
|
|
86
|
+
query: "status",
|
|
87
|
+
type: "string",
|
|
88
|
+
description: "Only tables with this lifecycle status: active (in use) or archived (kept, not offered). A value outside the two is refused rather than silently ignored.",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
arg: "isDynamic",
|
|
92
|
+
query: "is_dynamic",
|
|
93
|
+
type: "boolean",
|
|
94
|
+
description: "true: only tables a workflow may change. false: only reference data the author maintains. Omit for both.",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
77
97
|
};
|
|
78
98
|
//# sourceMappingURL=listFilters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listFilters.js","sourceRoot":"","sources":["../../src/generated/listFilters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,CAAC,MAAM,YAAY,GAAiC;IACxD,UAAU,EAAE;QACV;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,sGAAsG;SACzG;QACD;YACE,GAAG,EAAE,cAAc;YACnB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,kFAAkF;SACrF;KACF;IACD,OAAO,EAAE;QACP;YACE,GAAG,EAAE,eAAe;YACpB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,uNAAuN;SAC1N;KACF;IACD,QAAQ,EAAE;QACR;YACE,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,0PAA0P;SAC7P;QACD;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,uGAAuG;SAC1G;KACF;IACD,eAAe,EAAE;QACf;YACE,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,0PAA0P;SAC7P;QACD;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,uGAAuG;SAC1G;KACF;IACD,gBAAgB,EAAE;QAChB;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,oKAAoK;SACvK;KACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"listFilters.js","sourceRoot":"","sources":["../../src/generated/listFilters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,CAAC,MAAM,YAAY,GAAiC;IACxD,UAAU,EAAE;QACV;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,sGAAsG;SACzG;QACD;YACE,GAAG,EAAE,cAAc;YACnB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,kFAAkF;SACrF;KACF;IACD,OAAO,EAAE;QACP;YACE,GAAG,EAAE,eAAe;YACpB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,uNAAuN;SAC1N;KACF;IACD,QAAQ,EAAE;QACR;YACE,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,0PAA0P;SAC7P;QACD;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,uGAAuG;SAC1G;KACF;IACD,eAAe,EAAE;QACf;YACE,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,0PAA0P;SAC7P;QACD;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,uGAAuG;SAC1G;KACF;IACD,gBAAgB,EAAE;QAChB;YACE,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,oKAAoK;SACvK;KACF;IACD,YAAY,EAAE;QACZ;YACE,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,gOAAgO;SACnO;QACD;YACE,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,2JAA2J;SAC9J;QACD;YACE,GAAG,EAAE,WAAW;YAChB,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,0GAA0G;SAC7G;KACF;CACF,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ 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 { registerDataTableTools } from "./tools/dataTables.js";
|
|
26
27
|
import { assertPlaceholderCredentials } from "./tools/credentials.js";
|
|
27
28
|
import { registerAttachTools, registerCatalogTools, registerConnectorTools, registerDependencyTools, registerPersonaTools, } from "./tools/extras.js";
|
|
28
29
|
import { registerAuthoringSpecTools } from "./tools/authoringSpec.js";
|
|
@@ -40,9 +41,10 @@ import { registerApprovalTools, registerExecutionTools, registerValidationTools,
|
|
|
40
41
|
import { registerVersionTools } from "./tools/versions.js";
|
|
41
42
|
import { registerWorkflowMutations } from "./tools/workflowMutations.js";
|
|
42
43
|
/**
|
|
43
|
-
* The entities the connector covers. Core entities (C4)
|
|
44
|
-
*
|
|
45
|
-
*
|
|
44
|
+
* The entities the connector covers. Core entities (C4), memory entities (C5)
|
|
45
|
+
* — skills, policies, reference docs — which have the same draft→publish
|
|
46
|
+
* lifecycle via #443's unified versioning, and `data_table` (axonity-flow#1217),
|
|
47
|
+
* which joins them on exactly the same shape.
|
|
46
48
|
*/
|
|
47
49
|
const ENTITIES = [
|
|
48
50
|
{
|
|
@@ -124,11 +126,33 @@ const ENTITIES = [
|
|
|
124
126
|
label: "flows (reusable workflow fragments)",
|
|
125
127
|
deleteVersionParam: "expectedVersion",
|
|
126
128
|
},
|
|
129
|
+
{
|
|
130
|
+
// A table is the same category of thing as an output schema — authored,
|
|
131
|
+
// typed, versioned, publish-approved — and axonity-flow#1217 deliberately
|
|
132
|
+
// wrote its routes in the same order and spelling, so the whole family
|
|
133
|
+
// comes from the registrar with no new code. What is NOT generic is the
|
|
134
|
+
// list (paged, alone among the entities) and the rows (a whole-collection
|
|
135
|
+
// field a blind `fields` bag can wipe) — hence the two entries below and
|
|
136
|
+
// the explicit row tools in `tools/dataTables.ts`.
|
|
137
|
+
singular: "data_table",
|
|
138
|
+
basePath: "/api/v1/data-tables",
|
|
139
|
+
updateMethod: "PUT",
|
|
140
|
+
plural: "data_tables",
|
|
141
|
+
label: "tables (authored reference data agents and decisions read)",
|
|
142
|
+
deleteVersionParam: "expected_version",
|
|
143
|
+
listPaging: { defaultPageSize: 20, maxPageSize: 200 },
|
|
144
|
+
updateWarning: "`rows` AND `columns` ARE WHOLE-COLLECTION FIELDS: sending either " +
|
|
145
|
+
"REPLACES it entirely. Passing one row in `rows` does not append it — it " +
|
|
146
|
+
"deletes every other row in the table. To change content, use " +
|
|
147
|
+
"add_data_table_row / update_data_table_row / delete_data_table_row, " +
|
|
148
|
+
"which address a single row and cannot destroy the rest. Use `rows` here " +
|
|
149
|
+
"only when you genuinely mean to replace the whole content.",
|
|
150
|
+
},
|
|
127
151
|
];
|
|
128
152
|
/**
|
|
129
153
|
* Entities with version history. Every authored entity here exposes the
|
|
130
154
|
* `/versions*` routes, `flow` included (verified against the backend:
|
|
131
|
-
* `/api/v1/flows/{id}/versions…`), so all
|
|
155
|
+
* `/api/v1/flows/{id}/versions…`), so all eleven get the version tools.
|
|
132
156
|
*/
|
|
133
157
|
const VERSIONED = [
|
|
134
158
|
{ singular: "workflow", basePath: "/api/v1/workflows", publishedPath: "entity" },
|
|
@@ -153,6 +177,11 @@ const VERSIONED = [
|
|
|
153
177
|
publishedPath: "versions",
|
|
154
178
|
},
|
|
155
179
|
{ singular: "flow", basePath: "/api/v1/flows", publishedPath: "entity" },
|
|
180
|
+
{
|
|
181
|
+
singular: "data_table",
|
|
182
|
+
basePath: "/api/v1/data-tables",
|
|
183
|
+
publishedPath: "versions",
|
|
184
|
+
},
|
|
156
185
|
];
|
|
157
186
|
export function registerAll(server, client) {
|
|
158
187
|
registerConventions(server);
|
|
@@ -186,6 +215,7 @@ export function registerAll(server, client) {
|
|
|
186
215
|
registerSubworkflowTools(server, client);
|
|
187
216
|
registerToolboxTools(server, client);
|
|
188
217
|
registerOperationsTools(server, client);
|
|
218
|
+
registerDataTableTools(server, client);
|
|
189
219
|
}
|
|
190
220
|
export function buildServer(client) {
|
|
191
221
|
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,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,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAkB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,O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