@cyanheads/workflows-mcp-server 0.1.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/AGENTS.md +381 -0
  2. package/CLAUDE.md +14 -8
  3. package/Dockerfile +20 -9
  4. package/LICENSE +1 -1
  5. package/README.md +20 -7
  6. package/changelog/0.2.x/0.2.0.md +20 -0
  7. package/changelog/0.3.x/0.3.0.md +40 -0
  8. package/changelog/template.md +60 -19
  9. package/dist/mcp-server/tools/definitions/index.d.ts +80 -49
  10. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  11. package/dist/mcp-server/tools/definitions/index.js +9 -1
  12. package/dist/mcp-server/tools/definitions/index.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/workflow-create-temp.tool.js +5 -5
  14. package/dist/mcp-server/tools/definitions/workflow-create-temp.tool.js.map +1 -1
  15. package/dist/mcp-server/tools/definitions/workflow-create.tool.d.ts.map +1 -1
  16. package/dist/mcp-server/tools/definitions/workflow-create.tool.js +7 -6
  17. package/dist/mcp-server/tools/definitions/workflow-create.tool.js.map +1 -1
  18. package/dist/mcp-server/tools/definitions/workflow-delete.tool.d.ts +35 -0
  19. package/dist/mcp-server/tools/definitions/workflow-delete.tool.d.ts.map +1 -0
  20. package/dist/mcp-server/tools/definitions/workflow-delete.tool.js +112 -0
  21. package/dist/mcp-server/tools/definitions/workflow-delete.tool.js.map +1 -0
  22. package/dist/mcp-server/tools/definitions/workflow-get.tool.d.ts +1 -1
  23. package/dist/mcp-server/tools/definitions/workflow-get.tool.js +6 -6
  24. package/dist/mcp-server/tools/definitions/workflow-get.tool.js.map +1 -1
  25. package/dist/mcp-server/tools/definitions/workflow-list.tool.d.ts +4 -1
  26. package/dist/mcp-server/tools/definitions/workflow-list.tool.d.ts.map +1 -1
  27. package/dist/mcp-server/tools/definitions/workflow-list.tool.js +38 -10
  28. package/dist/mcp-server/tools/definitions/workflow-list.tool.js.map +1 -1
  29. package/dist/services/workflow-index/workflow-index-service.d.ts +16 -0
  30. package/dist/services/workflow-index/workflow-index-service.d.ts.map +1 -1
  31. package/dist/services/workflow-index/workflow-index-service.js +28 -0
  32. package/dist/services/workflow-index/workflow-index-service.js.map +1 -1
  33. package/package.json +19 -16
  34. package/server.json +3 -3
