@cyanheads/workflows-mcp-server 0.1.1 → 0.1.2

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/CLAUDE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** @cyanheads/workflows-mcp-server
4
- **Version:** 0.1.1
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.11`
4
+ **Version:** 0.1.2
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.10.6`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
8
8
  **Zod:** ^4.4.3
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.1.1-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/workflows-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/workflows-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/workflows-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.2-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.1.2-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/workflows-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/workflows-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/workflows-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.2-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -114,7 +114,7 @@ Add the following to your MCP client configuration file:
114
114
  ```json
115
115
  {
116
116
  "mcpServers": {
117
- "workflows": {
117
+ "workflows-mcp-server": {
118
118
  "type": "stdio",
119
119
  "command": "bunx",
120
120
  "args": ["@cyanheads/workflows-mcp-server@latest"],
@@ -132,7 +132,7 @@ Or with npx (no Bun required):
132
132
  ```json
133
133
  {
134
134
  "mcpServers": {
135
- "workflows": {
135
+ "workflows-mcp-server": {
136
136
  "type": "stdio",
137
137
  "command": "npx",
138
138
  "args": ["-y", "@cyanheads/workflows-mcp-server@latest"],
@@ -150,7 +150,7 @@ Or with Docker:
150
150
  ```json
151
151
  {
152
152
  "mcpServers": {
153
- "workflows": {
153
+ "workflows-mcp-server": {
154
154
  "type": "stdio",
155
155
  "command": "docker",
156
156
  "args": [
@@ -0,0 +1,29 @@
1
+ ---
2
+ summary: "Maintenance: @cyanheads/mcp-ts-core ^0.9.11 → ^0.10.6; bad-input write paths recode to ValidationError; server name/title identity; post-pack bundle cleaner; .mcpbignore dev-dir re-anchor."
3
+ breaking: false
4
+ ---
5
+
6
+ # 0.1.2 — 2026-06-11
7
+
8
+ Framework upgrade to `@cyanheads/mcp-ts-core ^0.10.6` plus the maintenance adoptions it brings, and a DX recode of the workflow-write error contracts.
9
+
10
+ ## Added
11
+
12
+ - **`scripts/clean-mcpb.ts`** — post-pack `.mcpb` cleaner wired into `bundle`: runs `mcpb clean` (dev-dependency prune + manifest validation) then strips dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, stray `SKILL.md`) nested under `node_modules/` that root-anchored `.mcpbignore` patterns cannot reach.
13
+ - **`format:unsafe`** script — `biome check --write --unsafe .`; `format` now runs the safe `biome check --write .`.
14
+
15
+ ## Changed
16
+
17
+ - **`workflow_create` / `workflow_create_temp`** — blank/whitespace-only category and name-slug validation failures (`name_too_long`, `invalid_name`) now throw the new `invalid_input` contract (`ValidationError`) instead of `write_failed` (`InternalError`); these are bad input, not server faults. `write_failed` is narrowed to genuine filesystem errors (permissions, disk full).
18
+ - **Server identity** — `createApp()` now sets `name` and `title` to `workflows-mcp-server` explicitly, so the display name no longer falls back to the npm scope.
19
+ - **`.mcpbignore`** — dev-directory patterns root-anchored (`/skills/`, `/.agents/`, `/.claude/`, `/Dockerfile`, `/bun.lock`, …) so they match only at the bundle root.
20
+ - **`bundle`** script chains `clean-mcpb.ts` after `mcpb pack`.
21
+ - **Client config display name** — README install snippets and the plugin manifests use the package name (`@cyanheads/workflows-mcp-server` in npm args; `workflows-mcp-server` as the MCP server key).
22
+
23
+ ## Dependencies
24
+
25
+ - `@cyanheads/mcp-ts-core` ^0.9.11 → ^0.10.6
26
+ - `semver` ^7.8.1 → ^7.8.4
27
+ - `@types/node` ^25.9.1 → ^25.9.3
28
+ - `@vitest/coverage-istanbul` ^4.1.7 → ^4.1.8
29
+ - `vitest` ^4.1.7 → ^4.1.8
@@ -43,7 +43,7 @@ security: false
43
43
  name the symbol, state what changed, stop. Use a second sentence only when
44
44
  it carries weight. If a bullet feels long, it is.
45
45
 
46
- Cut: mechanism walkthroughs (those belong in JSDoc, AGENTS.md, or the
46
+ Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
47
47
  relevant skill), ceremonial framings ("This release introduces…",
48
48
  backwards-compat paragraphs), file-by-file test enumerations, internal
49
49
  implementation notes. Prefer code/symbol names over English re-explanations.
package/dist/index.js CHANGED
@@ -9,6 +9,8 @@ import { getServerConfig } from './config/server-config.js';
9
9
  import { allToolDefinitions } from './mcp-server/tools/definitions/index.js';
10
10
  import { initWorkflowIndexService } from './services/workflow-index/workflow-index-service.js';
11
11
  await createApp({
12
+ name: 'workflows-mcp-server',
13
+ title: 'workflows-mcp-server',
12
14
  tools: allToolDefinitions,
13
15
  resources: [],
14
16
  prompts: [],
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAE/F,MAAM,SAAS,CAAC;IACd,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EACV,qFAAqF;QACrF,gFAAgF;QAChF,yGAAyG;IAE3G,KAAK,CAAC,IAAI;QACR,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;QAE9B,kDAAkD;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;QAEnE,sEAAsE;QACtE,wCAAwC;QACxC,MAAM,sBAAsB,GAAG,GAAG,CAAC,sBAAsB,CAAC,IAAI,EAAE;YAC9D,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,CA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AAC,CAAC;QAEtD,wBAAwB,CACtB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,OAAO,EACZ,YAAY,EACZ,sBAAsB,EACtB,GAAG,CAAC,iBAAiB,CACtB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -29,6 +29,11 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
29
29
  created_date: import("zod").ZodString;
30
30
  last_updated_date: import("zod").ZodString;
31
31
  }, import("zod/v4/core").$strip>, readonly [{
32
+ readonly reason: "invalid_input";
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, or a name that slugifies to empty or exceeds the filename length limit.";
35
+ readonly recovery: "Provide a non-blank category and a workflow name that contains alphanumeric characters and stays under 200 characters after slugification.";
36
+ }, {
32
37
  readonly reason: "already_exists";
33
38
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
34
39
  readonly when: "A permanent workflow with this name@version already exists in the index.";
@@ -36,9 +41,9 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
36
41
  }, {
37
42
  readonly reason: "write_failed";
38
43
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
39
- readonly when: "Filesystem write error (permissions, disk full, or name too long).";
40
- readonly recovery: "Check that the workflows directory is writable, has sufficient disk space, and that the workflow name is not excessively long.";
41
- }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
44
+ readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
45
+ readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
46
+ }], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
42
47
  name: import("zod").ZodString;
43
48
  version: import("zod").ZodString;
44
49
  description: import("zod").ZodString;
@@ -60,11 +65,16 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
60
65
  created_date: import("zod").ZodString;
61
66
  last_updated_date: import("zod").ZodString;
62
67
  }, 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
+ }, {
63
73
  readonly reason: "write_failed";
64
74
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
65
- readonly when: "Filesystem write error (permissions, disk full, or name too long).";
66
- readonly recovery: "Check that the workflows directory is writable, has sufficient disk space, and that the workflow name is not excessively long.";
67
- }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
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<{
68
78
  name: import("zod").ZodString;
69
79
  version: import("zod").ZodOptional<import("zod").ZodString>;
70
80
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -108,7 +118,7 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
108
118
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
109
119
  readonly when: "The workflow index has not finished building yet.";
110
120
  readonly recovery: "Retry after the server has finished initializing its workflow index.";
111
- }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
121
+ }], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
112
122
  category: import("zod").ZodOptional<import("zod").ZodString>;
113
123
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
114
124
  includeTools: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -128,5 +138,5 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
128
138
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
129
139
  readonly when: "The workflow index has not finished building yet.";
130
140
  readonly recovery: "Retry after the server has finished initializing its workflow index.";
131
- }]>)[];
141
+ }], undefined>)[];
132
142
  //# sourceMappingURL=index.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkE,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,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkE,CAAC"}
@@ -26,9 +26,14 @@ export declare const workflowCreateTemp: import("@cyanheads/mcp-ts-core").ToolDe
26
26
  created_date: z.ZodString;
27
27
  last_updated_date: z.ZodString;
28
28
  }, z.core.$strip>, readonly [{
29
+ readonly reason: "invalid_input";
30
+ readonly code: JsonRpcErrorCode.ValidationError;
31
+ readonly when: "The workflow name passed schema validation but slugifies to empty or exceeds the filename length limit.";
32
+ readonly recovery: "Provide a workflow name that contains alphanumeric characters and stays under 200 characters after slugification.";
33
+ }, {
29
34
  readonly reason: "write_failed";
30
35
  readonly code: JsonRpcErrorCode.InternalError;
31
- readonly when: "Filesystem write error (permissions, disk full, or name too long).";
32
- readonly recovery: "Check that the workflows directory is writable, has sufficient disk space, and that the workflow name is not excessively long.";
33
- }]>;
36
+ readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
37
+ readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
38
+ }], undefined>;
34
39
  //# sourceMappingURL=workflow-create-temp.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-create-temp.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-create-temp.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwBjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;GAwH7B,CAAC"}
1
+ {"version":3,"file":"workflow-create-temp.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-create-temp.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwBjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgI7B,CAAC"}
@@ -53,11 +53,17 @@ export const workflowCreateTemp = tool('workflow_create_temp', {
53
53
  last_updated_date: z.string().describe('Date the workflow was last updated (YYYY-MM-DD).'),
54
54
  }),
55
55
  errors: [
56
+ {
57
+ reason: 'invalid_input',
58
+ code: JsonRpcErrorCode.ValidationError,
59
+ when: 'The workflow name passed schema validation but slugifies to empty or exceeds the filename length limit.',
60
+ recovery: 'Provide a workflow name that contains alphanumeric characters and stays under 200 characters after slugification.',
61
+ },
56
62
  {
57
63
  reason: 'write_failed',
58
64
  code: JsonRpcErrorCode.InternalError,
59
- when: 'Filesystem write error (permissions, disk full, or name too long).',
60
- recovery: 'Check that the workflows directory is writable, has sufficient disk space, and that the workflow name is not excessively long.',
65
+ when: 'Filesystem write error such as insufficient permissions or a full disk.',
66
+ recovery: 'Check that the workflows directory is writable and has sufficient disk space, then retry.',
61
67
  },
62
68
  ],
63
69
  async handler(input, ctx) {
@@ -89,7 +95,8 @@ export const workflowCreateTemp = tool('workflow_create_temp', {
89
95
  catch (err) {
90
96
  const reason = err._reason;
91
97
  if (err instanceof Error && (reason === 'name_too_long' || reason === 'invalid_name')) {
92
- throw ctx.fail('write_failed', err.message, { ...ctx.recoveryFor('write_failed') });
98
+ // Name-slug validation failures are bad input, not server faults.
99
+ throw ctx.fail('invalid_input', err.message, { ...ctx.recoveryFor('invalid_input') });
93
100
  }
94
101
  ctx.log.error('Failed to write temp workflow', err instanceof Error ? err : new Error(String(err)));
95
102
  const safeMsg = err instanceof Error
@@ -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;AAE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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,+BAA+B;oBAC/B,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;oBAC1C,6FAA6F;iBAC9F,CAAC,IAAI,CAAC,IAAI,CAAC;aACb;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
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;AAEjE,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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,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;oBAC1C,6FAA6F;iBAC9F,CAAC,IAAI,CAAC,IAAI,CAAC;aACb;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -27,6 +27,11 @@ export declare const workflowCreate: import("@cyanheads/mcp-ts-core").ToolDefini
27
27
  created_date: z.ZodString;
28
28
  last_updated_date: z.ZodString;
29
29
  }, z.core.$strip>, readonly [{
30
+ readonly reason: "invalid_input";
31
+ readonly code: JsonRpcErrorCode.ValidationError;
32
+ readonly when: "A field passed schema validation but is semantically invalid: a blank/whitespace-only category, or a name that slugifies to empty or exceeds the filename length limit.";
33
+ readonly recovery: "Provide a non-blank category and a workflow name that contains alphanumeric characters and stays under 200 characters after slugification.";
34
+ }, {
30
35
  readonly reason: "already_exists";
31
36
  readonly code: JsonRpcErrorCode.Conflict;
32
37
  readonly when: "A permanent workflow with this name@version already exists in the index.";
@@ -34,7 +39,7 @@ export declare const workflowCreate: import("@cyanheads/mcp-ts-core").ToolDefini
34
39
  }, {
35
40
  readonly reason: "write_failed";
36
41
  readonly code: JsonRpcErrorCode.InternalError;
37
- readonly when: "Filesystem write error (permissions, disk full, or name too long).";
38
- readonly recovery: "Check that the workflows directory is writable, has sufficient disk space, and that the workflow name is not excessively long.";
39
- }]>;
42
+ readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
43
+ readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
44
+ }], undefined>;
40
45
  //# sourceMappingURL=workflow-create.tool.d.ts.map
@@ -1 +1 @@
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;AAwBjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoJzB,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;AAwBjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4JzB,CAAC"}
@@ -58,6 +58,12 @@ export const workflowCreate = tool('workflow_create', {
58
58
  last_updated_date: z.string().describe('Date the workflow was last updated (YYYY-MM-DD).'),
59
59
  }),
60
60
  errors: [
61
+ {
62
+ reason: 'invalid_input',
63
+ code: JsonRpcErrorCode.ValidationError,
64
+ when: 'A field passed schema validation but is semantically invalid: a blank/whitespace-only category, or a name that slugifies to empty or exceeds the filename length limit.',
65
+ recovery: 'Provide a non-blank category and a workflow name that contains alphanumeric characters and stays under 200 characters after slugification.',
66
+ },
61
67
  {
62
68
  reason: 'already_exists',
63
69
  code: JsonRpcErrorCode.Conflict,
@@ -67,16 +73,16 @@ export const workflowCreate = tool('workflow_create', {
67
73
  {
68
74
  reason: 'write_failed',
69
75
  code: JsonRpcErrorCode.InternalError,
70
- when: 'Filesystem write error (permissions, disk full, or name too long).',
71
- recovery: 'Check that the workflows directory is writable, has sufficient disk space, and that the workflow name is not excessively long.',
76
+ when: 'Filesystem write error such as insufficient permissions or a full disk.',
77
+ recovery: 'Check that the workflows directory is writable and has sufficient disk space, then retry.',
72
78
  },
73
79
  ],
74
80
  async handler(input, ctx) {
75
81
  const svc = getWorkflowIndexService();
76
82
  // Reject whitespace-only category at the tool boundary (Zod min(1) passes " ").
77
83
  if (input.category.trim().length === 0) {
78
- throw ctx.fail('write_failed', 'Category must not be blank or whitespace-only.', {
79
- ...ctx.recoveryFor('write_failed'),
84
+ throw ctx.fail('invalid_input', 'Category must not be blank or whitespace-only.', {
85
+ ...ctx.recoveryFor('invalid_input'),
80
86
  });
81
87
  }
82
88
  const today = new Date().toISOString().slice(0, 10);
@@ -109,8 +115,9 @@ export const workflowCreate = tool('workflow_create', {
109
115
  throw ctx.fail('already_exists', `Workflow "${workflow.name}@${workflow.version}" already exists`, { ...ctx.recoveryFor('already_exists') });
110
116
  }
111
117
  if (err instanceof Error && (reason === 'name_too_long' || reason === 'invalid_name')) {
112
- // Surface name validation issues as write_failed with the service's message (no path leak).
113
- throw ctx.fail('write_failed', err.message, { ...ctx.recoveryFor('write_failed') });
118
+ // Name-slug validation failures are bad input, not server faults surface as
119
+ // ValidationError with the service's message (no path leak).
120
+ throw ctx.fail('invalid_input', err.message, { ...ctx.recoveryFor('invalid_input') });
114
121
  }
115
122
  ctx.log.error('Failed to write workflow', err instanceof Error ? err : new Error(String(err)));
116
123
  // Strip filesystem paths from the user-visible message.
@@ -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;AAEjE,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,CAA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wD;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,IAAI,EAAE,CAAC,EAAE,MAAM,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,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"}
@@ -48,5 +48,5 @@ export declare const workflowGet: import("@cyanheads/mcp-ts-core").ToolDefinitio
48
48
  readonly code: JsonRpcErrorCode.ServiceUnavailable;
49
49
  readonly when: "The workflow index has not finished building yet.";
50
50
  readonly recovery: "Retry after the server has finished initializing its workflow index.";
51
- }]>;
51
+ }], undefined>;
52
52
  //# sourceMappingURL=workflow-get.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-get.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-get.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuCjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2ItB,CAAC"}
1
+ {"version":3,"file":"workflow-get.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-get.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuCjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2ItB,CAAC"}
@@ -24,5 +24,5 @@ export declare const workflowList: import("@cyanheads/mcp-ts-core").ToolDefiniti
24
24
  readonly code: JsonRpcErrorCode.ServiceUnavailable;
25
25
  readonly when: "The workflow index has not finished building yet.";
26
26
  readonly recovery: "Retry after the server has finished initializing its workflow index.";
27
- }]>;
27
+ }], undefined>;
28
28
  //# sourceMappingURL=workflow-list.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-list.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-list.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,YAAY;;;;;;;;;;;;;;;;;;;;GAyKvB,CAAC"}
1
+ {"version":3,"file":"workflow-list.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/workflow-list.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,YAAY;;;;;;;;;;;;;;;;;;;;cAyKvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/workflows-mcp-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "mcpName": "io.github.cyanheads/workflows-mcp-server",
5
5
  "description": "Store, query, and create YAML workflow playbooks for LLM agents via MCP. STDIO or Streamable HTTP.",
6
6
  "type": "module",
@@ -27,10 +27,11 @@
27
27
  "audit:refresh": "rm -f bun.lock && bun install && bun audit",
28
28
  "tree": "bun run scripts/tree.ts",
29
29
  "list-skills": "bun run scripts/list-skills.ts",
30
- "format": "biome check --write --unsafe",
30
+ "format": "biome check --write .",
31
+ "format:unsafe": "biome check --write --unsafe .",
31
32
  "lint:mcp": "bun run scripts/lint-mcp.ts",
32
33
  "lint:packaging": "bun run scripts/lint-packaging.ts",
33
- "bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/workflows-mcp-server.mcpb",
34
+ "bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/workflows-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/workflows-mcp-server.mcpb",
34
35
  "changelog:build": "bun run scripts/build-changelog.ts",
35
36
  "changelog:check": "bun run scripts/build-changelog.ts --check",
36
37
  "publish-mcp": "mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish",
@@ -82,22 +83,22 @@
82
83
  "access": "public"
83
84
  },
84
85
  "dependencies": {
85
- "@cyanheads/mcp-ts-core": "^0.9.11",
86
+ "@cyanheads/mcp-ts-core": "^0.10.6",
86
87
  "pino-pretty": "^13.1.3",
87
- "semver": "^7.8.1",
88
+ "semver": "^7.8.4",
88
89
  "yaml": "^2.9.0",
89
90
  "zod": "^4.4.3"
90
91
  },
91
92
  "devDependencies": {
92
93
  "@biomejs/biome": "^2.4.16",
93
- "@types/node": "^25.9.1",
94
+ "@types/node": "^25.9.3",
94
95
  "@types/semver": "^7.7.1",
95
- "@vitest/coverage-istanbul": "^4.1.7",
96
+ "@vitest/coverage-istanbul": "^4.1.8",
96
97
  "depcheck": "^1.4.7",
97
98
  "fast-check": "^4.8.0",
98
99
  "ignore": "^7.0.5",
99
100
  "tsc-alias": "^1.8.17",
100
101
  "typescript": "^6.0.3",
101
- "vitest": "^4.1.7"
102
+ "vitest": "^4.1.8"
102
103
  }
103
104
  }
package/server.json CHANGED
@@ -6,14 +6,14 @@
6
6
  "url": "https://github.com/cyanheads/workflows-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.1.1",
9
+ "version": "0.1.2",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "registryBaseUrl": "https://registry.npmjs.org",
14
14
  "identifier": "@cyanheads/workflows-mcp-server",
15
15
  "runtimeHint": "bun",
16
- "version": "0.1.1",
16
+ "version": "0.1.2",
17
17
  "packageArguments": [
18
18
  { "type": "positional", "value": "run" },
19
19
  { "type": "positional", "value": "start:stdio" }
@@ -57,7 +57,7 @@
57
57
  "registryBaseUrl": "https://registry.npmjs.org",
58
58
  "identifier": "@cyanheads/workflows-mcp-server",
59
59
  "runtimeHint": "bun",
60
- "version": "0.1.1",
60
+ "version": "0.1.2",
61
61
  "packageArguments": [
62
62
  { "type": "positional", "value": "run" },
63
63
  { "type": "positional", "value": "start:http" }