@axonity-ai/mcp 0.10.0 → 0.11.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/dist/index.js CHANGED
@@ -28,6 +28,7 @@ import { assertPlaceholderCredentials } from "./tools/credentials.js";
28
28
  import { registerAttachTools, registerCatalogTools, registerConnectorTools, registerDependencyTools, registerPersonaTools, } from "./tools/extras.js";
29
29
  import { registerAuthoringSpecTools } from "./tools/authoringSpec.js";
30
30
  import { registerCompanyTools } from "./tools/company.js";
31
+ import { registerComponentTools } from "./tools/components.js";
31
32
  import { registerOperationsTools } from "./tools/operations.js";
32
33
  import { registerPromptPlacementTools } from "./tools/promptPlacement.js";
33
34
  import { LIST_FILTERS } from "./generated/listFilters.js";
@@ -216,6 +217,7 @@ export function registerAll(server, client) {
216
217
  registerToolboxTools(server, client);
217
218
  registerOperationsTools(server, client);
218
219
  registerDataTableTools(server, client);
220
+ registerComponentTools(server, client);
219
221
  }
220
222
  export function buildServer(client) {
221
223
  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,sBAAsB,EAAE,MA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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"}
@@ -2,17 +2,26 @@
2
2
  * The company entity — a tenant's single company document (mission, value
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
- * has no list / create / delete / restore / discard routes. It is
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.
5
+ * has no list / create / delete routes. It is version-controlled like the
6
+ * memory entities, and editable two ways: command mutations
7
+ * (`apply_company_mutation`, preferred — the backend validates each and threads
8
+ * the version) or a whole-document PUT (`update_company`). Workflow has had
9
+ * both for a long time; company was whole-document-only here even though
10
+ * `POST /api/v1/company/mutations` existed.
11
11
  *
12
- * Publishing: company is currently NOT a publish-approval entity type on the
13
- * backend, so there is no request_publish_company — a company change is
14
- * published directly by a human/admin in Axonity. (Tracked in axonity-flow: the
15
- * decision on whether company joins the approval queue.)
12
+ * Publishing goes through the approval queue like everything else
13
+ * (`request_publish_company`, no id — the server resolves the singleton). The
14
+ * comment here used to say the opposite: that company was NOT a publish-approval
15
+ * entity type and that a human published it directly. The backend's approval
16
+ * enum names `company`, and the tool below has always posted it, so the prose
17
+ * was describing a state of the world that had moved on. Corrected rather than
18
+ * left, because a wrong comment about the publish gate is the wrong comment to
19
+ * have.
20
+ *
21
+ * `discard_company_draft` is newer. Company was the twelfth versioned entity
22
+ * and the last one without a discard route — axonity-flow#1388 added it because
23
+ * the Company page's own Discard button had nothing to call — so until now a
24
+ * company draft was the one draft in the tenant you could not walk back.
16
25
  */
17
26
  import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
18
27
  import type { AxonityClient } from "../client.js";
@@ -2,17 +2,26 @@
2
2
  * The company entity — a tenant's single company document (mission, value
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
- * has no list / create / delete / restore / discard routes. It is
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.
5
+ * has no list / create / delete routes. It is version-controlled like the
6
+ * memory entities, and editable two ways: command mutations
7
+ * (`apply_company_mutation`, preferred — the backend validates each and threads
8
+ * the version) or a whole-document PUT (`update_company`). Workflow has had
9
+ * both for a long time; company was whole-document-only here even though
10
+ * `POST /api/v1/company/mutations` existed.
11
11
  *
12
- * Publishing: company is currently NOT a publish-approval entity type on the
13
- * backend, so there is no request_publish_company — a company change is
14
- * published directly by a human/admin in Axonity. (Tracked in axonity-flow: the
15
- * decision on whether company joins the approval queue.)
12
+ * Publishing goes through the approval queue like everything else
13
+ * (`request_publish_company`, no id — the server resolves the singleton). The
14
+ * comment here used to say the opposite: that company was NOT a publish-approval
15
+ * entity type and that a human published it directly. The backend's approval
16
+ * enum names `company`, and the tool below has always posted it, so the prose
17
+ * was describing a state of the world that had moved on. Corrected rather than
18
+ * left, because a wrong comment about the publish gate is the wrong comment to
19
+ * have.
20
+ *
21
+ * `discard_company_draft` is newer. Company was the twelfth versioned entity
22
+ * and the last one without a discard route — axonity-flow#1388 added it because
23
+ * the Company page's own Discard button had nothing to call — so until now a
24
+ * company draft was the one draft in the tenant you could not walk back.
16
25
  */
17
26
  import { z } from "zod";
18
27
  import { guard, jsonResult } from "./result.js";
@@ -20,6 +29,15 @@ export function registerCompanyTools(server, client) {
20
29
  server.tool("read_company", "Read this tenant's company document (its current draft and version). There " +
21
30
  "is one company per tenant — no id. Read it before you update, to get the " +
22
31
  "version for optimistic locking.", {}, async () => guard(async () => jsonResult(await client.get("/api/v1/company"))));
32
+ server.tool("discard_company_draft", "Throw away the company DRAFT and reset it to what is published — the " +
33
+ "recovery action when a run of edits went wrong and you want the live " +
34
+ "document back. What is live is not touched; only the draft is. " +
35
+ "\n\nTakes no expectedVersion, on purpose: a discard acts on whatever " +
36
+ "the draft currently holds, so a stale version number must not be able " +
37
+ "to block a recovery. " +
38
+ "\n\nREFUSED (422) WHEN THE COMPANY HAS NEVER BEEN PUBLISHED. There is " +
39
+ "then nothing to reset to and the draft is the only copy of that work — " +
40
+ "the refusal says so. Read the message rather than retrying.", {}, async () => guard(async () => jsonResult(await client.post("/api/v1/company/discard-draft"))));
23
41
  server.tool("create_company_from_template", "Create this tenant's company document from a template — how a tenant that " +
24
42
  "has none gets one. Pick the template with list_templates({ kind: " +
25
43
  "\"all\" }) and read it with read_template first: the template decides the " +
@@ -47,8 +65,9 @@ export function registerCompanyTools(server, client) {
47
65
  "to the draft read_company returns. Diff the two to see what a publish would change.", {}, async () => guard(async () => jsonResult(await client.get("/api/v1/company/published"))));
48
66
  server.tool("update_company", "Save the company draft as a WHOLE document (full-document PUT, not a field " +
49
67
  "merge). Read it first for its version; on a 409 conflict re-read and retry. " +
50
- "This writes the draft only — a human publishes it in Axonity (company is " +
51
- "not part of the request_publish_* approval flow).", {
68
+ "This writes the draft only — propose it with request_publish_company and " +
69
+ "a human approves. To walk the draft back to what is live, " +
70
+ "discard_company_draft.", {
52
71
  expectedVersion: z
53
72
  .number()
54
73
  .int()
@@ -1 +1 @@
1
- {"version":3,"file":"company.js","sourceRoot":"","sources":["../../src/tools/company.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,UAAU,oBAAoB,CAClC,MAAiB,EACjB,MAAqB;IAErB,MAAM,CAAC,IAAI,CACT,cAAc,EACd,6EAA6E;QAC3E,2EAA2E;QAC3E,iCAAiC,EACnC,EAAE,EACF,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAC/E,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,8BAA8B,EAC9B,4EAA4E;QAC1E,mEAAmE;QACnE,4EAA4E;QAC5E,wEAAwE;QACxE,4BAA4B;QAC5B,qEAAqE;QACrE,uEAAuE;QACvE,qDAAqD;QACrD,uEAAuE;QACvE,8BAA8B,EAChC;QACE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QAC1E,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**
2
+ * What a workflow is MADE OF, and how to make one part of it its own
3
+ * (axonity-flow#1369 / #1371).
4
+ *
5
+ * The connector could already answer the reverse question. `list_workflows_using`
6
+ * says which workflows reference an entity — read it before you change something
7
+ * shared. Nothing answered the forward one: given this workflow, what does it
8
+ * depend on? The guide's own "Reproducing a setup" section tells an agent to
9
+ * work it out by hand — read the steps, follow each to its agent, follow that to
10
+ * its tools, follow those to the tables behind them, and remember the lot. That
11
+ * is a walk with no natural end and one an agent gets partly wrong.
12
+ *
13
+ * It is not the same question with the arrow reversed, either. The reverse
14
+ * reader looks at workflow DOCUMENTS. This one composes two hops: which entities
15
+ * the document names, and then what each agent actually receives and each tool
16
+ * actually reaches — because "what is attached" and "what the agent gets" have
17
+ * different answers, and only the second one explains a run.
18
+ *
19
+ * Every row carries WHY it is there. An entity reached twice is one dependency
20
+ * with two reasons, and "in these two steps" is something an author can act on
21
+ * where a bare "used" is not.
22
+ *
23
+ * `duplicate_workflow_component` is the other half, and it exists because
24
+ * sharing is the default: an agent used by three processes is ONE agent, so
25
+ * editing it from inside one of them changes the two nobody opened. The copy
26
+ * belongs to this workflow, the original is not touched, and every other
27
+ * workflow stays on the original.
28
+ *
29
+ * That is not the "recreate, never copy ids" rule breaking. That rule is about
30
+ * carrying an id ACROSS TENANTS, where it points at nothing or at the wrong
31
+ * thing. This is one tenant, and the backend rewrites the references itself.
32
+ */
33
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
34
+ import type { AxonityClient } from "../client.js";
35
+ export declare function registerComponentTools(server: McpServer, client: AxonityClient): void;
@@ -0,0 +1,89 @@
1
+ /**
2
+ * What a workflow is MADE OF, and how to make one part of it its own
3
+ * (axonity-flow#1369 / #1371).
4
+ *
5
+ * The connector could already answer the reverse question. `list_workflows_using`
6
+ * says which workflows reference an entity — read it before you change something
7
+ * shared. Nothing answered the forward one: given this workflow, what does it
8
+ * depend on? The guide's own "Reproducing a setup" section tells an agent to
9
+ * work it out by hand — read the steps, follow each to its agent, follow that to
10
+ * its tools, follow those to the tables behind them, and remember the lot. That
11
+ * is a walk with no natural end and one an agent gets partly wrong.
12
+ *
13
+ * It is not the same question with the arrow reversed, either. The reverse
14
+ * reader looks at workflow DOCUMENTS. This one composes two hops: which entities
15
+ * the document names, and then what each agent actually receives and each tool
16
+ * actually reaches — because "what is attached" and "what the agent gets" have
17
+ * different answers, and only the second one explains a run.
18
+ *
19
+ * Every row carries WHY it is there. An entity reached twice is one dependency
20
+ * with two reasons, and "in these two steps" is something an author can act on
21
+ * where a bare "used" is not.
22
+ *
23
+ * `duplicate_workflow_component` is the other half, and it exists because
24
+ * sharing is the default: an agent used by three processes is ONE agent, so
25
+ * editing it from inside one of them changes the two nobody opened. The copy
26
+ * belongs to this workflow, the original is not touched, and every other
27
+ * workflow stays on the original.
28
+ *
29
+ * That is not the "recreate, never copy ids" rule breaking. That rule is about
30
+ * carrying an id ACROSS TENANTS, where it points at nothing or at the wrong
31
+ * thing. This is one tenant, and the backend rewrites the references itself.
32
+ */
33
+ import { z } from "zod";
34
+ import { guard, jsonResult } from "./result.js";
35
+ export function registerComponentTools(server, client) {
36
+ server.tool("list_workflow_components", "Everything this workflow is made of, in ONE call: the agents and flows " +
37
+ "that run its steps, the workflows it calls, the tools those agents " +
38
+ "reach, the tables behind those tools, and the knowledge attached to " +
39
+ "them. Read-only. " +
40
+ "\n\nUSE THIS BEFORE REPRODUCING OR AUDITING A SETUP. The alternative is " +
41
+ "walking the document step by step and following each entity outward by " +
42
+ "hand, which is where a recreated workflow quietly loses a tool nobody " +
43
+ "noticed was attached. " +
44
+ "\n\nEach row carries `section` (agents / called / tools / tables / " +
45
+ "knowledge), `kind`, `entityId`, `name`, and `sources` — the steps that " +
46
+ "are the REASON it is here. One entity reached twice is one row with two " +
47
+ "sources, not two rows. " +
48
+ "\n\nREAD `publicationState`: it says whether the RUNTIME can see this " +
49
+ "component at all. `live` is published and unchanged; `edited` is " +
50
+ "published with newer changes the runtime has NOT got; `not_published` " +
51
+ "has never gone live and reaches nobody; `missing` was deleted out from " +
52
+ "under the workflow while still referenced; `not_versioned` is a kind " +
53
+ "with no publish lifecycle. A workflow whose components are `edited` or " +
54
+ "`not_published` runs on something other than what you just read. " +
55
+ "\n\n`reach` counts the workflows in the tenant that name this component " +
56
+ "directly, INCLUDING this one — so 1 means it is yours alone and 3 means " +
57
+ "changing it changes two other processes. That is the number to look at " +
58
+ "before you edit something, and duplicate_workflow_component is the way " +
59
+ "out when it is higher than you want. " +
60
+ "\n\nAn unknown workflow id is a 404, not an empty list: a workflow that " +
61
+ "names nothing and a workflow that does not exist are different answers.", { workflowId: z.string().describe("The workflow's id.") }, async ({ workflowId }) => guard(async () => jsonResult(await client.get(`/api/v1/workflows/${workflowId}/components`))));
62
+ server.tool("duplicate_workflow_component", "Copy a SHARED component and point THIS workflow at the copy — the way to " +
63
+ "make one process's agent its own without disturbing the processes that " +
64
+ "share it. The original is not modified and every other workflow stays " +
65
+ "on it. " +
66
+ "\n\nWHY YOU WOULD: list_workflow_components gives each row a `reach`. " +
67
+ "When that is greater than 1, editing the component edits processes you " +
68
+ "did not open. Duplicating first turns an edit that reaches three " +
69
+ "processes into one that reaches this one. " +
70
+ "\n\nTHE ANSWER IS THE WHOLE DOCUMENT, NOT A PATCH: { newEntityId, name, " +
71
+ "version, document }. The repoint rewrites EVERY site the component was " +
72
+ "named in, so a caller that applied only part of the answer would keep a " +
73
+ "stale reference on the sites it did not hear about. Take the document " +
74
+ "and the version as your new baseline. " +
75
+ "\n\nAGENTS ONLY today — `kind` accepts nothing else, and the backend " +
76
+ "refuses anything else rather than half-doing it.", {
77
+ workflowId: z.string().describe("The workflow that should get its own copy."),
78
+ kind: z
79
+ .literal("agent")
80
+ .describe("What is being duplicated. Only `agent` is supported; the route " +
81
+ "declares it as a constant, not as an open vocabulary."),
82
+ entityId: z
83
+ .string()
84
+ .min(1)
85
+ .max(200)
86
+ .describe("The shared component's id, from list_workflow_components."),
87
+ }, async ({ workflowId, kind, entityId }) => guard(async () => jsonResult(await client.post(`/api/v1/workflows/${workflowId}/components/duplicate`, { kind, entityId }))));
88
+ }
89
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/tools/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,sBAAsB,CACpC,MAAiB,EACjB,MAAqB;IAErB,MAAM,CAAC,IAAI,CACT,0BAA0B,EAC1B,yEAAyE;QACvE,qEAAqE;QACrE,sEAAsE;QACtE,mBAAmB;QACnB,0EAA0E;QAC1E,yEAAyE;QACzE,wEAAwE;QACxE,wBAAwB;QACxB,qEAAqE;QACrE,yEAAyE;QACzE,0EAA0E;QAC1E,yBAAyB;QACzB,wEAAwE;QACxE,mEAAmE;QACnE,wEAAwE;QACxE,yEAAyE;QACzE,uEAAuE;QACvE,yEAAyE;QACzE,mEAAmE;QACnE,0EAA0E;QAC1E,0EAA0E;QAC1E,yEAAyE;QACzE,yEAAyE;QACzE,uCAAuC;QACvC,0EAA0E;QAC1E,yEAAyE,EAC3E,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,EACzD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CACvB,KAAK,CAAC,KAAK,IAAI,EAAE,CACf,UAAU,CACR,MAAM,MAAM,CAAC,GAAG,CAAC,qBAAqB,UAAU,aAAa,CAAC,CAC/D,CACF,CACJ,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,8BAA8B,EAC9B,2EAA2E;QACzE,yEAAyE;QACzE,wEAAwE;QACxE,SAAS;QACT,wEAAwE;QACxE,yEAAyE;QACzE,mEAAmE;QACnE,4CAA4C;QAC5C,0EAA0E;QAC1E,yEAAyE;QACzE,0EAA0E;QAC1E,wEAAwE;QACxE,wCAAwC;QACxC,uEAAuE;QACvE,kDAAkD,EACpD;QACE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;QAC7E,IAAI,EAAE,CAAC;aACJ,OAAO,CAAC,OAAO,CAAC;aAChB,QAAQ,CACP,iEAAiE;YAC/D,uDAAuD,CAC1D;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,CAAC,2DAA2D,CAAC;KACzE,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CACvC,KAAK,CAAC,KAAK,IAAI,EAAE,CACf,UAAU,CACR,MAAM,MAAM,CAAC,IAAI,CACf,qBAAqB,UAAU,uBAAuB,EACtD,EAAE,IAAI,EAAE,QAAQ,EAAE,CACnB,CACF,CACF,CACJ,CAAC;AACJ,CAAC"}
@@ -142,9 +142,11 @@ has run cleanly once, at its current version.
142
142
  - All fields are camelCase JSON (e.g. \`capabilityTier\`, not \`capability_tier\`).
143
143
  ONE documented exception: validator specs (\`permissions.outputValidators\`,
144
144
  \`permissions.exposedValidatorTools\`) use snake_case keys (\`function\`,
145
- \`target\`, \`args\`, \`error_message\`, \`tool_name\`, \`validator_name\`) — they are
146
- the same shape at every level and are stored verbatim, so they are NOT
147
- camel-aliased. Send them in snake_case.
145
+ \`target\`, \`args\`, \`when_present\`, \`inputs\`, \`error_message\`,
146
+ \`tool_name\`, \`validator_name\`) — they are the same shape at every level and
147
+ are stored verbatim, so they are NOT camel-aliased. Send them in snake_case.
148
+ What those keys MEAN, and how a validator is bound to what it judges, is the
149
+ Validators section.
148
150
  - \`update_*\` is a partial change for agents/tools and a partial patch for
149
151
  workflows: send only the fields you are changing (plus \`expectedVersion\`).
150
152
  - The backend validates fields; a 422 error names the offending field and why
@@ -251,10 +253,15 @@ made any time before you attach them.
251
253
  or ""); a human fills the secret in Axonity. Test with
252
254
  \`execute_stored_connector\` (uses the real, server-side-decrypted secret;
253
255
  you see only the result).
254
- - **validator / evaluator** — a constrained kind that wraps a builtin;
255
- \`implementation\` names the builtin registry key plus its args. Look at the
256
- tenant's existing validator/evaluator tools (\`list_tools\`) for the keys in
257
- use rather than inventing one.
256
+ - **validator / evaluator** — a constrained kind, and \`implementation\` takes
257
+ ONE OF TWO shapes. Either \`{"builtin": "validators.<name>"}\`, naming a
258
+ house predicate — look at the tenant's existing validator/evaluator tools
259
+ (\`list_tools\`) for the keys in use rather than inventing one. Or authored
260
+ Python, like a function tool, whose \`run\` returns a VERDICT: \`True\` /
261
+ \`False\` / a fail-detail object. A \`run\` that returns a string, a number
262
+ or nothing at all declares no verdict and is REFUSED on save, so that a
263
+ misconfigured gate cannot silently pass everything at run time. Authored
264
+ code takes the standard call — see Validators.
258
265
  - Complete check: the tool has the I/O schemas its callers need AND a non-empty
259
266
  implementation of the right shape for its type.
260
267
  - \`toolboxId\` files the tool in a toolbox on creation. Read \`list_toolboxes\`
@@ -270,8 +277,9 @@ made any time before you attach them.
270
277
  shape), \`canOwnProcess\` (bool; must be true for an agent to own a
271
278
  workflow step's flow), \`episodicMemoryEnabled\` (bool).
272
279
  - \`permissions\` (object): \`planning\`, \`delegation\`, \`verboseOutput\` (bools);
273
- \`outputValidators\` / \`exposedValidatorTools\` (snake_case specs, see Field
274
- shape); \`expectedOutputSchemaId\` (an output_schema id — MANDATORY whenever you
280
+ \`outputValidators\` / \`exposedValidatorTools\` (snake_case specs — see Field
281
+ shape for the casing, Validators for what they say);
282
+ \`expectedOutputSchemaId\` (an output_schema id — MANDATORY whenever you
275
283
  attach validators here).
276
284
  - Wiring fields — see the Wiring section: \`toolIds\`, \`systemToolIds\`,
277
285
  \`delegationTargetIds\`.
@@ -310,6 +318,10 @@ made any time before you attach them.
310
318
  - A reusable output contract, versioned and publishable. Referenced BY id from a
311
319
  tool's validators or an agent's \`permissions.expectedOutputSchemaId\` — so
312
320
  create it first, then point things at the id the create call returns.
321
+ - \`schemaBody\` is a JSON Schema document (\`type\`, \`properties\`,
322
+ \`required\`) PLUS one key that is not JSON Schema: \`validators\`, the gates
323
+ run against a submitted output. This is the place a validator can be STEERED
324
+ at part of the output — see Validators.
313
325
 
314
326
  ### skill / policy / reference_doc
315
327
  - Memory entities attached to agents (and skills also to workflows). Create them,
@@ -341,6 +353,89 @@ made any time before you attach them.
341
353
  company). Direct company publish is closed to machine tokens, so the approval
342
354
  queue is the only path.
343
355
 
356
+ ## Validators — one shape, one call
357
+ A validator is a GATE on a submitted output: it runs after an agent produces a
358
+ result and can refuse it. Specs are written in two places and carry the same
359
+ key names in both — \`permissions.outputValidators\` on an agent, and
360
+ \`validators\` inside an output_schema's \`schemaBody\`. The backend's OpenAPI
361
+ description of \`schemaBody\` is the source for the full contract; what follows
362
+ is the part you cannot author without.
363
+
364
+ - A spec names its check in ONE of two ways, and each brings its own binding:
365
+ - \`function\` — a shipped predicate (e.g. \`validators.min_length\`), bound
366
+ by \`target\` (the field it judges; omit it to judge the whole output) and
367
+ \`args\`.
368
+ - \`tool\` — a validator TOOL in this tenant's library, by name or id.
369
+ Exactly one of the two. Naming both leaves it unsaid which one runs, naming
370
+ neither leaves nothing to run, and a gate does not get to be ambiguous — both
371
+ are refused. The binding keys do not mix either: \`target\`/\`args\` belong to
372
+ the \`function\` form and are refused on a \`tool\` spec, because a key the
373
+ runtime ignores is worse stored than rejected.
374
+ - \`error_message\` is what the agent is told on refusal, and the one key both
375
+ forms share. \`{value}\` in it is replaced by what the validator reported.
376
+ - \`when_present\` runs the check only when the target field is actually in the
377
+ payload. Off by default, deliberately: a blanket skip turns a mistyped
378
+ \`target\` into a gate that passes everything. Set it where a field is
379
+ genuinely optional.
380
+
381
+ ### The standard call
382
+ EVERY authored validator is invoked the same way. The signature does not vary
383
+ per tool, and that is the whole point: a screen cannot offer inputs it does not
384
+ know, and a spec served to an agent cannot describe a shape that differs per
385
+ tool. Bespoke parameters push the contract into prose that goes stale.
386
+
387
+ \`\`\`
388
+ run(data, slots, binding)
389
+ \`\`\`
390
+
391
+ - \`data\` — what the validator is pointed at, UNTOUCHED. The whole submitted
392
+ output, or the field named by \`field\`.
393
+ - \`slots\` — every declared session-memory reference found in \`data\`, with its
394
+ text, indexed by the reference itself. The platform resolves them because code
395
+ in the sandbox is never handed a lookup callable — a validator may be foreign
396
+ code.
397
+ - \`binding\` — what you declared, verbatim, so the validator knows which values
398
+ in \`data\` are references to look up rather than text to read. Without it it
399
+ would have to guess, and guessing is how a check reads a key as though it were
400
+ the body.
401
+
402
+ Two keys on the spec steer that call: \`field\` names the part of the output to
403
+ hand over (leave it out for the whole output), and \`slots\` lists the fields
404
+ that hold references.
405
+
406
+ \`\`\`json
407
+ { "tool": "my.freshness.check",
408
+ "field": "units",
409
+ "slots": ["key", "source_key"],
410
+ "error_message": "REJECTED: {value}" }
411
+ \`\`\`
412
+
413
+ BOTH ARE CHECKED WHEN YOU SAVE the output schema, and a refusal names the
414
+ fields that do exist: a \`field\` that is not a property, or a \`slots\` name the
415
+ rows do not carry. That check is there because either mistake fails SILENTLY at
416
+ run time — a name that is not there is never looked up, so the gate runs on
417
+ unresolved values and nothing says so. (Rows whose schema declares no shape are
418
+ left alone: there is nothing to check against, and guessing would refuse correct
419
+ configurations.)
420
+
421
+ WHERE \`field\` AND \`slots\` ARE ACCEPTED: inside an output_schema's
422
+ \`schemaBody\`, which is stored verbatim. An agent's
423
+ \`permissions.outputValidators\` is a STRICT body — an undeclared key is a 422 —
424
+ so a spec written THERE takes neither, and its validator gets the whole output
425
+ and no slots. Steer a validator from the output_schema.
426
+
427
+ ### The older, explicit binding
428
+ A tool spec MAY declare \`inputs\` instead, and a spec with \`inputs\` does NOT
429
+ get the standard call. That is the way for a validator tool backed by a shipped
430
+ predicate, which receives \`value\` plus its own arguments — its \`run\` would
431
+ not accept \`data\`/\`slots\`/\`binding\`. Each entry is
432
+ \`{"source": "field"|"const", "field": <name>, "as": "slot"?}\`; with
433
+ \`as: "slot"\` the field's value is read as a reference and its TEXT is passed.
434
+ \`field\` takes a path, so a binding can point INTO a list: \`units[].key\` is,
435
+ from every row in \`units\`, the \`key\` field.
436
+
437
+ Writing a NEW validator: take the standard call and leave \`inputs\` out.
438
+
344
439
  ## Wiring — how the pieces connect
345
440
  There are THREE mechanisms, and using the wrong one silently no-ops. Know which
346
441
  each link uses.
@@ -398,6 +493,15 @@ get "into" a workflow — there is no attach route for it):
398
493
  validates each edit. Read the returned document to see the exact shape it
399
494
  produced, then adjust.
400
495
 
496
+ ### Which way you are asking
497
+ - \`list_workflow_components\` — what does THIS workflow depend on. Two hops:
498
+ what the document names, and what each agent then actually receives.
499
+ - \`list_workflows_using\` / \`list_dependent_agents\` — who depends on THIS
500
+ entity. Ask before you edit or delete anything shared.
501
+ - A component's \`reach\` is how many workflows name it, this one included. Above
502
+ 1, an edit reaches processes you did not open; \`duplicate_workflow_component\`
503
+ gives this workflow its own copy and leaves the others on the original.
504
+
401
505
  ## Prompt elements & placement (Memory V2)
402
506
  A prompt snippet is a LIBRARY item — creating it changes nothing on its own. It
403
507
  only shapes a run once it is PLACED into a flow step's prompt stack. Placement is
@@ -439,10 +543,16 @@ meaningful only in the tenant it came from; sending it back in a create/update
439
543
  elsewhere points at nothing. Do this instead:
440
544
  1. Read the source graph (in the session pointed at it) for its SHAPE: names,
441
545
  field values, which tools each agent lists, which agents/tools each workflow
442
- step references. For each source agent also read its LINKS —
443
- \`list_agent_skills\`, \`list_agent_policies\`, \`list_agent_reference_docs\` —
444
- they are not in the agent body, so a plain \`read_agent\` misses them and you
445
- would rebuild an agent that quietly lost its skills and guardrails.
546
+ step references. START WITH \`list_workflow_components\`: it answers what the
547
+ workflow is made of in one call — agents and flows, the workflows it calls,
548
+ the tools those agents reach, the tables behind those tools, the knowledge
549
+ attached — each row naming the STEPS that are the reason it is there. Walking
550
+ that outward by hand is how a rebuild quietly loses a tool nobody noticed was
551
+ attached. Then read each entity for its field values. For each source agent
552
+ also read its LINKS — \`list_agent_skills\`, \`list_agent_policies\`,
553
+ \`list_agent_reference_docs\` — they are not in the agent body, so a plain
554
+ \`read_agent\` misses them and you would rebuild an agent that quietly lost
555
+ its skills and guardrails.
446
556
  2. Create the leaf dependencies first (tools, output_schemas). Keep a map from
447
557
  each OLD id to the NEW id the create call returns.
448
558
  3. Create agents, translating every referenced id through your map:
@@ -1 +1 @@
1
- {"version":3,"file":"conventions.js","sourceRoot":"","sources":["../../src/tools/conventions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAIH,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA86BnB,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAC,MAAiB;IACnD,MAAM,CAAC,IAAI,CACT,qBAAqB,EACrB,2EAA2E;QACzE,2EAA2E;QAC3E,2EAA2E;QAC3E,4EAA4E;QAC5E,uEAAuE;QACvE,kBAAkB,EACpB,EAAE,EACF,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAC1E,CAAC;AACJ,CAAC"}
@@ -24,7 +24,16 @@
24
24
  * `update_data_table` to base itself on. Adding a version argument here would
25
25
  * invent a check the route does not make.
26
26
  *
27
- * **2. Which tools a table yields.** A published table mints its own CRUD tools,
27
+ * **2. Reading the rows without reading the whole table.** `read_data_table`
28
+ * answers with the table AND every row it holds, which is right for a library
29
+ * element and wrong for DATA: the reasoning that put `listPaging` on
30
+ * `list_data_tables` — a library grows by deliberate authoring, a tenant's
31
+ * reference data has no ceiling — applies harder one level down, where the rows
32
+ * are. `list_data_table_rows` (axonity-flow#1372) is the paged, filtered reader,
33
+ * and the filter runs over the WHOLE table before the page is cut, so a match
34
+ * below the window is still found.
35
+ *
36
+ * **3. Which tools a table yields.** A published table mints its own CRUD tools,
28
37
  * so granting an agent access to a table is ordinary tool granting rather than a
29
38
  * second permission vocabulary. Their names follow a convention, which used to
30
39
  * mean the only way to find them was to fetch the whole tool library and match
@@ -24,7 +24,16 @@
24
24
  * `update_data_table` to base itself on. Adding a version argument here would
25
25
  * invent a check the route does not make.
26
26
  *
27
- * **2. Which tools a table yields.** A published table mints its own CRUD tools,
27
+ * **2. Reading the rows without reading the whole table.** `read_data_table`
28
+ * answers with the table AND every row it holds, which is right for a library
29
+ * element and wrong for DATA: the reasoning that put `listPaging` on
30
+ * `list_data_tables` — a library grows by deliberate authoring, a tenant's
31
+ * reference data has no ceiling — applies harder one level down, where the rows
32
+ * are. `list_data_table_rows` (axonity-flow#1372) is the paged, filtered reader,
33
+ * and the filter runs over the WHOLE table before the page is cut, so a match
34
+ * below the window is still found.
35
+ *
36
+ * **3. Which tools a table yields.** A published table mints its own CRUD tools,
28
37
  * so granting an agent access to a table is ordinary tool granting rather than a
29
38
  * second permission vocabulary. Their names follow a convention, which used to
30
39
  * mean the only way to find them was to fetch the whole tool library and match
@@ -110,6 +119,46 @@ export function registerDataTableTools(server, client) {
110
119
  match_column: matchColumn,
111
120
  match_value: matchValue,
112
121
  }))));
122
+ server.tool("list_data_table_rows", "Read a table's rows ONE PAGE at a time, optionally filtered. Read-only. " +
123
+ "\n\nPREFER THIS OVER read_data_table WHEN YOU WANT THE CONTENT. " +
124
+ "read_data_table answers with the table and ALL of its rows, which is " +
125
+ "fine for a small lookup table and is not what a tenant's reference data " +
126
+ "looks like — thousands of rows arrive as one response nobody asked for. " +
127
+ "\n\nTHE RESPONSE IS ONE PAGE: { items, nextCursor, pageSize, hasMore }. " +
128
+ "Each item is `{ cells }`, keyed by column name exactly as the table " +
129
+ "stores them — not reshaped, because you are looking at the author's own " +
130
+ "data. While hasMore is true you have NOT seen every row; pass nextCursor " +
131
+ "back as cursor and repeat until it is null. " +
132
+ "\n\nFILTER RATHER THAN WALK: `q` matches any cell containing that text " +
133
+ "and is applied to the whole table before the page is cut, so \"is there " +
134
+ "a row for X\" is one call. " +
135
+ "\n\nA CURSOR GOES STALE ON PURPOSE. It carries a fingerprint of the " +
136
+ "table's version and your filter, so a table edited while you were " +
137
+ "paging REFUSES the cursor with a 422 instead of quietly continuing " +
138
+ "through a different set of rows. Start again from the first page — that " +
139
+ "is the correct response, not an error to work around.", {
140
+ tableId: z.string().describe("The table's id."),
141
+ q: z
142
+ .string()
143
+ .optional()
144
+ .describe("Keep only rows with a cell containing this text. Applied across " +
145
+ "the whole table, not just the page you are on."),
146
+ limit: z
147
+ .number()
148
+ .int()
149
+ .optional()
150
+ .describe("Page size. Defaults to 20, clamped to 200 — asking for more is not " +
151
+ "an error and does not get you more."),
152
+ cursor: z
153
+ .string()
154
+ .optional()
155
+ .describe("Opaque continuation cursor from the previous response's " +
156
+ "nextCursor. Omit for the first page. Do not parse or construct " +
157
+ "one, and do not reuse one from before the table changed."),
158
+ }, async ({ tableId, q, limit, cursor }) => guard(async () =>
159
+ // The page envelope is forwarded WHOLE — unwrapping to `items` would
160
+ // rebuild the silent truncation this tool exists to avoid.
161
+ jsonResult(await client.get(`${BASE}/${tableId}/rows`, { q, limit, cursor }))));
113
162
  server.tool("list_data_table_tools", "Which tools this table yields, and which of them a RUN can actually " +
114
163
  "reach. Read-only. " +
115
164
  "\n\nA published table mints its own CRUD tools, so giving an agent " +
@@ -1 +1 @@
1
- {"version":3,"file":"dataTables.js","sourceRoot":"","sources":["../../src/tools/dataTables.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,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M,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,0DAA0D;YACxD,iEAAiE;YACjE,0DAA0D,CAC7D;KACJ,EACD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CACtC,KAAK,CAAC,KAAK,IAAI,EAAE;IACf,qEAAqE;IACrE,2DAA2D;IAC3D,UAAU,CACR,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,IAAI,OAAO,OAAO,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAClE,CACF,CACJ,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,uBAAuB,EACvB,sEAAsE;QACpE,oBAAoB;QACpB,qEAAqE;QACrE,yEAAyE;QACzE,oEAAoE;QACpE,qEAAqE;QACrE,0EAA0E;QAC1E,2DAA2D;QAC3D,mEAAmE;QACnE,sEAAsE;QACtE,wEAAwE;QACxE,wEAAwE;QACxE,4DAA4D;QAC5D,mEAAmE;QACnE,qCAAqC,EACvC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,EAC9C,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CACf,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CACzE,CAAC;AACJ,CAAC"}
@@ -182,6 +182,21 @@ export function registerTriggerTools(server, client) {
182
182
  "and every beat becomes a run, whether or not there was work. " +
183
183
  "`\"automatic\"` means one tool call decides. `checkConfig` carries that " +
184
184
  "setting. Set them with create_/update_conditional_trigger.", { workflowId: z.string().describe("The workflow's id.") }, async ({ workflowId }) => guard(async () => jsonResult(await client.get(`/api/v1/workflows/${workflowId}/conditional-triggers`))));
185
+ server.tool("list_tenant_conditional_triggers", "Every conditional start in the TENANT, not one workflow's — the answer to " +
186
+ "\"what is scheduled to run here at all\", which list_conditional_triggers " +
187
+ "cannot give you without walking every workflow. Read-only. " +
188
+ "\n\nEach row names the workflow it starts, so a tenant-wide list is " +
189
+ "readable, and DISABLED triggers are included on purpose: a schedule " +
190
+ "somebody switched off is the one you go looking for to switch back on. " +
191
+ "\n\nREAD `pendingTasks`. It should be 1. More than one means the " +
192
+ "schedule FORKED and the workflow is starting several times an interval " +
193
+ "— a fault that otherwise shows up only as a surprising number of runs. " +
194
+ "`nextScheduledFor` says when the next beat is due, and " +
195
+ "`schedulePausedAt` is set when the whole workflow's schedule is paused, " +
196
+ "which makes a trigger that looks enabled do nothing. " +
197
+ "\n\nRicher rows than list_conditional_triggers, which answers with the " +
198
+ "trigger records themselves — use that one when you are editing a " +
199
+ "specific workflow's starts.", {}, async () => guard(async () => jsonResult(await client.get("/api/v1/conditional-triggers"))));
185
200
  server.tool("create_conditional_trigger", "Create a conditional trigger on a workflow: it wakes every " +
186
201
  "`repeatIntervalMinutes` and starts the workflow when there is something " +
187
202
  "to do. " +
@@ -1 +1 @@
1
- {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/tools/triggers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,+EAA+E;AAC/E,MAAM,OAAO,GAAG,CAAC;KACd,OAAO,CAAC,IAAI,CAAC;KACb,QAAQ,CAAC,oEAAoE,CAAC,CAAC;AAElF,MAAM,UAAU,oBAAoB,CAClC,MAAiB,EACjB,MAAqB;IAErB,0EAA0E;IAE1E,MAAM,CAAC,IAAI,CACT,uBAAuB,EACvB,qEAAqE;QACnE,oEAAoE,EACtE,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAA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U,CACf,MAAM,MAAM,CAAC,KAAK,CAAC,gCAAgC,SAAS,EAAE,EAAE,IAAI,CAAC,CACtE,CAAC;IACJ,CAAC,CAAC,CACL,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,4BAA4B,EAC5B,4EAA4E;QAC1E,cAAc,EAChB;QACE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QAC/D,OAAO,EAAE,OAAO;KACjB,EACD,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CACtB,KAAK,CAAC,KAAK,IAAI,EAAE;QACf,MAAM,MAAM,CAAC,GAAG,CAAC,gCAAgC,SAAS,EAAE,CAAC,CAAC;QAC9D,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC,CACL,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axonity-ai/mcp",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Model Context Protocol server for Axonity Flow — lets an external agent (e.g. Claude Code) read, draft, and update workflows, agents and tools in an Axonity tenant.",
5
5
  "license": "MIT",
6
6
  "repository": {