@@ -0,0 +1,20 @@
1
+ ---
2
+ summary: "Completes library CRUD with a workflow_delete tool (by name + optional version) and adds a workflow_list keyword query filter over name and description. Tool descriptions rewritten client-facing, empty list results echo the applied filters, and the README documents the versioned per-name@version storage path."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.0 — 2026-06-30
8
+
9
+ Completes library CRUD with a delete tool, adds keyword search to `workflow_list`, and tightens the client-facing definition language.
10
+
11
+ ## Added
12
+
13
+ - **`workflow_delete`** — new tool removing a permanent workflow by `name` and optional `version`; omit `version` to delete the highest available match. Rejects temporary workflows (`temp_not_allowed`) and unknown names/versions (`not_found`), maps filesystem failures to `delete_failed` with the file path stripped from the message, and guards on `index_unavailable`. Marked `destructiveHint: true`. Backed by `WorkflowIndexService.deleteWorkflow()`, which resolves the target through `findWorkflow` — only an indexed file is ever unlinked, never an arbitrary path — then rebuilds the index. Brings the tool count to 5. ([#5](https://github.com/cyanheads/workflows-mcp-server/issues/5))
14
+ - **`workflow_list` `query` filter** — optional keyword input matched case-insensitively as a substring against each workflow's `name` and `description` (matches when either contains it), combined with the existing `category` and `tags` filters via AND. In-memory over the index; no service change. ([#4](https://github.com/cyanheads/workflows-mcp-server/issues/4))
15
+
16
+ ## Changed
17
+
18
+ - **Client-facing definition language** — tool and field descriptions across all five tools no longer leak local layout or mechanics: dropped the `global_instructions.md` filename (now "optional global execution guidance"), the `categories/<…>/` and `temp/` storage paths, index-rebuild wording, and reader-directed "consuming agent" phrasing. Caller-affecting details are kept — conflict/overwrite semantics, verbatim placeholder storage, and that global guidance is returned alongside `workflow_get`. ([#13](https://github.com/cyanheads/workflows-mcp-server/issues/13))
19
+ - **Empty `workflow_list` results** — now echo the applied filters (`query` / `category` / `tags`) plus a broadening hint through an `enrichment` notice reaching both `structuredContent.notice` and the `content[]` text, in place of a bare "no workflows found" line. ([#13](https://github.com/cyanheads/workflows-mcp-server/issues/13))
20
+ - **README** — the `workflow_create` section documents the versioned storage path `categories/<slugified-category>/<slugified-name>-<slugified-version>-workflow.yaml` (one file per `name@version`, so versions coexist), and covers the new `workflow_delete` tool, the `query` parameter, and the `temp_not_allowed` error reason. ([#14](https://github.com/cyanheads/workflows-mcp-server/issues/14))
@@ -0,0 +1,40 @@
1
+ ---
2
+ summary: "MCP SDK v2 maintenance with strict tool inputs, modern advertised schemas, TypeScript 7, Bun 1.4, supply-chain guards, and refreshed packaging and agent guidance."
3
+ breaking: true
4
+ security: false
5
+ ---
6
+
7
+ # 0.3.0 — 2026-08-21
8
+
9
+ ## Added
10
+
11
+ - **Supply-chain controls** — installs hold newly published third-party packages for three days and run the Socket security scanner; first-party `@cyanheads/mcp-ts-core` releases remain exempt from the age hold.
12
+ - **Community health files** — adds contribution, conduct, funding, and private vulnerability-reporting guidance, plus repository-wide line-ending and generated-file attributes.
13
+
14
+ ## Changed
15
+
16
+ - **MCP SDK v2** — `@cyanheads/mcp-ts-core` now serves protocol revision `2026-07-28` alongside 2025-era clients. Root tool inputs reject unknown keys instead of stripping them, and advertised input/output schemas use the SDK v2 contract, including the structured error envelope.
17
+ - **TypeScript and test gate** — TypeScript 7 now typechecks both `src/` and `tests/`; test fixtures and handler assertions follow the framework's current async and output-schema types.
18
+ - **Runtime packaging** — Bun 1.4 images use BuildKit caches, omit optional peer tiers in production, carry OCI/MCP identity labels and a health check, and build for the requested target platform.
19
+ - **MCPB and release tooling** — bundle cleanup strips platform-specific DuckDB native bindings as well as dependency-shipped agent docs; packaging lint verifies both classes, and GitHub Release creation uses the repository release script.
20
+ - **Framework maintenance surface** — development scripts, changelog conventions, and agent skills are synchronized with `@cyanheads/mcp-ts-core` 0.12.3, including SDK v2 context, testing, schema, cache-hint, and header-parameter guidance.
21
+ - **Project metadata** — package authorship and MCPB author metadata use Casey Hand's canonical identity, and the Apache-2.0 copyright year is 2026.
22
+
23
+ ## Dependencies
24
+
25
+ Runtime:
26
+
27
+ - `@cyanheads/mcp-ts-core` `^0.10.10` → `^0.12.3`
28
+
29
+ Development:
30
+
31
+ - `@biomejs/biome` `^2.5.1` → `2.5.9`
32
+ - `@socketsecurity/bun-security-scanner` added at `^1.1.2`
33
+ - `@types/node` `^25.9.3` → `26.2.0`
34
+ - `@types/semver` `^7.7.1` → `^7.8.0`
35
+ - `@vitest/coverage-istanbul` `^4.1.9` → `4.1.11`
36
+ - `fast-check` `^4.8.0` → `^4.9.0`
37
+ - `ignore` `^7.0.5` → `^7.0.6`
38
+ - `tsc-alias` `^1.8.17` → `^1.9.2`
39
+ - `typescript` `^6.0.3` → `^7.0.2`
40
+ - `vitest` `^4.1.9` → `^4.1.11`
@@ -4,10 +4,11 @@
4
4
  # to author a new release. Set that file's H1 to `# <version> — YYYY-MM-DD`
5
5
  # with a concrete date.
6
6
 
7
- # Required. One-line GitHub Release-style headline. 350 character cap.
8
- # Default short and scannable. Don't pad, don't stitch unrelated changes with
9
- # semicolons pick the headline. Quotes required: unquoted YAML treats `: `
10
- # inside the value as a key separator and fails GitHub's strict parser.
7
+ # Required. One-line GitHub Release-style headline. 350 character cap — a
8
+ # ceiling, not a target. Default short and scannable. Don't pad, don't stitch
9
+ # unrelated changes with commas/semicolons into an inventory pick the
10
+ # headline, like a tag's theme line. Quotes required: unquoted YAML treats
11
+ # `: ` inside the value as a key separator and fails GitHub's strict parser.
11
12
  summary: ""
12
13
 
13
14
  # Set `true` when consumers must change code to upgrade: API removals,
@@ -15,16 +16,19 @@ summary: ""
15
16
  # usage. Flagged as `Breaking` in the rollup.
16
17
  breaking: false
17
18
 
18
- # Set `true` if this release contains any security fix. Pairs with the
19
- # `## Security` section below. Flagged as `Security` in the rollup so
20
- # users can triage upgrade urgency at a glance.
19
+ # Set `true` ONLY for a security fix in THIS project's own source code — a
20
+ # vulnerability or hardening in code you ship. A dependency or transitive CVE
21
+ # bump is routine maintenance, NOT a security release: record it under
22
+ # `## Dependencies` (with the advisory ID) and leave this `false`. When true,
23
+ # pairs with the `## Security` section below and flags `Security` in the rollup.
21
24
  security: false
22
25
 
23
26
  # Optional free-form notes for maintenance agents processing this release.
24
27
  # Not rendered in CHANGELOG — consumed by agents running `maintenance` on
25
- # downstream servers. Use for adoption instructions that don't fit the
26
- # human-facing sections: new files to create, fields to populate, one-time
27
- # migration steps. Omit the field entirely when there's nothing to say.
28
+ # downstream servers. ADOPTION STEPS ONLY new files to create, fields to
29
+ # populate, one-time migration steps. Never a second rendering of the body:
30
+ # if a body bullet already says it, name the bullet's symbol instead of
31
+ # re-explaining. Omit the field entirely when there's nothing to say.
28
32
  # agent-notes: |
29
33
  # <instructions for downstream maintenance agents>
30
34
  ---
@@ -39,17 +43,54 @@ security: false
39
43
  each bullet with the symbol or concept name in **bold** so they can skip
40
44
  what's irrelevant and zoom in on what's not.
41
45
 
42
- Tone: terse, fact-dense, not verbose. Default to one sentence per bullet —
43
- name the symbol, state what changed, stop. Use a second sentence only when
44
- it carries weight. If a bullet feels long, it is.
45
-
46
- Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
47
- relevant skill), ceremonial framings ("This release introduces…",
48
- backwards-compat paragraphs), file-by-file test enumerations, internal
49
- implementation notes. Prefer code/symbol names over English re-explanations.
46
+ Tone: terse, fact-dense, not verbose. Bullet shape: **symbol** + what
47
+ changed + at most one consumer-facing caveat. One sentence by default, two
48
+ when the second carries weight a bullet past ~40 words or three sentences
49
+ is wrong. The depth lives one hop away: the linked issue carries the why,
50
+ the commit diff carries the how. The changelog names what changed and what
51
+ a consumer does about it; a reader who wants mechanism opens the link.
52
+
53
+ Model length on THIS guide, never on the previous entry — entries modeled
54
+ on entries compound.
55
+
56
+ Cut (each has shipped as a wall of text; these are the cruft):
57
+ - History/justification narration — how the bug worked, why the old
58
+ behavior was wrong. One short clause at most; the issue carries the story.
59
+ - Design-rationale defense — "chosen over Y because…", "guarding the
60
+ getter is not enough…". That is the author arguing with a reviewer;
61
+ reviewers read the PR, not the changelog.
62
+ - Defensive unchanged-clauses — "X is unchanged", "byte-identical to
63
+ <prev>". Keep one only where its absence would cause a real misread,
64
+ as a short parenthetical.
65
+ - Edge-case inventories — marker lists, not-flagged lists, escape tables.
66
+ Tests and the issue carry those.
67
+ - Mechanism walkthroughs (JSDoc, CLAUDE.md/AGENTS.md, or the relevant
68
+ skill own those), ceremonial framings ("This release introduces…"),
69
+ backwards-compat paragraphs, file-by-file test enumerations. Prefer
70
+ code/symbol names over English re-explanations.
71
+
72
+ Verified ≠ included: the every-claim-verified-from-the-diff rule bounds
73
+ the TRUTH of what you write, never the AMOUNT.
74
+
75
+ Example — same fact, right size:
76
+
77
+ TOO LONG: **`fetchWithTimeout`'s `timeoutMs` bounds the whole exchange**
78
+ (#341). `fetch` resolves once headers arrive and the deadline was
79
+ cleared as the helper returned, so a peer that answered promptly and
80
+ then stalled the stream held the request open indefinitely. A 2xx
81
+ carrying a body now comes back as a passthrough wrapper that disarms
82
+ the deadline when the body closes, errors, or is cancelled; …
83
+ [+90 more words of mechanism and edge cases]
84
+
85
+ RIGHT: **`fetchWithTimeout`'s `timeoutMs` now bounds the whole
86
+ exchange, not just the headers** (#341). A stalled body aborts with
87
+ the same `Timeout` error; the returned `Response` is a wrapper, so
88
+ identity assertions (`toBe(response)`) no longer hold.
50
89
 
51
90
  Narrative intro: skip by default. Add one short sentence only when the
52
- release theme genuinely needs framing the bullets can't carry.
91
+ release theme genuinely needs framing the bullets can't carry. When many
92
+ bullets share one upgrade consequence, state it ONCE — intro line or
93
+ agent-notes — never per bullet.
53
94
 
54
95
  Sections: Keep a Changelog order — Added, Changed, Deprecated, Removed,
55
96
  Fixed, Security. Include only sections with entries; delete the rest
@@ -4,6 +4,7 @@
4
4
  */
5
5
  export { workflowCreate } from './workflow-create.tool.js';
6
6
  export { workflowCreateTemp } from './workflow-create-temp.tool.js';
7
+ export { workflowDelete } from './workflow-delete.tool.js';
7
8
  export { workflowGet } from './workflow-get.tool.js';
8
9
  export { workflowList } from './workflow-list.tool.js';
9
10
  export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
@@ -11,7 +12,6 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
11
12
  version: import("zod").ZodString;
12
13
  description: import("zod").ZodString;
13
14
  author: import("zod").ZodString;
14
- category: import("zod").ZodString;
15
15
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
16
16
  steps: import("zod").ZodArray<import("zod").ZodObject<{
17
17
  server: import("zod").ZodString;
@@ -31,50 +31,37 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
31
31
  }, import("zod/v4/core").$strip>, readonly [{
32
32
  readonly reason: "invalid_input";
33
33
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
34
- readonly when: "A field passed schema validation but is semantically invalid: a blank/whitespace-only category, a category that slugifies to empty, or a name that slugifies to empty or exceeds the filename length limit.";
35
- readonly recovery: "Provide a category and workflow name that each contain alphanumeric characters, and keep the name under 200 characters after slugification.";
36
- }, {
37
- readonly reason: "already_exists";
38
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
39
- readonly when: "A permanent workflow with this name@version already exists in the index.";
40
- readonly recovery: "Change the version field or use a different name to avoid the conflict.";
34
+ readonly when: "The workflow name passed schema validation but slugifies to empty or exceeds the filename length limit.";
35
+ readonly recovery: "Provide a workflow name that contains alphanumeric characters and stays under 200 characters after slugification.";
41
36
  }, {
42
37
  readonly reason: "write_failed";
43
38
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
44
39
  readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
45
40
  readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
46
41
  }], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
47
- name: import("zod").ZodString;
48
- version: import("zod").ZodString;
49
- description: import("zod").ZodString;
50
- author: import("zod").ZodString;
42
+ query: import("zod").ZodOptional<import("zod").ZodString>;
43
+ category: import("zod").ZodOptional<import("zod").ZodString>;
51
44
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
52
- steps: import("zod").ZodArray<import("zod").ZodObject<{
53
- server: import("zod").ZodString;
54
- tool: import("zod").ZodString;
55
- action: import("zod").ZodOptional<import("zod").ZodString>;
56
- description: import("zod").ZodOptional<import("zod").ZodString>;
57
- name: import("zod").ZodOptional<import("zod").ZodString>;
58
- params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
59
- forEach: import("zod").ZodOptional<import("zod").ZodString>;
60
- }, import("zod/v4/core").$strip>>;
45
+ includeTools: import("zod").ZodOptional<import("zod").ZodBoolean>;
61
46
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
62
- status: import("zod").ZodLiteral<"created">;
63
- filePath: import("zod").ZodString;
64
- key: import("zod").ZodString;
65
- created_date: import("zod").ZodString;
66
- last_updated_date: import("zod").ZodString;
47
+ workflows: import("zod").ZodArray<import("zod").ZodObject<{
48
+ name: import("zod").ZodString;
49
+ version: import("zod").ZodString;
50
+ description: import("zod").ZodString;
51
+ author: import("zod").ZodString;
52
+ category: import("zod").ZodOptional<import("zod").ZodString>;
53
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
54
+ tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
55
+ }, import("zod/v4/core").$strip>>;
56
+ totalCount: import("zod").ZodNumber;
67
57
  }, import("zod/v4/core").$strip>, readonly [{
68
- readonly reason: "invalid_input";
69
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
70
- readonly when: "The workflow name passed schema validation but slugifies to empty or exceeds the filename length limit.";
71
- readonly recovery: "Provide a workflow name that contains alphanumeric characters and stays under 200 characters after slugification.";
72
- }, {
73
- readonly reason: "write_failed";
74
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
75
- readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
76
- readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
77
- }], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
58
+ readonly reason: "index_unavailable";
59
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
60
+ readonly when: "The workflow index has not finished building yet.";
61
+ readonly recovery: "Retry after the server has finished initializing its workflow index.";
62
+ }], {
63
+ readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
64
+ }> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
78
65
  name: import("zod").ZodString;
79
66
  version: import("zod").ZodOptional<import("zod").ZodString>;
80
67
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -100,8 +87,8 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
100
87
  }, import("zod/v4/core").$strip>;
101
88
  globalInstructions: import("zod").ZodNullable<import("zod").ZodString>;
102
89
  source: import("zod").ZodEnum<{
103
- temp: "temp";
104
90
  permanent: "permanent";
91
+ temp: "temp";
105
92
  }>;
106
93
  }, import("zod/v4/core").$strip>, readonly [{
107
94
  readonly reason: "not_found";
@@ -119,21 +106,65 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
119
106
  readonly when: "The workflow index has not finished building yet.";
120
107
  readonly recovery: "Retry after the server has finished initializing its workflow index.";
121
108
  }], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
122
- category: import("zod").ZodOptional<import("zod").ZodString>;
109
+ name: import("zod").ZodString;
110
+ version: import("zod").ZodString;
111
+ description: import("zod").ZodString;
112
+ author: import("zod").ZodString;
113
+ category: import("zod").ZodString;
123
114
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
124
- includeTools: import("zod").ZodOptional<import("zod").ZodBoolean>;
125
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
126
- workflows: import("zod").ZodArray<import("zod").ZodObject<{
127
- name: import("zod").ZodString;
128
- version: import("zod").ZodString;
129
- description: import("zod").ZodString;
130
- author: import("zod").ZodString;
131
- category: import("zod").ZodOptional<import("zod").ZodString>;
132
- tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
133
- tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
115
+ steps: import("zod").ZodArray<import("zod").ZodObject<{
116
+ server: import("zod").ZodString;
117
+ tool: import("zod").ZodString;
118
+ action: import("zod").ZodOptional<import("zod").ZodString>;
119
+ description: import("zod").ZodOptional<import("zod").ZodString>;
120
+ name: import("zod").ZodOptional<import("zod").ZodString>;
121
+ params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
122
+ forEach: import("zod").ZodOptional<import("zod").ZodString>;
134
123
  }, import("zod/v4/core").$strip>>;
135
- totalCount: import("zod").ZodNumber;
124
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
125
+ status: import("zod").ZodLiteral<"created">;
126
+ filePath: import("zod").ZodString;
127
+ key: import("zod").ZodString;
128
+ created_date: import("zod").ZodString;
129
+ last_updated_date: import("zod").ZodString;
136
130
  }, import("zod/v4/core").$strip>, readonly [{
131
+ readonly reason: "invalid_input";
132
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
133
+ readonly when: "A field passed schema validation but is semantically invalid: a blank/whitespace-only category, a category that slugifies to empty, or a name that slugifies to empty or exceeds the filename length limit.";
134
+ readonly recovery: "Provide a category and workflow name that each contain alphanumeric characters, and keep the name under 200 characters after slugification.";
135
+ }, {
136
+ readonly reason: "already_exists";
137
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
138
+ readonly when: "A permanent workflow with this name@version already exists in the index.";
139
+ readonly recovery: "Change the version field or use a different name to avoid the conflict.";
140
+ }, {
141
+ readonly reason: "write_failed";
142
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
143
+ readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
144
+ readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
145
+ }], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
146
+ name: import("zod").ZodString;
147
+ version: import("zod").ZodOptional<import("zod").ZodString>;
148
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
149
+ status: import("zod").ZodLiteral<"deleted">;
150
+ name: import("zod").ZodString;
151
+ version: import("zod").ZodString;
152
+ }, import("zod/v4/core").$strip>, readonly [{
153
+ readonly reason: "not_found";
154
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
155
+ readonly when: "No permanent workflow matches the given name, or the given name and version.";
156
+ readonly recovery: "Use workflow_list to see available workflow names and versions, then retry; omit version to target the latest.";
157
+ }, {
158
+ readonly reason: "temp_not_allowed";
159
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
160
+ readonly when: "The resolved workflow is temporary, and temporary workflows cannot be deleted.";
161
+ readonly recovery: "Leave temporary workflows to expire on their own — only permanent workflows can be deleted here.";
162
+ }, {
163
+ readonly reason: "delete_failed";
164
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
165
+ readonly when: "Filesystem error while removing the workflow file, such as insufficient permissions.";
166
+ readonly recovery: "Check that the workflows directory is writable, then retry the deletion.";
167
+ }, {
137
168
  readonly reason: "index_unavailable";
138
169
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
139
170
  readonly when: "The workflow index has not finished building yet.";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAQvD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,CAAC"}
@@ -4,11 +4,19 @@
4
4
  */
5
5
  export { workflowCreate } from './workflow-create.tool.js';
6
6
  export { workflowCreateTemp } from './workflow-create-temp.tool.js';
7
+ export { workflowDelete } from './workflow-delete.tool.js';
7
8
  export { workflowGet } from './workflow-get.tool.js';
8
9
  export { workflowList } from './workflow-list.tool.js';
9
10
  import { workflowCreate } from './workflow-create.tool.js';
10
11
  import { workflowCreateTemp } from './workflow-create-temp.tool.js';
12
+ import { workflowDelete } from './workflow-delete.tool.js';
11
13
  import { workflowGet } from './workflow-get.tool.js';
12
14
  import { workflowList } from './workflow-list.tool.js';
13
- export const allToolDefinitions = [workflowList, workflowGet, workflowCreate, workflowCreateTemp];
15
+ export const allToolDefinitions = [
16
+ workflowList,
17
+ workflowGet,
18
+ workflowCreate,
19
+ workflowCreateTemp,
20
+ workflowDelete,
21
+ ];
14
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY;IACZ,WAAW;IACX,cAAc;IACd,kBAAkB;IAClB,cAAc;CACf,CAAC"}
@@ -16,7 +16,7 @@ const StepInputSchema = z
16
16
  params: z
17
17
  .record(z.string(), z.unknown())
18
18
  .optional()
19
- .describe('Key-value parameter map. May include {{input.foo}} placeholders for the consuming agent to resolve.'),
19
+ .describe('Key-value parameter map. May include {{input.foo}} placeholders, stored verbatim and resolved at execution time.'),
20
20
  forEach: z
21
21
  .string()
22
22
  .optional()
@@ -25,10 +25,10 @@ const StepInputSchema = z
25
25
  .describe('A single workflow step with server, tool, and optional params/metadata.');
26
26
  export const workflowCreateTemp = tool('workflow_create_temp', {
27
27
  title: 'Create Temporary Workflow',
28
- description: 'Write a temporary workflow to the temp/ directory. ' +
29
- 'Temporary workflows are indexed and retrievable via workflow_get but excluded from workflow_list results. ' +
30
- 'No conflict check temp is throwaway. Useful for one-shot plans, short-lived scaffolding, or workflows not intended for the permanent library. ' +
31
- 'The server stamps created_date and last_updated_date automatically.',
28
+ description: 'Create a temporary workflow for one-shot plans, short-lived scaffolding, or drafts not meant for the permanent library. ' +
29
+ 'Temporary workflows are retrievable with workflow_get but never appear in workflow_list. ' +
30
+ 'Writing the same name and version overwrites the previous draft there is no conflict check. ' +
31
+ 'Created and last-updated dates are stamped automatically.',
32
32
  annotations: { readOnlyHint: false, idempotentHint: false, openWorldHint: false },
33
33
  input: z.object({
34
34
  name: z.string().min(1).describe('Workflow name (human-readable).'),
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-create-temp.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-create-temp.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAE9F,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC7D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACtE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACpE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC3D,MAAM,EAAE,CAAC;SACN,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;SAC/B,QAAQ,EAAE;SACV,QAAQ,CACP,qG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ceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-create.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyBjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiKzB,CAAC"}
1
+ {"version":3,"file":"workflow-create.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-create.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyBjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkKzB,CAAC"}
@@ -16,7 +16,7 @@ const StepInputSchema = z
16
16
  params: z
17
17
  .record(z.string(), z.unknown())
18
18
  .optional()
19
- .describe('Key-value parameter map. May include {{input.foo}} placeholders for the consuming agent to resolve.'),
19
+ .describe('Key-value parameter map. May include {{input.foo}} placeholders, stored verbatim and resolved at execution time.'),
20
20
  forEach: z
21
21
  .string()
22
22
  .optional()
@@ -25,10 +25,11 @@ const StepInputSchema = z
25
25
  .describe('A single workflow step with server, tool, and optional params/metadata.');
26
26
  export const workflowCreate = tool('workflow_create', {
27
27
  title: 'Create Workflow',
28
- description: 'Write a new permanent workflow YAML to the categories/<slugified-category>/ directory. ' +
29
- 'Rejects if name@version already exists in the index use a different version to update. ' +
30
- 'The server stamps created_date and last_updated_date automatically. ' +
31
- 'Rebuilds the index after writing. Template placeholders in params ({{input.foo}}) are stored verbatim.',
28
+ description: 'Create and durably store a new permanent workflow. ' +
29
+ 'Rejects the write when the same name and version already exist bump the version to store a revision alongside the existing one. ' +
30
+ 'Created and last-updated dates are stamped automatically. ' +
31
+ 'Template placeholders like {{input.foo}} in step params are stored verbatim, not resolved. ' +
32
+ 'New workflows appear in workflow_list and are retrievable with workflow_get.',
32
33
  annotations: { readOnlyHint: false, idempotentHint: false, openWorldHint: false },
33
34
  input: z.object({
34
35
  name: z
@@ -46,7 +47,7 @@ export const workflowCreate = tool('workflow_create', {
46
47
  category: z
47
48
  .string()
48
49
  .min(1)
49
- .describe('Category name (e.g. "Git Operations"). Used to determine the storage directory. Must not be blank or whitespace-only.'),
50
+ .describe('Category name (e.g. "Git Operations") used to group the workflow. Must not be blank or whitespace-only.'),
50
51
  tags: z.array(z.string()).optional().describe('Free-form tags for filtering.'),
51
52
  steps: z
52
53
  .array(StepInputSchema)
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-create.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-create.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAE9F,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC7D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACtE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACpE,IAAI,EAAE,CA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CAAC,CACpD,CAAC;YACF,wDAAwD;YACxD,MAAM,OAAO,GACX,GAAG,YAAY,KAAK;gBAClB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;gBAClD,CAAC,CAAC,qBAAqB,CAAC;YAC5B,MAAM,GAAG,CAAC,IAAI,CAAC,cAAc,EAAE,6BAA6B,OAAO,EAAE,EAAE;gBACrE,GAAG,GAAG,CAAC,WAAW,CAAC,cAAc,CAAC;aACnC,CAAC,CAAC;QACL,CAAC;QAED,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACxC,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,QAAQ;SACT,CAAC,CAAC;QAEH,OAAO;YACL,MAAM,EAAE,SAAkB;YAC1B,QAAQ;YACR,GAAG,EAAE,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,OAAO,EAAE;YAC3C,YAAY,EAAE,KAAK;YACnB,iBAAiB,EAAE,KAAK;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,MAAM;QACX,OAAO;YACL;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE;oBACJ,qBAAqB;oBACrB,eAAe,MAAM,CAAC,MAAM,EAAE;oBAC9B,YAAY,MAAM,CAAC,GAAG,EAAE;oBACxB,aAAa,MAAM,CAAC,QAAQ,EAAE;oBAC9B,gBAAgB,MAAM,CAAC,YAAY,EAAE;oBACrC,gBAAgB,MAAM,CAAC,iBAAiB,EAAE;iBAC3C,CAAC,IAAI,CAAC,IAAI,CAAC;aACb;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"workflow-create.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-create.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IA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AkB;YAC1B,QAAQ;YACR,GAAG,EAAE,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,OAAO,EAAE;YAC3C,YAAY,EAAE,KAAK;YACnB,iBAAiB,EAAE,KAAK;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,MAAM;QACX,OAAO;YACL;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE;oBACJ,qBAAqB;oBACrB,eAAe,MAAM,CAAC,MAAM,EAAE;oBAC9B,YAAY,MAAM,CAAC,GAAG,EAAE;oBACxB,aAAa,MAAM,CAAC,QAAQ,EAAE;oBAC9B,gBAAgB,MAAM,CAAC,YAAY,EAAE;oBACrC,gBAAgB,MAAM,CAAC,iBAAiB,EAAE;iBAC3C,CAAC,IAAI,CAAC,IAAI,CAAC;aACb;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @fileoverview Tool definition for deleting a permanent workflow by name and version.
3
+ * @module mcp-server/tools/definitions/workflow-delete
4
+ */
5
+ import { z } from '@cyanheads/mcp-ts-core';
6
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
7
+ export declare const workflowDelete: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
8
+ name: z.ZodString;
9
+ version: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ status: z.ZodLiteral<"deleted">;
12
+ name: z.ZodString;
13
+ version: z.ZodString;
14
+ }, z.core.$strip>, readonly [{
15
+ readonly reason: "not_found";
16
+ readonly code: JsonRpcErrorCode.NotFound;
17
+ readonly when: "No permanent workflow matches the given name, or the given name and version.";
18
+ readonly recovery: "Use workflow_list to see available workflow names and versions, then retry; omit version to target the latest.";
19
+ }, {
20
+ readonly reason: "temp_not_allowed";
21
+ readonly code: JsonRpcErrorCode.ValidationError;
22
+ readonly when: "The resolved workflow is temporary, and temporary workflows cannot be deleted.";
23
+ readonly recovery: "Leave temporary workflows to expire on their own — only permanent workflows can be deleted here.";
24
+ }, {
25
+ readonly reason: "delete_failed";
26
+ readonly code: JsonRpcErrorCode.InternalError;
27
+ readonly when: "Filesystem error while removing the workflow file, such as insufficient permissions.";
28
+ readonly recovery: "Check that the workflows directory is writable, then retry the deletion.";
29
+ }, {
30
+ readonly reason: "index_unavailable";
31
+ readonly code: JsonRpcErrorCode.ServiceUnavailable;
32
+ readonly when: "The workflow index has not finished building yet.";
33
+ readonly recovery: "Retry after the server has finished initializing its workflow index.";
34
+ }], undefined>;
35
+ //# sourceMappingURL=workflow-delete.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-delete.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-delete.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuHzB,CAAC"}