@axonity-ai/mcp 0.5.0 → 0.7.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 +181 -10
- package/dist/client.d.ts +15 -2
- package/dist/client.js +8 -1
- package/dist/client.js.map +1 -1
- package/dist/contract.d.ts +88 -0
- package/dist/contract.js +227 -0
- package/dist/contract.js.map +1 -0
- package/dist/errors.d.ts +15 -3
- package/dist/errors.js +27 -3
- package/dist/errors.js.map +1 -1
- package/dist/generated/listFilters.d.ts +19 -0
- package/dist/generated/listFilters.js +78 -0
- package/dist/generated/listFilters.js.map +1 -0
- package/dist/index.js +25 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/authoringSpec.d.ts +76 -0
- package/dist/tools/authoringSpec.js +169 -0
- package/dist/tools/authoringSpec.js.map +1 -0
- package/dist/tools/company.d.ts +5 -2
- package/dist/tools/company.js +56 -2
- package/dist/tools/company.js.map +1 -1
- package/dist/tools/conventions.d.ts +16 -0
- package/dist/tools/conventions.js +199 -19
- package/dist/tools/conventions.js.map +1 -1
- package/dist/tools/credentials.d.ts +20 -0
- package/dist/tools/credentials.js +41 -0
- package/dist/tools/credentials.js.map +1 -1
- package/dist/tools/extras.d.ts +17 -0
- package/dist/tools/extras.js +139 -9
- package/dist/tools/extras.js.map +1 -1
- package/dist/tools/register.d.ts +27 -0
- package/dist/tools/register.js +19 -1
- package/dist/tools/register.js.map +1 -1
- package/dist/tools/runs.d.ts +11 -0
- package/dist/tools/runs.js +211 -17
- package/dist/tools/runs.js.map +1 -1
- package/dist/tools/secrets.d.ts +33 -0
- package/dist/tools/secrets.js +69 -0
- package/dist/tools/secrets.js.map +1 -0
- package/dist/tools/subworkflows.d.ts +20 -0
- package/dist/tools/subworkflows.js +42 -0
- package/dist/tools/subworkflows.js.map +1 -0
- package/dist/tools/validation.js +74 -4
- package/dist/tools/validation.js.map +1 -1
- package/dist/tools/versions.d.ts +9 -0
- package/dist/tools/versions.js +36 -0
- package/dist/tools/versions.js.map +1 -1
- package/dist/tools/workflowMutations.js +44 -12
- package/dist/tools/workflowMutations.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +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,EAAE,qBAAqB,EAAE,CAAC;IACnE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;IACzD,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAA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C,WAAW,IAAI,IAAI,IAAI,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;QAC5E,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,OAAO,GAAG,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAEjF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,4EAA4E;QAC5E,2DAA2D;QAC3D,IAAI,IAAI;YAAE,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAChD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,KAAK,GACT,OAAO,QAAQ,CAAC,YAAY,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;IAChF,MAAM,WAAW,GACf,OAAO,QAAQ,CAAC,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IAE9E,GAAG,CACD,uCAAuC,OAAO,CAAC,MAAM,iBAAiB;QACpE,oBAAoB;QACpB,cAAc,KAAK,KAAK,WAAW,QAAQ,OAAO,CAAC,MAAM,IAAI;QAC7D,OAAO,CAAC,GAAG,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"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -98,9 +98,21 @@ export declare class BackendVersionSkewError extends AxonityApiError {
|
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Routes newer than the oldest backend this connector still works against, and
|
|
101
|
-
* what added them.
|
|
102
|
-
*
|
|
103
|
-
*
|
|
101
|
+
* what added them.
|
|
102
|
+
*
|
|
103
|
+
* THIS IS ANNOTATION, NOT A ROUTE INVENTORY (#48 M2). Whether the backend has
|
|
104
|
+
* the routes this build needs is settled at startup by `GET /api/v1/contract`,
|
|
105
|
+
* which the server derives from its own mounted app and therefore cannot get
|
|
106
|
+
* wrong. What this table adds is provenance — "that route was added by
|
|
107
|
+
* axonity-flow#792" — so a human can check a deploy date instead of guessing.
|
|
108
|
+
*
|
|
109
|
+
* It keeps one deciding job, for the case the contract check cannot cover: on a
|
|
110
|
+
* REACTIVE 404 there is no way to tell "this backend is old" from "no such id",
|
|
111
|
+
* and an entry here is the only evidence available at that moment. A 405 needs
|
|
112
|
+
* no entry; a wrong method on an existing path already means the path moved.
|
|
113
|
+
*
|
|
114
|
+
* So a missing entry costs a clause in a message, never a wrong verdict — and
|
|
115
|
+
* that is the whole difference from the hand-kept lists #32 and #44 removed.
|
|
104
116
|
*/
|
|
105
117
|
export declare const ROUTES_ADDED_IN: {
|
|
106
118
|
pattern: RegExp;
|
package/dist/errors.js
CHANGED
|
@@ -238,9 +238,21 @@ export class BackendVersionSkewError extends AxonityApiError {
|
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
240
|
* Routes newer than the oldest backend this connector still works against, and
|
|
241
|
-
* what added them.
|
|
242
|
-
*
|
|
243
|
-
*
|
|
241
|
+
* what added them.
|
|
242
|
+
*
|
|
243
|
+
* THIS IS ANNOTATION, NOT A ROUTE INVENTORY (#48 M2). Whether the backend has
|
|
244
|
+
* the routes this build needs is settled at startup by `GET /api/v1/contract`,
|
|
245
|
+
* which the server derives from its own mounted app and therefore cannot get
|
|
246
|
+
* wrong. What this table adds is provenance — "that route was added by
|
|
247
|
+
* axonity-flow#792" — so a human can check a deploy date instead of guessing.
|
|
248
|
+
*
|
|
249
|
+
* It keeps one deciding job, for the case the contract check cannot cover: on a
|
|
250
|
+
* REACTIVE 404 there is no way to tell "this backend is old" from "no such id",
|
|
251
|
+
* and an entry here is the only evidence available at that moment. A 405 needs
|
|
252
|
+
* no entry; a wrong method on an existing path already means the path moved.
|
|
253
|
+
*
|
|
254
|
+
* So a missing entry costs a clause in a message, never a wrong verdict — and
|
|
255
|
+
* that is the whole difference from the hand-kept lists #32 and #44 removed.
|
|
244
256
|
*/
|
|
245
257
|
export const ROUTES_ADDED_IN = [
|
|
246
258
|
{
|
|
@@ -255,6 +267,18 @@ export const ROUTES_ADDED_IN = [
|
|
|
255
267
|
pattern: /^\/api\/v1\/publish-approvals\/bulk$/,
|
|
256
268
|
addedBy: "axonity-flow#795 (bulk publish requests)",
|
|
257
269
|
},
|
|
270
|
+
{
|
|
271
|
+
pattern: /^\/api\/v1\/publish-approvals\/release$/,
|
|
272
|
+
addedBy: "axonity-flow#799 (approve a release, not 162 rows)",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
pattern: /^\/api\/v1\/workflows\/callable$/,
|
|
276
|
+
addedBy: "axonity-flow#898 (workflows can call each other)",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
pattern: /^\/api\/v1\/workflows\/operations$/,
|
|
280
|
+
addedBy: "axonity-flow#802 (the mutation catalog over HTTP)",
|
|
281
|
+
},
|
|
258
282
|
];
|
|
259
283
|
/** The skew error for this call, or undefined when the status says nothing. */
|
|
260
284
|
export function skewErrorFor(method, path, status, body) {
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkCH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAA2B,IAAI,GAAG,CAAC;IAC7D,kBAAkB;IAClB,cAAc;IACd,8BAA8B;CAC/B,CAAC,CAAC;AAUH,mFAAmF;AACnF,SAAS,UAAU,CAAC,IAAa;IAC/B,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,I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F,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED — do not edit. Run `npm run generate:filters`.
|
|
3
|
+
*
|
|
4
|
+
* The query-string filters each `list_*` route accepts, read from
|
|
5
|
+
* `test/fixtures/openapi.snapshot.json` (axonity-mcp#48 M4). Generated rather
|
|
6
|
+
* than hand-listed so the ELEVENTH filter arrives without anyone noticing it
|
|
7
|
+
* had to: #45 M9(3) exposed ten by hand, which fixes the symptom and leaves the
|
|
8
|
+
* mechanism that produced it.
|
|
9
|
+
*
|
|
10
|
+
* `arg` is the camelCase name the tool takes; `query` is the spelling the
|
|
11
|
+
* route declares. The two differ on most of these, and that inconsistency is
|
|
12
|
+
* real — it is exactly what a caller should not have to know.
|
|
13
|
+
*
|
|
14
|
+
* `test/listFilters.test.ts` regenerates this in memory and fails if it has
|
|
15
|
+
* drifted from the snapshot, so a refreshed snapshot cannot leave a filter
|
|
16
|
+
* unexposed in silence.
|
|
17
|
+
*/
|
|
18
|
+
import type { ListFilter } from "../tools/register.js";
|
|
19
|
+
export declare const LIST_FILTERS: Record<string, ListFilter[]>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED — do not edit. Run `npm run generate:filters`.
|
|
3
|
+
*
|
|
4
|
+
* The query-string filters each `list_*` route accepts, read from
|
|
5
|
+
* `test/fixtures/openapi.snapshot.json` (axonity-mcp#48 M4). Generated rather
|
|
6
|
+
* than hand-listed so the ELEVENTH filter arrives without anyone noticing it
|
|
7
|
+
* had to: #45 M9(3) exposed ten by hand, which fixes the symptom and leaves the
|
|
8
|
+
* mechanism that produced it.
|
|
9
|
+
*
|
|
10
|
+
* `arg` is the camelCase name the tool takes; `query` is the spelling the
|
|
11
|
+
* route declares. The two differ on most of these, and that inconsistency is
|
|
12
|
+
* real — it is exactly what a caller should not have to know.
|
|
13
|
+
*
|
|
14
|
+
* `test/listFilters.test.ts` regenerates this in memory and fails if it has
|
|
15
|
+
* drifted from the snapshot, so a refreshed snapshot cannot leave a filter
|
|
16
|
+
* unexposed in silence.
|
|
17
|
+
*/
|
|
18
|
+
export const LIST_FILTERS = {
|
|
19
|
+
"workflow": [
|
|
20
|
+
{
|
|
21
|
+
arg: "stageId",
|
|
22
|
+
query: "stage_id",
|
|
23
|
+
type: "string",
|
|
24
|
+
description: "Only workflows linked to this stage of the company's value stream. Stage ids come from read_company.",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
arg: "capabilityId",
|
|
28
|
+
query: "capability_id",
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "Only workflows linked to this capability. Capability ids come from read_company.",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
"agent": [
|
|
34
|
+
{
|
|
35
|
+
arg: "includeSystem",
|
|
36
|
+
query: "includeSystem",
|
|
37
|
+
type: "boolean",
|
|
38
|
+
description: "Include the platform's own system agents (the Builder team) alongside the tenant's. Defaults to false. They are readable, not yours to edit — useful when a workflow step names one and you are wondering what it is.",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
"policy": [
|
|
42
|
+
{
|
|
43
|
+
arg: "scope",
|
|
44
|
+
query: "scope",
|
|
45
|
+
type: "string",
|
|
46
|
+
description: "Only items with this scope — the same value the entity's own `scope` field carries (read one, or read the 422 a wrong value returns). This is how you separate the tenant-wide items, which reach every agent, from the ones attached to a single owner.",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
arg: "ownerId",
|
|
50
|
+
query: "owner_id",
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "Only items owned by this entity — the agent or workflow id the scope points at. Pair it with `scope`.",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
"reference_doc": [
|
|
56
|
+
{
|
|
57
|
+
arg: "scope",
|
|
58
|
+
query: "scope",
|
|
59
|
+
type: "string",
|
|
60
|
+
description: "Only items with this scope — the same value the entity's own `scope` field carries (read one, or read the 422 a wrong value returns). This is how you separate the tenant-wide items, which reach every agent, from the ones attached to a single owner.",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
arg: "ownerId",
|
|
64
|
+
query: "owner_id",
|
|
65
|
+
type: "string",
|
|
66
|
+
description: "Only items owned by this entity — the agent or workflow id the scope points at. Pair it with `scope`.",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
"prompt_snippet": [
|
|
70
|
+
{
|
|
71
|
+
arg: "deleted",
|
|
72
|
+
query: "deleted",
|
|
73
|
+
type: "boolean",
|
|
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
|
+
},
|
|
76
|
+
],
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=listFilters.js.map
|
|
@@ -0,0 +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"}
|
package/dist/index.js
CHANGED
|
@@ -21,13 +21,18 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
21
21
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
22
22
|
import { AxonityClient } from "./client.js";
|
|
23
23
|
import { loadConfig } from "./config.js";
|
|
24
|
+
import { reportContractSkew } from "./contract.js";
|
|
24
25
|
import { registerConventions } from "./tools/conventions.js";
|
|
25
26
|
import { assertPlaceholderCredentials } from "./tools/credentials.js";
|
|
26
|
-
import { registerAttachTools, registerCatalogTools, registerConnectorTools, registerPersonaTools, } from "./tools/extras.js";
|
|
27
|
+
import { registerAttachTools, registerCatalogTools, registerConnectorTools, registerDependencyTools, registerPersonaTools, } from "./tools/extras.js";
|
|
28
|
+
import { registerAuthoringSpecTools } from "./tools/authoringSpec.js";
|
|
27
29
|
import { registerCompanyTools } from "./tools/company.js";
|
|
28
30
|
import { registerPromptPlacementTools } from "./tools/promptPlacement.js";
|
|
31
|
+
import { LIST_FILTERS } from "./generated/listFilters.js";
|
|
29
32
|
import { registerEntityTools } from "./tools/register.js";
|
|
30
33
|
import { registerRunTools } from "./tools/runs.js";
|
|
34
|
+
import { registerSecretTools } from "./tools/secrets.js";
|
|
35
|
+
import { registerSubworkflowTools } from "./tools/subworkflows.js";
|
|
31
36
|
import { registerTriggerTools } from "./tools/triggers.js";
|
|
32
37
|
import { registerApprovalTools, registerExecutionTools, registerValidationTools, } from "./tools/validation.js";
|
|
33
38
|
import { registerVersionTools } from "./tools/versions.js";
|
|
@@ -150,11 +155,18 @@ const VERSIONED = [
|
|
|
150
155
|
export function registerAll(server, client) {
|
|
151
156
|
registerConventions(server);
|
|
152
157
|
for (const def of ENTITIES) {
|
|
153
|
-
|
|
158
|
+
// Filters are GENERATED from the pinned schema (#48 M4), never declared on
|
|
159
|
+
// the EntityDef — a filter the backend adds reaches an agent as soon as the
|
|
160
|
+
// snapshot is refreshed, which the drift job now guarantees happens.
|
|
161
|
+
registerEntityTools(server, client, {
|
|
162
|
+
...def,
|
|
163
|
+
listFilters: LIST_FILTERS[def.singular],
|
|
164
|
+
});
|
|
154
165
|
}
|
|
155
166
|
for (const def of VERSIONED) {
|
|
156
167
|
registerVersionTools(server, client, def);
|
|
157
168
|
}
|
|
169
|
+
registerAuthoringSpecTools(server, client);
|
|
158
170
|
registerWorkflowMutations(server, client);
|
|
159
171
|
registerValidationTools(server, client);
|
|
160
172
|
registerExecutionTools(server, client);
|
|
@@ -164,9 +176,12 @@ export function registerAll(server, client) {
|
|
|
164
176
|
registerPersonaTools(server, client);
|
|
165
177
|
registerConnectorTools(server, client);
|
|
166
178
|
registerAttachTools(server, client);
|
|
179
|
+
registerDependencyTools(server, client);
|
|
167
180
|
registerCatalogTools(server, client);
|
|
168
181
|
registerPromptPlacementTools(server, client);
|
|
169
182
|
registerCompanyTools(server, client);
|
|
183
|
+
registerSecretTools(server, client);
|
|
184
|
+
registerSubworkflowTools(server, client);
|
|
170
185
|
}
|
|
171
186
|
export function buildServer(client) {
|
|
172
187
|
const server = new McpServer({ name: "axonity", version: "0.1.0" });
|
|
@@ -178,6 +193,14 @@ async function main() {
|
|
|
178
193
|
const config = loadConfig();
|
|
179
194
|
const client = new AxonityClient(config);
|
|
180
195
|
const server = buildServer(client);
|
|
196
|
+
// Ask the deploy what it mounts BEFORE the transport is connected, so a
|
|
197
|
+
// missing route is reported at startup rather than on the twentieth tool call
|
|
198
|
+
// (#48 M2). It cannot fail and cannot hang: every path inside degrades to
|
|
199
|
+
// today's behaviour and the whole thing is bounded by a timeout.
|
|
200
|
+
// `registerAll` wants McpServer's overloaded `.tool()`; the probe server has
|
|
201
|
+
// the one four-argument form every registrar here actually uses. The cast is
|
|
202
|
+
// the same one every test that drives registerAll makes.
|
|
203
|
+
await reportContractSkew(client, (probe, probeClient) => registerAll(probe, probeClient), { apiUrl: config.apiUrl });
|
|
181
204
|
const transport = new StdioServerTransport();
|
|
182
205
|
await server.connect(transport);
|
|
183
206
|
// Log to stderr — stdout is the MCP channel and must stay clean.
|
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,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO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AAgD;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,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The building blocks of this deploy, read from the server instead of restated
|
|
3
|
+
* here.
|
|
4
|
+
*
|
|
5
|
+
* `apply_workflow_mutations` used to name all 22 command types in its own
|
|
6
|
+
* description. That list was correct only by maintenance, and it had already
|
|
7
|
+
* been wrong in the dangerous direction once: it advertised three operations
|
|
8
|
+
* the API rejected with a 422 (#32, axonity-flow#802). A conformance test then
|
|
9
|
+
* pinned the prose to the schema — the right fix for a list you keep, and still
|
|
10
|
+
* a list you keep.
|
|
11
|
+
*
|
|
12
|
+
* `GET /workflows/operations` (axonity-flow#802 B4) removes the list instead of
|
|
13
|
+
* guarding it. It is generated from the engine's mutation registry — the same
|
|
14
|
+
* source the mutations route validates against — so a command this tool reports
|
|
15
|
+
* is a command the API accepts, by construction rather than by agreement. A new
|
|
16
|
+
* server operation becomes discoverable with no change in this repository,
|
|
17
|
+
* which is the acceptance criterion #8 was filed for.
|
|
18
|
+
*
|
|
19
|
+
* axonity-flow#961 S1 extends that property to three more lists that had no
|
|
20
|
+
* route at all, and it is the same story each time: `conventions.ts` named nine
|
|
21
|
+
* step types where seven validate — `loop` and `for_each` both answer
|
|
22
|
+
* `step_invalid_type` — because a list nobody could read is a list that drifts.
|
|
23
|
+
* So the response now carries four generated lists, and this connector names
|
|
24
|
+
* none of them:
|
|
25
|
+
* - `operations` — the mutation commands, as before.
|
|
26
|
+
* - `triggerTypes` — every value a trigger's `typeId` may hold.
|
|
27
|
+
* - `stepTypes` — every value a step's `type` may hold, INCLUDING the
|
|
28
|
+
* ones an author may not write, each with the reason and what to write
|
|
29
|
+
* instead. Omitting those would read as "does not exist".
|
|
30
|
+
* - `scheduleRuleKinds` — the shapes a schedule rule takes, each with a
|
|
31
|
+
* working example the backend round-trips through its own parser on every
|
|
32
|
+
* read, so a published example cannot rot.
|
|
33
|
+
*
|
|
34
|
+
* axonity-flow#964 adds three more, and they are the ones that bite quietly.
|
|
35
|
+
* A value's type is not carried by the same KEY everywhere, and the three
|
|
36
|
+
* vocabularies behind those keys are not interchangeable:
|
|
37
|
+
* - `parameterTypes` — a trigger parameter's / workflow constant's `type`.
|
|
38
|
+
* Knows `boolean` and `constant`.
|
|
39
|
+
* - `outputKinds` — a step output's / input's `kind`. Narrower, and a
|
|
40
|
+
* DIFFERENT KEY. Spells the same idea `yes-no`, not `boolean`.
|
|
41
|
+
* - `schemaFieldKinds` — the canonical builder's vocabulary, inside a field's
|
|
42
|
+
* `schema`. Widest and newest; where a `schema` is present it wins.
|
|
43
|
+
* Writing `kind` on a trigger parameter is not a 422 — it is a key nothing
|
|
44
|
+
* reads, so the value falls back to text and the run binds the wrong shape.
|
|
45
|
+
* That is the failure this connector shipped once (axonity-mcp#47) by reading
|
|
46
|
+
* the field off the model that DECLARES it rather than the code that READS it.
|
|
47
|
+
*
|
|
48
|
+
* `rulesVersion` is a content hash over all four: same hash, nothing to
|
|
49
|
+
* re-fetch. It is what makes "read the spec at the start of each authoring
|
|
50
|
+
* task" cheap enough to actually do.
|
|
51
|
+
*
|
|
52
|
+
* **Cost.** The full catalog is ~20 KB — the payload schemas are the bulk of it,
|
|
53
|
+
* and `add_step` alone is 3 KB. Handing that to an agent that wanted to know
|
|
54
|
+
* which commands exist is the mistake #33 was filed about: a default that is
|
|
55
|
+
* correct but unaffordable produces the shortcut, not the careful read. So the
|
|
56
|
+
* payload SCHEMAS are what the index drops, per command, on request. The three
|
|
57
|
+
* vocabulary lists are small and are the answer to "what may I write at all",
|
|
58
|
+
* so they always ride along — trimming them would recreate the gap this closed.
|
|
59
|
+
*/
|
|
60
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
61
|
+
import type { AxonityClient } from "../client.js";
|
|
62
|
+
/**
|
|
63
|
+
* Project the catalog to what was asked for, keeping the envelope.
|
|
64
|
+
*
|
|
65
|
+
* Exported for testing. `types` is matched against the server's own `type`
|
|
66
|
+
* values with NO local list to check them against — an unknown name comes back
|
|
67
|
+
* in `unknownTypes` rather than being rejected here, because the connector is
|
|
68
|
+
* not the authority on what exists. That is the whole point of reading the
|
|
69
|
+
* catalogue.
|
|
70
|
+
*
|
|
71
|
+
* Only `operations` is ever projected. The envelope is spread through on both
|
|
72
|
+
* paths, so `triggerTypes` / `stepTypes` / `scheduleRuleKinds` — and anything
|
|
73
|
+
* the backend adds next to them — survive unread and unnamed here.
|
|
74
|
+
*/
|
|
75
|
+
export declare function projectCatalog(response: unknown, types?: string[]): unknown;
|
|
76
|
+
export declare function registerAuthoringSpecTools(server: McpServer, client: AxonityClient): void;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The building blocks of this deploy, read from the server instead of restated
|
|
3
|
+
* here.
|
|
4
|
+
*
|
|
5
|
+
* `apply_workflow_mutations` used to name all 22 command types in its own
|
|
6
|
+
* description. That list was correct only by maintenance, and it had already
|
|
7
|
+
* been wrong in the dangerous direction once: it advertised three operations
|
|
8
|
+
* the API rejected with a 422 (#32, axonity-flow#802). A conformance test then
|
|
9
|
+
* pinned the prose to the schema — the right fix for a list you keep, and still
|
|
10
|
+
* a list you keep.
|
|
11
|
+
*
|
|
12
|
+
* `GET /workflows/operations` (axonity-flow#802 B4) removes the list instead of
|
|
13
|
+
* guarding it. It is generated from the engine's mutation registry — the same
|
|
14
|
+
* source the mutations route validates against — so a command this tool reports
|
|
15
|
+
* is a command the API accepts, by construction rather than by agreement. A new
|
|
16
|
+
* server operation becomes discoverable with no change in this repository,
|
|
17
|
+
* which is the acceptance criterion #8 was filed for.
|
|
18
|
+
*
|
|
19
|
+
* axonity-flow#961 S1 extends that property to three more lists that had no
|
|
20
|
+
* route at all, and it is the same story each time: `conventions.ts` named nine
|
|
21
|
+
* step types where seven validate — `loop` and `for_each` both answer
|
|
22
|
+
* `step_invalid_type` — because a list nobody could read is a list that drifts.
|
|
23
|
+
* So the response now carries four generated lists, and this connector names
|
|
24
|
+
* none of them:
|
|
25
|
+
* - `operations` — the mutation commands, as before.
|
|
26
|
+
* - `triggerTypes` — every value a trigger's `typeId` may hold.
|
|
27
|
+
* - `stepTypes` — every value a step's `type` may hold, INCLUDING the
|
|
28
|
+
* ones an author may not write, each with the reason and what to write
|
|
29
|
+
* instead. Omitting those would read as "does not exist".
|
|
30
|
+
* - `scheduleRuleKinds` — the shapes a schedule rule takes, each with a
|
|
31
|
+
* working example the backend round-trips through its own parser on every
|
|
32
|
+
* read, so a published example cannot rot.
|
|
33
|
+
*
|
|
34
|
+
* axonity-flow#964 adds three more, and they are the ones that bite quietly.
|
|
35
|
+
* A value's type is not carried by the same KEY everywhere, and the three
|
|
36
|
+
* vocabularies behind those keys are not interchangeable:
|
|
37
|
+
* - `parameterTypes` — a trigger parameter's / workflow constant's `type`.
|
|
38
|
+
* Knows `boolean` and `constant`.
|
|
39
|
+
* - `outputKinds` — a step output's / input's `kind`. Narrower, and a
|
|
40
|
+
* DIFFERENT KEY. Spells the same idea `yes-no`, not `boolean`.
|
|
41
|
+
* - `schemaFieldKinds` — the canonical builder's vocabulary, inside a field's
|
|
42
|
+
* `schema`. Widest and newest; where a `schema` is present it wins.
|
|
43
|
+
* Writing `kind` on a trigger parameter is not a 422 — it is a key nothing
|
|
44
|
+
* reads, so the value falls back to text and the run binds the wrong shape.
|
|
45
|
+
* That is the failure this connector shipped once (axonity-mcp#47) by reading
|
|
46
|
+
* the field off the model that DECLARES it rather than the code that READS it.
|
|
47
|
+
*
|
|
48
|
+
* `rulesVersion` is a content hash over all four: same hash, nothing to
|
|
49
|
+
* re-fetch. It is what makes "read the spec at the start of each authoring
|
|
50
|
+
* task" cheap enough to actually do.
|
|
51
|
+
*
|
|
52
|
+
* **Cost.** The full catalog is ~20 KB — the payload schemas are the bulk of it,
|
|
53
|
+
* and `add_step` alone is 3 KB. Handing that to an agent that wanted to know
|
|
54
|
+
* which commands exist is the mistake #33 was filed about: a default that is
|
|
55
|
+
* correct but unaffordable produces the shortcut, not the careful read. So the
|
|
56
|
+
* payload SCHEMAS are what the index drops, per command, on request. The three
|
|
57
|
+
* vocabulary lists are small and are the answer to "what may I write at all",
|
|
58
|
+
* so they always ride along — trimming them would recreate the gap this closed.
|
|
59
|
+
*/
|
|
60
|
+
import { z } from "zod";
|
|
61
|
+
import { guard, jsonResult } from "./result.js";
|
|
62
|
+
/**
|
|
63
|
+
* Project the catalog to what was asked for, keeping the envelope.
|
|
64
|
+
*
|
|
65
|
+
* Exported for testing. `types` is matched against the server's own `type`
|
|
66
|
+
* values with NO local list to check them against — an unknown name comes back
|
|
67
|
+
* in `unknownTypes` rather than being rejected here, because the connector is
|
|
68
|
+
* not the authority on what exists. That is the whole point of reading the
|
|
69
|
+
* catalogue.
|
|
70
|
+
*
|
|
71
|
+
* Only `operations` is ever projected. The envelope is spread through on both
|
|
72
|
+
* paths, so `triggerTypes` / `stepTypes` / `scheduleRuleKinds` — and anything
|
|
73
|
+
* the backend adds next to them — survive unread and unnamed here.
|
|
74
|
+
*/
|
|
75
|
+
export function projectCatalog(response, types) {
|
|
76
|
+
if (typeof response !== "object" || response === null || Array.isArray(response)) {
|
|
77
|
+
return response;
|
|
78
|
+
}
|
|
79
|
+
const source = response;
|
|
80
|
+
if (!Array.isArray(source.operations))
|
|
81
|
+
return response;
|
|
82
|
+
const rows = source.operations;
|
|
83
|
+
const wanted = types && types.length > 0 ? new Set(types) : undefined;
|
|
84
|
+
if (wanted) {
|
|
85
|
+
const present = new Set(rows.map((row) => (typeof row.type === "string" ? row.type : "")));
|
|
86
|
+
const unknownTypes = [...wanted].filter((t) => !present.has(t));
|
|
87
|
+
return {
|
|
88
|
+
...source,
|
|
89
|
+
operations: rows.filter((row) => typeof row.type === "string" && wanted.has(row.type)),
|
|
90
|
+
...(unknownTypes.length > 0
|
|
91
|
+
? {
|
|
92
|
+
unknownTypes,
|
|
93
|
+
// Not an error: this deploy's catalogue is the authority, and a
|
|
94
|
+
// name it does not carry is simply not a command here.
|
|
95
|
+
unknownTypesNote: "This backend's catalogue has no such operation. Call again " +
|
|
96
|
+
"without `types` to see what it does have.",
|
|
97
|
+
}
|
|
98
|
+
: {}),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
...source,
|
|
103
|
+
operations: rows.map((row) => ({ type: row.type, description: row.description })),
|
|
104
|
+
// Say what was dropped and how to get it — the omission a reader cannot see
|
|
105
|
+
// is the same trap as the cost it avoids. Note this names `operations`
|
|
106
|
+
// only: the vocabulary lists beside it are returned in full.
|
|
107
|
+
schemasOmitted: "`operations` is an index (type + description) — its payload schemas are " +
|
|
108
|
+
'omitted. Pass `types: ["add_step", …]` for the live payload schema of ' +
|
|
109
|
+
"the commands you are about to write; the full catalogue is ~20 KB and " +
|
|
110
|
+
"is rarely what you need. Everything else in this response is complete.",
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export function registerAuthoringSpecTools(server, client) {
|
|
114
|
+
server.tool("get_workflow_authoring_spec", "Everything THIS Axonity deploy can be built from, read live from the " +
|
|
115
|
+
"server — not a list this connector keeps. Read it at the start of an " +
|
|
116
|
+
"authoring task, before `apply_workflow_mutations`. Seven lists come back:" +
|
|
117
|
+
"\n- `operations` — the mutation commands, with their payload schemas." +
|
|
118
|
+
"\n- `triggerTypes` — every value a trigger's `typeId` may hold. " +
|
|
119
|
+
"`category: true` marks a broad category id rather than a concrete type; " +
|
|
120
|
+
"both validate, but reach for the concrete one." +
|
|
121
|
+
"\n- `stepTypes` — every value a step's `type` may hold. Types you may " +
|
|
122
|
+
"NOT author are listed too, with `authorable: false` and a `reason` " +
|
|
123
|
+
"saying how to express that intention instead — so reaching for one gets " +
|
|
124
|
+
"you an answer rather than a `step_invalid_type`." +
|
|
125
|
+
"\n- `scheduleRuleKinds` — the shapes a schedule rule takes, each with a " +
|
|
126
|
+
"working `example` to copy and the sentence it `describes`. Every example " +
|
|
127
|
+
"is round-tripped through the platform's own parser as it is served, so " +
|
|
128
|
+
"it is one this deploy demonstrably accepts." +
|
|
129
|
+
"\n\nAND THREE VOCABULARIES FOR A VALUE'S TYPE, which are NOT " +
|
|
130
|
+
"interchangeable and are not even read from the same key. Check which one " +
|
|
131
|
+
"applies before you write it:" +
|
|
132
|
+
"\n- `parameterTypes` — what a TRIGGER PARAMETER or a WORKFLOW CONSTANT " +
|
|
133
|
+
"may hold, in its `type` field. This is the key the platform reads on " +
|
|
134
|
+
"those two shapes; `kind` is not. It is also the only one of the three " +
|
|
135
|
+
"that knows `constant`." +
|
|
136
|
+
"\n- `outputKinds` — what a step OUTPUT or INPUT may hold, in its `kind` " +
|
|
137
|
+
"field. Narrower, a different key, and it spells the yes/no idea " +
|
|
138
|
+
"differently from `parameterTypes`." +
|
|
139
|
+
"\n- `schemaFieldKinds` — the canonical builder's vocabulary, used inside " +
|
|
140
|
+
"a field's `schema`. Widest and newest; where a `schema` object is " +
|
|
141
|
+
"present it WINS over the `type` or `kind` beside it." +
|
|
142
|
+
"\n\nGetting this wrong is silent. A `kind` written on a trigger " +
|
|
143
|
+
"parameter is not a 422 — it is a key nothing reads, so the value falls " +
|
|
144
|
+
"back to text and everything downstream binds the wrong shape. Read the " +
|
|
145
|
+
"list that matches the shape you are writing." +
|
|
146
|
+
"\n\nBy default `operations` is an INDEX: each command's `type` and " +
|
|
147
|
+
"one-line `description`. Pass `types` to get the live `payloadSchema` for " +
|
|
148
|
+
"the commands you are about to write — the full catalogue with every " +
|
|
149
|
+
"schema is ~20 KB, which is rarely what you need. The other six lists " +
|
|
150
|
+
"are always returned complete. " +
|
|
151
|
+
"\n\n`rulesVersion` is a content hash over all of them: while it is " +
|
|
152
|
+
"unchanged there is nothing to re-fetch. Re-read the spec when it changes, " +
|
|
153
|
+
"or when a mutation fails with a 422 that suggests your idea of a command " +
|
|
154
|
+
"is out of date. " +
|
|
155
|
+
"\n\nAnything missing here is something this backend will reject. Each " +
|
|
156
|
+
"list is generated from the same registry that ENFORCES it — the handler " +
|
|
157
|
+
"table, the trigger-type constants, the validator's own step-type set, " +
|
|
158
|
+
"the schedule-rule specs — so the answer and the enforcement cannot " +
|
|
159
|
+
"disagree. That is why neither this connector's guide nor its tool " +
|
|
160
|
+
"descriptions name any of these values.", {
|
|
161
|
+
types: z
|
|
162
|
+
.array(z.string())
|
|
163
|
+
.optional()
|
|
164
|
+
.describe('Command types to return in full, e.g. ["add_step", "add_edge"]. ' +
|
|
165
|
+
"Omit for the index. A name this deploy does not have comes back " +
|
|
166
|
+
"under `unknownTypes` rather than as an error."),
|
|
167
|
+
}, async ({ types }) => guard(async () => jsonResult(projectCatalog(await client.get("/api/v1/workflows/operations"), types))));
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=authoringSpec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoringSpec.js","sourceRoot":"","sources":["../../src/tools/authoringSpec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAahD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cA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E,KAAK,EAAE,CAAC;aACL,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;aACjB,QAAQ,EAAE;aACV,QAAQ,CACP,kEAAkE;YAChE,kEAAkE;YAClE,+CAA+C,CAClD;KACJ,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAClB,KAAK,CAAC,KAAK,IAAI,EAAE,CACf,UAAU,CACR,cAAc,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,8BAA8B,CAAC,EAAE,KAAK,CAAC,CACxE,CACF,CACJ,CAAC;AACJ,CAAC"}
|
package/dist/tools/company.d.ts
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
* streams, org structure). Unlike the other authored entities it is a
|
|
4
4
|
* SINGLETON: one per tenant, addressed at `/api/v1/company` with no id, so it
|
|
5
5
|
* has no list / create / delete / restore / discard routes. It is
|
|
6
|
-
* version-controlled like the memory entities, and
|
|
7
|
-
* (
|
|
6
|
+
* version-controlled like the memory entities, and editable two ways: command
|
|
7
|
+
* mutations (`apply_company_mutation`, preferred — the backend validates each
|
|
8
|
+
* and threads the version) or a whole-document PUT (`update_company`). Workflow
|
|
9
|
+
* has had both for a long time; company was whole-document-only here even
|
|
10
|
+
* though `POST /api/v1/company/mutations` existed.
|
|
8
11
|
*
|
|
9
12
|
* Publishing: company is currently NOT a publish-approval entity type on the
|
|
10
13
|
* backend, so there is no request_publish_company — a company change is
|