@cyanheads/workflows-mcp-server 0.2.0 → 0.3.1
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/AGENTS.md +364 -0
- package/CLAUDE.md +40 -51
- package/Dockerfile +30 -9
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/changelog/0.3.x/0.3.0.md +40 -0
- package/changelog/0.3.x/0.3.1.md +33 -0
- package/changelog/template.md +60 -19
- package/dist/mcp-server/tools/definitions/index.d.ts +75 -75
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/workflow-get.tool.d.ts +1 -1
- package/dist/services/workflow-index/workflow-index-service.d.ts.map +1 -1
- package/package.json +20 -17
- package/server.json +3 -3
package/AGENTS.md
ADDED
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
# Agent Protocol
|
|
2
|
+
|
|
3
|
+
**Server:** @cyanheads/workflows-mcp-server
|
|
4
|
+
**Version:** 0.3.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.5`
|
|
6
|
+
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
8
|
+
**Zod:** ^4.5.4
|
|
9
|
+
|
|
10
|
+
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## What's Next?
|
|
15
|
+
|
|
16
|
+
When the user asks what's next or needs direction, suggest options based on the current project state. Common next steps:
|
|
17
|
+
|
|
18
|
+
1. **Re-run the `setup` skill** — ensures CLAUDE.md, skills, structure, and metadata are populated and up to date with the current codebase
|
|
19
|
+
2. **Run the `design-mcp-server` skill** — if the tool/resource surface hasn't been mapped yet, work through domain design
|
|
20
|
+
3. **Add tools/resources/prompts** — scaffold new definitions using the `add-tool`, `add-app-tool`, `add-resource`, `add-prompt` skills
|
|
21
|
+
4. **Add services** — scaffold domain service integrations using the `add-service` skill
|
|
22
|
+
5. **Add tests** — scaffold tests for existing definitions using the `add-test` skill
|
|
23
|
+
6. **Field-test definitions** — exercise tools/resources/prompts with real inputs using the `field-test` skill, get a report of issues and pain points
|
|
24
|
+
7. **Run `devcheck`** — lint, format, typecheck, and security audit
|
|
25
|
+
8. **Run the `security-pass` skill** — audit handlers for MCP-specific security gaps: output injection, scope blast radius, input sinks, tenant isolation
|
|
26
|
+
9. **Run the `polish-docs-meta` skill** — finalize README, CHANGELOG, metadata, and agent protocol for shipping
|
|
27
|
+
10. **Run the `maintenance` skill** — investigate changelogs, adopt upstream changes, and sync skills after `bun update --latest`
|
|
28
|
+
|
|
29
|
+
Tailor suggestions to what's actually missing or stale — don't recite the full list every time.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Core Rules
|
|
34
|
+
|
|
35
|
+
- **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
|
|
36
|
+
- **Use `ctx.log`** for request-scoped logging. No `console` calls.
|
|
37
|
+
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
38
|
+
- **Need caller input?** Return `ctx.requestInput(...)`; the handler is re-entered with answers in `ctx.inputs`. Never await input mid-handler.
|
|
39
|
+
- **Secrets in env vars only** — never hardcoded.
|
|
40
|
+
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Patterns
|
|
45
|
+
|
|
46
|
+
### Tool
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
50
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
51
|
+
import { getWorkflowIndexService } from '@/services/workflow-index/workflow-index-service.js';
|
|
52
|
+
|
|
53
|
+
export const workflowList = tool('workflow_list', {
|
|
54
|
+
description: 'List all permanent workflows in the index. Supports optional filtering by category and tags (AND match).',
|
|
55
|
+
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
|
|
56
|
+
input: z.object({
|
|
57
|
+
category: z.string().optional().describe('Filter by category (case-insensitive substring).'),
|
|
58
|
+
tags: z.array(z.string()).optional().describe('Filter to workflows that have ALL of these tags.'),
|
|
59
|
+
includeTools: z.boolean().optional().describe('When true, include unique server/tool pairs per workflow.'),
|
|
60
|
+
}),
|
|
61
|
+
output: z.object({
|
|
62
|
+
workflows: z.array(z.object({ name: z.string().describe('Workflow name.'), /* ... */ })).describe('Matching workflows.'),
|
|
63
|
+
totalCount: z.number().describe('Total number of matching workflows.'),
|
|
64
|
+
}),
|
|
65
|
+
errors: [
|
|
66
|
+
{ reason: 'index_unavailable', code: JsonRpcErrorCode.ServiceUnavailable,
|
|
67
|
+
when: 'The workflow index has not finished building yet.',
|
|
68
|
+
recovery: 'Retry after the server has finished initializing its workflow index.' },
|
|
69
|
+
],
|
|
70
|
+
handler(input, ctx) {
|
|
71
|
+
const svc = getWorkflowIndexService();
|
|
72
|
+
if (!svc.ready) throw ctx.fail('index_unavailable', 'Index not ready', ctx.recoveryFor('index_unavailable'));
|
|
73
|
+
// ... filter and return results
|
|
74
|
+
return { workflows: [], totalCount: 0 };
|
|
75
|
+
},
|
|
76
|
+
format: (result) => [{ type: 'text', text: `**Total:** ${result.totalCount}` }],
|
|
77
|
+
});
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Server config
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
// src/config/server-config.ts — lazy-parsed, separate from framework config
|
|
84
|
+
import { z } from '@cyanheads/mcp-ts-core';
|
|
85
|
+
import { parseEnvConfig } from '@cyanheads/mcp-ts-core/config';
|
|
86
|
+
|
|
87
|
+
const ServerConfigSchema = z.object({
|
|
88
|
+
workflowsDir: z
|
|
89
|
+
.string()
|
|
90
|
+
.default('./workflows-yaml')
|
|
91
|
+
.describe('Absolute or relative path to the workflows root directory'),
|
|
92
|
+
globalInstructionsPath: z
|
|
93
|
+
.string()
|
|
94
|
+
.default('')
|
|
95
|
+
.describe('Path to the global instructions markdown file. Empty string means derive from WORKFLOWS_DIR.'),
|
|
96
|
+
watcherDebounceMs: z.coerce
|
|
97
|
+
.number()
|
|
98
|
+
.default(500)
|
|
99
|
+
.describe('Milliseconds to debounce filesystem change events before rebuilding the index'),
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
let _config: z.infer<typeof ServerConfigSchema> | undefined;
|
|
103
|
+
export function getServerConfig() {
|
|
104
|
+
_config ??= parseEnvConfig(ServerConfigSchema, {
|
|
105
|
+
workflowsDir: 'WORKFLOWS_DIR',
|
|
106
|
+
globalInstructionsPath: 'GLOBAL_INSTRUCTIONS_PATH',
|
|
107
|
+
watcherDebounceMs: 'WATCHER_DEBOUNCE_MS',
|
|
108
|
+
});
|
|
109
|
+
return _config;
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
`parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`WORKFLOWS_DIR`) not the path (`workflowsDir`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
|
|
114
|
+
|
|
115
|
+
For env booleans use `z.stringbool()`, never `z.coerce.boolean()` — `Boolean("false")` is `true`, so a coerced flag can't be disabled through the environment. `z.stringbool()` parses `true/false/1/0/yes/no/on/off` and rejects anything else, so `=false` actually disables.
|
|
116
|
+
|
|
117
|
+
### Server identity
|
|
118
|
+
|
|
119
|
+
Framework identity (`name`, `version`, `description`, `keywords`) and a relative `LOGS_DIR` resolve against the **application root** — the nearest `package.json` at or above the process entry module — never the launching client's working directory. Server-specific paths like `WORKFLOWS_DIR` are this server's own config and still resolve against `process.cwd()`, so a relative default points at the caller's workflow library rather than the installed package.
|
|
120
|
+
|
|
121
|
+
`createApp()` declares `name` + `title` only. `description`, `version`, and `keywords` derive from `package.json` — restating them in the call is drift, not configuration. `instructions` is optional server-level orientation sent on every `initialize`; use it for deployment guidance instead of repeating the same context across tool descriptions.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Context
|
|
126
|
+
|
|
127
|
+
Handlers receive a unified `ctx` object. Key properties:
|
|
128
|
+
|
|
129
|
+
| Property | Description |
|
|
130
|
+
|:---------|:------------|
|
|
131
|
+
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
|
|
132
|
+
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
133
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present, but a 2025-era HTTP client cannot answer under `MCP_SESSION_MODE=stateless` — treat an unanswered round as terminal, never as consent. |
|
|
134
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
135
|
+
| `ctx.enrich` | Success-path agent context that reaches both `structuredContent` and `content[]` when the definition declares an `enrichment` block. |
|
|
136
|
+
| `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
|
|
137
|
+
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
138
|
+
| `ctx.requestId` | Unique request ID. |
|
|
139
|
+
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
140
|
+
| `ctx.fail` | Typed error factory for declared error contracts — `ctx.fail('reason', msg, ctx.recoveryFor('reason'))`. |
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Errors
|
|
145
|
+
|
|
146
|
+
Handlers throw — the framework catches, classifies, and formats.
|
|
147
|
+
|
|
148
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) and is the single source of truth for the agent's next move. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override it explicitly when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
errors: [
|
|
152
|
+
{ reason: 'no_match', code: JsonRpcErrorCode.NotFound,
|
|
153
|
+
when: 'No item matched the query',
|
|
154
|
+
recovery: 'Broaden the query or check the spelling and try again.' },
|
|
155
|
+
],
|
|
156
|
+
async handler(input, ctx) {
|
|
157
|
+
const item = await db.find(input.id);
|
|
158
|
+
if (!item) throw ctx.fail('no_match', `No item ${input.id}`);
|
|
159
|
+
return item;
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Declare contracts inline on each tool.** The contract is part of the tool's public surface — one file should give the full picture. Don't extract a shared `errors[]` constant; per-tool repetition is the intended cost of locality.
|
|
164
|
+
|
|
165
|
+
**Fallback (no contract entry fits):** throw via factories or plain `Error`.
|
|
166
|
+
|
|
167
|
+
```ts
|
|
168
|
+
// Error factories — explicit code
|
|
169
|
+
import { notFound, serviceUnavailable } from '@cyanheads/mcp-ts-core/errors';
|
|
170
|
+
throw notFound('Item not found', { itemId });
|
|
171
|
+
throw serviceUnavailable('API unavailable', { url }, { cause: err });
|
|
172
|
+
|
|
173
|
+
// Plain Error — framework auto-classifies from message patterns
|
|
174
|
+
throw new Error('Item not found'); // → NotFound
|
|
175
|
+
throw new Error('Invalid query format'); // → ValidationError
|
|
176
|
+
|
|
177
|
+
// McpError — when no factory exists for the code
|
|
178
|
+
import { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
179
|
+
throw new McpError(JsonRpcErrorCode.DatabaseError, 'Connection failed', { pool: 'primary' });
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
See framework CLAUDE.md and the `api-errors` skill for the full auto-classification table, all available factories, and the contract reference.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Structure
|
|
187
|
+
|
|
188
|
+
```text
|
|
189
|
+
src/
|
|
190
|
+
index.ts # createApp() entry point — registers tools, inits WorkflowIndexService
|
|
191
|
+
config/
|
|
192
|
+
server-config.ts # Server-specific env vars (WORKFLOWS_DIR, GLOBAL_INSTRUCTIONS_PATH, WATCHER_DEBOUNCE_MS)
|
|
193
|
+
services/
|
|
194
|
+
workflow-index/
|
|
195
|
+
workflow-index-service.ts # WorkflowIndexService — index build, watcher, semver lookup, write helpers
|
|
196
|
+
types.ts # ParsedWorkflow, WorkflowEntry, WorkflowIndex types
|
|
197
|
+
mcp-server/
|
|
198
|
+
tools/definitions/
|
|
199
|
+
workflow-list.tool.ts # workflow_list — list permanent workflows with filters
|
|
200
|
+
workflow-get.tool.ts # workflow_get — retrieve full workflow + global instructions
|
|
201
|
+
workflow-create.tool.ts # workflow_create — write permanent workflow YAML
|
|
202
|
+
workflow-create-temp.tool.ts # workflow_create_temp — write temporary workflow
|
|
203
|
+
index.ts # Barrel export
|
|
204
|
+
workflows-yaml/ # Workflow library root (configurable via WORKFLOWS_DIR)
|
|
205
|
+
categories/ # Permanent workflows organized by category
|
|
206
|
+
temp/ # Temporary workflows (gitignored)
|
|
207
|
+
global_instructions.md # Global instructions injected into every workflow_get response
|
|
208
|
+
_index.json # Auto-generated snapshot (gitignored)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Naming
|
|
214
|
+
|
|
215
|
+
| What | Convention | Example |
|
|
216
|
+
|:-----|:-----------|:--------|
|
|
217
|
+
| Files | kebab-case with suffix | `search-docs.tool.ts` |
|
|
218
|
+
| Tool/resource/prompt names | snake_case | `search_docs` |
|
|
219
|
+
| Directories | kebab-case | `src/services/doc-search/` |
|
|
220
|
+
| Descriptions | Single string or template literal, no `+` concatenation | `'Search items by query and filter.'` |
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## Skills
|
|
225
|
+
|
|
226
|
+
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
|
|
227
|
+
|
|
228
|
+
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
229
|
+
|
|
230
|
+
Available skills:
|
|
231
|
+
|
|
232
|
+
| Skill | Purpose |
|
|
233
|
+
|:------|:--------|
|
|
234
|
+
| `setup` | Post-init project orientation |
|
|
235
|
+
| `design-mcp-server` | Design tool surface, resources, and services for a new server |
|
|
236
|
+
| `add-tool` | Scaffold a new tool definition |
|
|
237
|
+
| `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
|
|
238
|
+
| `add-resource` | Scaffold a new resource definition |
|
|
239
|
+
| `add-prompt` | Scaffold a new prompt definition |
|
|
240
|
+
| `add-service` | Scaffold a new service integration |
|
|
241
|
+
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
242
|
+
| `add-export` | Add or evolve a public framework export without leaking internal module paths |
|
|
243
|
+
| `add-provider` | Add a provider integration with config, lifecycle, errors, and tests |
|
|
244
|
+
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
245
|
+
| `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
|
|
246
|
+
| `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
|
|
247
|
+
| `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
|
|
248
|
+
| `techniques` | Catalog of response/data-shaping techniques — overflow handling, payload shaping, retrieval patterns |
|
|
249
|
+
| `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
|
|
250
|
+
| `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
|
|
251
|
+
| `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
|
|
252
|
+
| `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
|
|
253
|
+
| `orchestrations` | Chain task skills into a gated multi-phase pipeline when sub-agents are available |
|
|
254
|
+
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
255
|
+
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
256
|
+
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
257
|
+
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
258
|
+
| `api-config` | AppConfig, parseConfig, env vars |
|
|
259
|
+
| `api-context` | Context interface, logger, state, and multi-round-trip input |
|
|
260
|
+
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
261
|
+
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
262
|
+
| `api-mirror` | MirrorService for a persistent, self-refreshing local mirror of a bulk upstream dataset |
|
|
263
|
+
| `api-services` | LLM, Speech, Graph services |
|
|
264
|
+
| `api-testing` | createMockContext, fixtures, fetch mocks, and definition contract tests |
|
|
265
|
+
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
266
|
+
| `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
|
|
267
|
+
| `api-workers` | Cloudflare Workers runtime |
|
|
268
|
+
|
|
269
|
+
When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-03-11`).
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## Commands
|
|
274
|
+
|
|
275
|
+
| Command | Purpose |
|
|
276
|
+
|:--------|:--------|
|
|
277
|
+
| `bun run build` | Compile TypeScript |
|
|
278
|
+
| `bun run rebuild` | Clean + build |
|
|
279
|
+
| `bun run clean` | Remove build artifacts |
|
|
280
|
+
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
281
|
+
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, re-audit. Use when `devcheck` flags a transitive advisory — stale lockfile can mask already-patched deps. If advisory survives, it's real. |
|
|
282
|
+
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
283
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
284
|
+
| `bun run list-skills` | Print the skill registry |
|
|
285
|
+
| `bun run tree` | Generate directory structure doc |
|
|
286
|
+
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
287
|
+
| `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
288
|
+
| `bun run test` | Run tests (Vitest — use `bun run test`, not `bun test`) |
|
|
289
|
+
| `bun run test:coverage` | Run tests with Istanbul coverage |
|
|
290
|
+
| `bun run start:stdio` | Production mode (stdio) |
|
|
291
|
+
| `bun run start:http` | Production mode (HTTP) |
|
|
292
|
+
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
293
|
+
| `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
|
|
294
|
+
| `bun run bundle` | Build and pack as `.mcpb` for one-click Claude Desktop install |
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## Bundling
|
|
299
|
+
|
|
300
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
301
|
+
|
|
302
|
+
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
303
|
+
|
|
304
|
+
**README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## Changelog
|
|
309
|
+
|
|
310
|
+
Directory-based, grouped by minor series via the `.x` semver-wildcard convention. Source of truth: `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.1.x/0.1.0.md`) — one file per release, shipped in the npm package. At release, author the per-version file with a concrete version and date, then run `bun run changelog:build` to regenerate the rollup. `changelog/template.md` is a **pristine format reference** — never edited or moved; read it for the frontmatter + section layout when scaffolding. `CHANGELOG.md` is a **navigation index** (header + link + summary per version), regenerated by `bun run changelog:build` — devcheck hard-fails on drift; never hand-edit it.
|
|
311
|
+
|
|
312
|
+
Each per-version file opens with YAML frontmatter:
|
|
313
|
+
|
|
314
|
+
```markdown
|
|
315
|
+
---
|
|
316
|
+
summary: "One-line headline, ≤350 chars" # required — powers the rollup index
|
|
317
|
+
breaking: false # optional — true flags breaking changes
|
|
318
|
+
security: false # optional — true ONLY for a source-code security fix, never a dependency CVE bump
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
# 0.1.0 — YYYY-MM-DD
|
|
322
|
+
...
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section — set it only for a security fix in this server's *own source code*, never for a routine dependency or transitive CVE bump (record those under `## Dependencies`). When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
326
|
+
|
|
327
|
+
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
328
|
+
|
|
329
|
+
**Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
|
|
330
|
+
|
|
331
|
+
**Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## Imports
|
|
336
|
+
|
|
337
|
+
```ts
|
|
338
|
+
// Framework — z is re-exported, no separate zod import needed
|
|
339
|
+
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
340
|
+
import { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
341
|
+
|
|
342
|
+
// Server's own code — via path alias
|
|
343
|
+
import { getMyService } from '@/services/my-domain/my-service.js';
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
## Checklist
|
|
349
|
+
|
|
350
|
+
- [ ] Zod schemas: all fields have `.describe()`, only JSON-Schema-serializable types (no `z.custom()`, `z.date()`, `z.transform()`, `z.bigint()`, `z.symbol()`, `z.void()`, `z.map()`, `z.set()`, `z.function()`, `z.nan()`)
|
|
351
|
+
- [ ] Optional nested objects: handler guards for empty inner values from form-based clients (`if (input.obj?.field && ...)`, not just `if (input.obj)`). When regex/length constraints matter, use `z.union([z.literal(''), z.string().regex(...).describe(...)])` — literal variants are exempt from `describe-on-fields`.
|
|
352
|
+
- [ ] JSDoc `@fileoverview` + `@module` on every file
|
|
353
|
+
- [ ] `ctx.log` for logging, `ctx.state` for storage
|
|
354
|
+
- [ ] Handlers throw on failure — error factories or plain `Error`, no try/catch
|
|
355
|
+
- [ ] `format()` renders all data the LLM needs — different clients forward different surfaces (Claude Code → `structuredContent`, Claude Desktop → `content[]`); both must carry the same data
|
|
356
|
+
- [ ] If wrapping external API: raw/domain/output schemas reviewed against real upstream sparsity/nullability before finalizing required vs optional fields
|
|
357
|
+
- [ ] If wrapping external API: normalization and `format()` preserve uncertainty; do not fabricate facts from missing upstream data
|
|
358
|
+
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
359
|
+
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
360
|
+
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
361
|
+
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
362
|
+
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
363
|
+
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
|
|
364
|
+
- [ ] `bun run devcheck` passes
|
package/CLAUDE.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Agent Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** @cyanheads/workflows-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.
|
|
4
|
+
**Version:** 0.3.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.5`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/
|
|
8
|
-
**Zod:** ^4.4
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
8
|
+
**Zod:** ^4.5.4
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
|
|
|
35
35
|
- **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
|
|
36
36
|
- **Use `ctx.log`** for request-scoped logging. No `console` calls.
|
|
37
37
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
38
|
-
- **
|
|
38
|
+
- **Need caller input?** Return `ctx.requestInput(...)`; the handler is re-entered with answers in `ctx.inputs`. Never await input mid-handler.
|
|
39
39
|
- **Secrets in env vars only** — never hardcoded.
|
|
40
40
|
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
41
41
|
|
|
@@ -112,6 +112,14 @@ export function getServerConfig() {
|
|
|
112
112
|
|
|
113
113
|
`parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`WORKFLOWS_DIR`) not the path (`workflowsDir`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
|
|
114
114
|
|
|
115
|
+
For env booleans use `z.stringbool()`, never `z.coerce.boolean()` — `Boolean("false")` is `true`, so a coerced flag can't be disabled through the environment. `z.stringbool()` parses `true/false/1/0/yes/no/on/off` and rejects anything else, so `=false` actually disables.
|
|
116
|
+
|
|
117
|
+
### Server identity
|
|
118
|
+
|
|
119
|
+
Framework identity (`name`, `version`, `description`, `keywords`) and a relative `LOGS_DIR` resolve against the **application root** — the nearest `package.json` at or above the process entry module — never the launching client's working directory. Server-specific paths like `WORKFLOWS_DIR` are this server's own config and still resolve against `process.cwd()`, so a relative default points at the caller's workflow library rather than the installed package.
|
|
120
|
+
|
|
121
|
+
`createApp()` declares `name` + `title` only. `description`, `version`, and `keywords` derive from `package.json` — restating them in the call is drift, not configuration. `instructions` is optional server-level orientation sent on every `initialize`; use it for deployment guidance instead of repeating the same context across tool descriptions.
|
|
122
|
+
|
|
115
123
|
---
|
|
116
124
|
|
|
117
125
|
## Context
|
|
@@ -120,10 +128,15 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
120
128
|
|
|
121
129
|
| Property | Description |
|
|
122
130
|
|:---------|:------------|
|
|
123
|
-
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
|
|
131
|
+
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
|
|
132
|
+
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
133
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present, but a 2025-era HTTP client cannot answer under `MCP_SESSION_MODE=stateless` — treat an unanswered round as terminal, never as consent. |
|
|
134
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
135
|
+
| `ctx.enrich` | Success-path agent context that reaches both `structuredContent` and `content[]` when the definition declares an `enrichment` block. |
|
|
136
|
+
| `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
|
|
124
137
|
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
125
138
|
| `ctx.requestId` | Unique request ID. |
|
|
126
|
-
| `ctx.tenantId` | Tenant ID from JWT
|
|
139
|
+
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
127
140
|
| `ctx.fail` | Typed error factory for declared error contracts — `ctx.fail('reason', msg, ctx.recoveryFor('reason'))`. |
|
|
128
141
|
|
|
129
142
|
---
|
|
@@ -132,7 +145,7 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
132
145
|
|
|
133
146
|
Handlers throw — the framework catches, classifies, and formats.
|
|
134
147
|
|
|
135
|
-
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required
|
|
148
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) and is the single source of truth for the agent's next move. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override it explicitly when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
136
149
|
|
|
137
150
|
```ts
|
|
138
151
|
errors: [
|
|
@@ -210,7 +223,7 @@ workflows-yaml/ # Workflow library root (configurable vi
|
|
|
210
223
|
|
|
211
224
|
## Skills
|
|
212
225
|
|
|
213
|
-
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool.
|
|
226
|
+
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
|
|
214
227
|
|
|
215
228
|
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
216
229
|
|
|
@@ -226,25 +239,29 @@ Available skills:
|
|
|
226
239
|
| `add-prompt` | Scaffold a new prompt definition |
|
|
227
240
|
| `add-service` | Scaffold a new service integration |
|
|
228
241
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
242
|
+
| `add-export` | Add or evolve a public framework export without leaking internal module paths |
|
|
243
|
+
| `add-provider` | Add a provider integration with config, lifecycle, errors, and tests |
|
|
229
244
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
230
245
|
| `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
|
|
231
246
|
| `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
|
|
232
247
|
| `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
|
|
233
|
-
| `
|
|
248
|
+
| `techniques` | Catalog of response/data-shaping techniques — overflow handling, payload shaping, retrieval patterns |
|
|
234
249
|
| `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
|
|
235
250
|
| `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
|
|
236
251
|
| `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
|
|
237
252
|
| `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
|
|
253
|
+
| `orchestrations` | Chain task skills into a gated multi-phase pipeline when sub-agents are available |
|
|
238
254
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
239
255
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
240
256
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
241
257
|
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
242
258
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
243
|
-
| `api-context` | Context interface, logger, state,
|
|
259
|
+
| `api-context` | Context interface, logger, state, and multi-round-trip input |
|
|
244
260
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
245
261
|
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
262
|
+
| `api-mirror` | MirrorService for a persistent, self-refreshing local mirror of a bulk upstream dataset |
|
|
246
263
|
| `api-services` | LLM, Speech, Graph services |
|
|
247
|
-
| `api-testing` | createMockContext,
|
|
264
|
+
| `api-testing` | createMockContext, fixtures, fetch mocks, and definition contract tests |
|
|
248
265
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
249
266
|
| `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
|
|
250
267
|
| `api-workers` | Cloudflare Workers runtime |
|
|
@@ -262,9 +279,14 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
262
279
|
| `bun run clean` | Remove build artifacts |
|
|
263
280
|
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
264
281
|
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, re-audit. Use when `devcheck` flags a transitive advisory — stale lockfile can mask already-patched deps. If advisory survives, it's real. |
|
|
282
|
+
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
283
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
284
|
+
| `bun run list-skills` | Print the skill registry |
|
|
265
285
|
| `bun run tree` | Generate directory structure doc |
|
|
266
|
-
| `bun run format` | Auto-fix formatting |
|
|
267
|
-
| `bun run
|
|
286
|
+
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
287
|
+
| `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
288
|
+
| `bun run test` | Run tests (Vitest — use `bun run test`, not `bun test`) |
|
|
289
|
+
| `bun run test:coverage` | Run tests with Istanbul coverage |
|
|
268
290
|
| `bun run start:stdio` | Production mode (stdio) |
|
|
269
291
|
| `bun run start:http` | Production mode (HTTP) |
|
|
270
292
|
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
@@ -275,44 +297,11 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
275
297
|
|
|
276
298
|
## Bundling
|
|
277
299
|
|
|
278
|
-
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
300
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
279
301
|
|
|
280
302
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
281
303
|
|
|
282
|
-
**README install badges
|
|
283
|
-
|
|
284
|
-
| Client | Mechanism |
|
|
285
|
-
|:-------|:----------|
|
|
286
|
-
| Claude Desktop | Browser downloads the `.mcpb` from the latest GitHub Release; OS file handler routes it to Claude Desktop, which opens the install dialog. No deep-link URL scheme yet — this is the canonical path. |
|
|
287
|
-
| Cursor | Official `https://cursor.com/en/install-mcp` endpoint with base64 JSON config. |
|
|
288
|
-
| VS Code / Insiders | Official `vscode:mcp/install?...` deep link, wrapped in `https://vscode.dev/redirect?url=` so GitHub-rendered markdown doesn't strip the non-HTTP scheme. |
|
|
289
|
-
| Claude Code / Codex | CLI only (`claude mcp add` / `codex mcp add`); no URL scheme. |
|
|
290
|
-
|
|
291
|
-
```markdown
|
|
292
|
-
[](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
|
|
293
|
-
[](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
|
|
294
|
-
[](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
Both install links route through HTTPS endpoints (`cursor.com/en/install-mcp` and `vscode.dev/redirect`) — GitHub-rendered markdown strips non-HTTP URL schemes from anchors, so a raw `cursor://` or `vscode:` link won't click through from github.com.
|
|
298
|
-
|
|
299
|
-
Generate the encoded configs (replace `<PACKAGE_NAME>` and add env vars for any required API keys):
|
|
300
|
-
|
|
301
|
-
```bash
|
|
302
|
-
# Cursor: base64-encoded JSON. Split command/args, add env when keys are needed.
|
|
303
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"],"env":{"API_KEY":"your-api-key"}}' | base64
|
|
304
|
-
# Without env (no required keys):
|
|
305
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"]}' | base64
|
|
306
|
-
|
|
307
|
-
# VS Code: URL-encoded JSON. Same shape plus a `name` field.
|
|
308
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"],env:{API_KEY:"your-api-key"}}))'
|
|
309
|
-
# Without env:
|
|
310
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"]}))'
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
Both clients use the same `{command, args, env}` shape (matching `mcp.json` schema). VS Code adds a top-level `name` field. Omit `env` entirely when no API keys are needed — don't include empty objects or framework-only vars like `MCP_TRANSPORT_TYPE`.
|
|
314
|
-
|
|
315
|
-
The Claude Desktop badge requires the bundle to ship with a stable filename — `bun run bundle` outputs `dist/<PACKAGE_NAME>.mcpb`, and `release-and-publish` attaches that file to the GitHub Release. `releases/latest/download/<PACKAGE_NAME>.mcpb` then redirects to the most recent release.
|
|
304
|
+
**README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
|
|
316
305
|
|
|
317
306
|
---
|
|
318
307
|
|
|
@@ -326,14 +315,14 @@ Each per-version file opens with YAML frontmatter:
|
|
|
326
315
|
---
|
|
327
316
|
summary: "One-line headline, ≤350 chars" # required — powers the rollup index
|
|
328
317
|
breaking: false # optional — true flags breaking changes
|
|
329
|
-
security: false # optional — true
|
|
318
|
+
security: false # optional — true ONLY for a source-code security fix, never a dependency CVE bump
|
|
330
319
|
---
|
|
331
320
|
|
|
332
321
|
# 0.1.0 — YYYY-MM-DD
|
|
333
322
|
...
|
|
334
323
|
```
|
|
335
324
|
|
|
336
|
-
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
325
|
+
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section — set it only for a security fix in this server's *own source code*, never for a routine dependency or transitive CVE bump (record those under `## Dependencies`). When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
337
326
|
|
|
338
327
|
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
339
328
|
|
package/Dockerfile
CHANGED
|
@@ -3,16 +3,28 @@
|
|
|
3
3
|
#
|
|
4
4
|
# This stage installs all dependencies (including dev), builds the TypeScript
|
|
5
5
|
# source code into JavaScript, and prepares the production assets.
|
|
6
|
+
#
|
|
7
|
+
# Pinned to $BUILDPLATFORM rather than the target platform: `bun run build` emits
|
|
8
|
+
# JavaScript, and only `dist/` crosses into the production stage, which runs its
|
|
9
|
+
# own target-arch install. Built for the target instead, the non-native leg of a
|
|
10
|
+
# `--platform linux/amd64,linux/arm64` build runs under QEMU, where bun >= 1.4
|
|
11
|
+
# aborts with a JavaScriptCore allocator assertion and fails the multi-arch push.
|
|
12
|
+
#
|
|
13
|
+
# The constraint this assumes: the build stage produces platform-independent
|
|
14
|
+
# output. A stage that compiles a native addon needs the target-arch toolchain
|
|
15
|
+
# and cannot cross-compile this way — drop the flag there.
|
|
6
16
|
# ==============================================================================
|
|
7
|
-
FROM oven/bun:1.
|
|
17
|
+
FROM --platform=$BUILDPLATFORM oven/bun:1.4.0 AS build
|
|
8
18
|
|
|
9
19
|
WORKDIR /usr/src/app
|
|
10
20
|
|
|
11
21
|
# Copy dependency manifests for optimized layer caching
|
|
12
22
|
COPY package.json bun.lock ./
|
|
13
23
|
|
|
14
|
-
# Install all dependencies (including dev dependencies for building)
|
|
15
|
-
|
|
24
|
+
# Install all dependencies (including dev dependencies for building).
|
|
25
|
+
# The BuildKit cache mount persists Bun's global package cache across builds.
|
|
26
|
+
RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
27
|
+
bun install --frozen-lockfile --ignore-scripts
|
|
16
28
|
|
|
17
29
|
# Copy the rest of the source code
|
|
18
30
|
COPY . .
|
|
@@ -28,7 +40,7 @@ RUN bun run build
|
|
|
28
40
|
# application. It uses a slim base image and only includes production
|
|
29
41
|
# dependencies and build artifacts.
|
|
30
42
|
# ==============================================================================
|
|
31
|
-
FROM oven/bun:1.
|
|
43
|
+
FROM oven/bun:1.4.0-slim AS production
|
|
32
44
|
|
|
33
45
|
WORKDIR /usr/src/app
|
|
34
46
|
|
|
@@ -37,24 +49,30 @@ WORKDIR /usr/src/app
|
|
|
37
49
|
ENV NODE_ENV=production
|
|
38
50
|
|
|
39
51
|
# OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
|
|
40
|
-
|
|
52
|
+
ARG APP_VERSION
|
|
53
|
+
LABEL org.opencontainers.image.title="workflows-mcp-server"
|
|
41
54
|
LABEL org.opencontainers.image.description="Store, query, and create YAML workflow playbooks for LLM agents via MCP."
|
|
42
55
|
LABEL org.opencontainers.image.source="https://github.com/cyanheads/workflows-mcp-server"
|
|
43
56
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
57
|
+
LABEL org.opencontainers.image.version="${APP_VERSION}"
|
|
58
|
+
LABEL io.modelcontextprotocol.server.name="io.github.cyanheads/workflows-mcp-server"
|
|
44
59
|
|
|
45
60
|
# Copy dependency manifests
|
|
46
61
|
COPY package.json bun.lock ./
|
|
47
62
|
|
|
48
63
|
# Install only production dependencies, ignoring any lifecycle scripts (like 'prepare')
|
|
49
|
-
# that are not needed in the final production image.
|
|
50
|
-
|
|
64
|
+
# that are not needed in the final production image. `--omit=peer` drops the
|
|
65
|
+
# framework's optional service/test tiers; runtime imports remain direct deps.
|
|
66
|
+
RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
67
|
+
bun install --production --omit=peer --frozen-lockfile --ignore-scripts
|
|
51
68
|
|
|
52
69
|
# Conditionally install OpenTelemetry optional peer dependencies (Tier 3).
|
|
53
70
|
# These are not bundled by default to keep the base image lean. Enable at build time
|
|
54
71
|
# with: docker build --build-arg OTEL_ENABLED=true
|
|
55
72
|
ARG OTEL_ENABLED=true
|
|
56
|
-
RUN
|
|
57
|
-
|
|
73
|
+
RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
74
|
+
if [ "$OTEL_ENABLED" = "true" ]; then \
|
|
75
|
+
bun add --omit=dev --omit=peer --ignore-scripts @hono/otel \
|
|
58
76
|
@opentelemetry/instrumentation-http \
|
|
59
77
|
@opentelemetry/exporter-metrics-otlp-http \
|
|
60
78
|
@opentelemetry/exporter-trace-otlp-http \
|
|
@@ -95,5 +113,8 @@ ENV MCP_FORCE_CONSOLE_LOGGING="true"
|
|
|
95
113
|
# Expose the port the server listens on
|
|
96
114
|
EXPOSE ${MCP_HTTP_PORT}
|
|
97
115
|
|
|
116
|
+
# Health check using a bun-native fetch (slim image ships no curl/wget)
|
|
117
|
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD bun -e "fetch('http://localhost:'+(process.env.MCP_HTTP_PORT??'3010')+'/healthz').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
|
118
|
+
|
|
98
119
|
# The command to start the server
|
|
99
120
|
CMD ["bun", "run", "dist/index.js"]
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@ Apache License
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Casey Hand @cyanheads
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/workflows-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/workflows-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -191,7 +191,7 @@ The repository ships a `workflows-yaml/` directory with example workflows organi
|
|
|
191
191
|
|
|
192
192
|
### Prerequisites
|
|
193
193
|
|
|
194
|
-
- [Bun v1.3.
|
|
194
|
+
- [Bun v1.3.0](https://bun.sh/) or higher (or Node.js v24+).
|
|
195
195
|
- A local directory containing YAML workflow files (or use the bundled `workflows-yaml/` seed).
|
|
196
196
|
|
|
197
197
|
### Installation
|
|
@@ -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`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Server identity now resolves from the served package instead of the caller's working directory, pre-init logs are no longer dropped, and MCP_SESSION_MODE settles to stateless. mcp-ts-core bumps to 0.12.5, zod to 4.5.4."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.3.1 — 2026-09-04
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **`.env.example` `MCP_SESSION_MODE`: `auto` → `stateless`**, matching the Docker image — this server declares no `ctx.requestInput` call sites and so needs no session-backed 2025-era elicitation shim. Verified: `GET /mcp` now advertises `sessionMode: "stateless"`.
|
|
12
|
+
- **Server identity resolves from the served package, not the caller's working directory** (mcp-ts-core 0.12.5) — `resolveAppRoot()` reads the nearest `package.json` above the process entry module. Verified: launched from a scratch directory whose own `package.json` declared an unrelated project, `GET /mcp` still returned this server's own name, version, and description.
|
|
13
|
+
- **Pre-init log records are replayed instead of dropped** (mcp-ts-core 0.12.5) — verified in the startup log: `createStorageProvider` and `OpenRouterProvider.constructor` records now appear despite predating `loggerInit`.
|
|
14
|
+
- A caller disconnect mid-call now classifies as `RequestCancelled` (-32011) rather than `InternalError`, and the HTTP transport answers 499 (mcp-ts-core 0.12.4).
|
|
15
|
+
- `manifest.json` `author.name`: `Casey Hand` → `cyanheads`, matching fleet convention.
|
|
16
|
+
- Dockerfile build stage carries a new comment explaining why it pins `$BUILDPLATFORM`.
|
|
17
|
+
- Skills and agent docs synced with mcp-ts-core 0.12.5 — 11 `skills/` files plus the `CLAUDE.md`/`AGENTS.md` templates.
|
|
18
|
+
|
|
19
|
+
## Dependencies
|
|
20
|
+
|
|
21
|
+
Runtime:
|
|
22
|
+
|
|
23
|
+
- `@cyanheads/mcp-ts-core` `^0.12.3` → `^0.12.5`
|
|
24
|
+
- `zod` `^4.4.3` → `^4.5.4`
|
|
25
|
+
|
|
26
|
+
Development:
|
|
27
|
+
|
|
28
|
+
- `@biomejs/biome` `2.5.9` → `2.5.11`
|
|
29
|
+
- `@types/node` `26.2.0` → `26.4.0`
|
|
30
|
+
- `ignore` `^7.0.6` → `^7.0.8`
|
|
31
|
+
- `tsc-alias` `^1.9.2` → `^1.9.3`
|
|
32
|
+
|
|
33
|
+
The lockfile re-resolve also cleared 8 transitive advisories (`fast-uri` `3.1.5` → `3.1.6`, `browserslist` `4.28.4` → `4.28.8`, `qs` `6.15.3` → `6.16.0`); `bun audit` now reports no vulnerabilities across 375 packages.
|
package/changelog/template.md
CHANGED
|
@@ -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
|
|
9
|
-
#
|
|
10
|
-
#
|
|
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`
|
|
19
|
-
#
|
|
20
|
-
#
|
|
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.
|
|
26
|
-
#
|
|
27
|
-
#
|
|
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.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
|
@@ -8,43 +8,6 @@ export { workflowDelete } from './workflow-delete.tool.js';
|
|
|
8
8
|
export { workflowGet } from './workflow-get.tool.js';
|
|
9
9
|
export { workflowList } from './workflow-list.tool.js';
|
|
10
10
|
export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
11
|
-
name: import("zod").ZodString;
|
|
12
|
-
version: import("zod").ZodString;
|
|
13
|
-
description: import("zod").ZodString;
|
|
14
|
-
author: import("zod").ZodString;
|
|
15
|
-
category: import("zod").ZodString;
|
|
16
|
-
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
17
|
-
steps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
18
|
-
server: import("zod").ZodString;
|
|
19
|
-
tool: import("zod").ZodString;
|
|
20
|
-
action: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
-
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
24
|
-
forEach: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
-
}, import("zod/v4/core").$strip>>;
|
|
26
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
27
|
-
status: import("zod").ZodLiteral<"created">;
|
|
28
|
-
filePath: import("zod").ZodString;
|
|
29
|
-
key: import("zod").ZodString;
|
|
30
|
-
created_date: import("zod").ZodString;
|
|
31
|
-
last_updated_date: import("zod").ZodString;
|
|
32
|
-
}, import("zod/v4/core").$strip>, readonly [{
|
|
33
|
-
readonly reason: "invalid_input";
|
|
34
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
35
|
-
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.";
|
|
36
|
-
readonly recovery: "Provide a category and workflow name that each contain alphanumeric characters, and keep the name under 200 characters after slugification.";
|
|
37
|
-
}, {
|
|
38
|
-
readonly reason: "already_exists";
|
|
39
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
|
|
40
|
-
readonly when: "A permanent workflow with this name@version already exists in the index.";
|
|
41
|
-
readonly recovery: "Change the version field or use a different name to avoid the conflict.";
|
|
42
|
-
}, {
|
|
43
|
-
readonly reason: "write_failed";
|
|
44
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
|
|
45
|
-
readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
|
|
46
|
-
readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
|
|
47
|
-
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
48
11
|
name: import("zod").ZodString;
|
|
49
12
|
version: import("zod").ZodString;
|
|
50
13
|
description: import("zod").ZodString;
|
|
@@ -76,33 +39,29 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
|
|
|
76
39
|
readonly when: "Filesystem write error such as insufficient permissions or a full disk.";
|
|
77
40
|
readonly recovery: "Check that the workflows directory is writable and has sufficient disk space, then retry.";
|
|
78
41
|
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
79
|
-
|
|
80
|
-
|
|
42
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
+
category: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
45
|
+
includeTools: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
81
46
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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;
|
|
85
57
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
86
|
-
readonly reason: "not_found";
|
|
87
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
88
|
-
readonly when: "No permanent workflow matches the given name, or the given name and version.";
|
|
89
|
-
readonly recovery: "Use workflow_list to see available workflow names and versions, then retry; omit version to target the latest.";
|
|
90
|
-
}, {
|
|
91
|
-
readonly reason: "temp_not_allowed";
|
|
92
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
93
|
-
readonly when: "The resolved workflow is temporary, and temporary workflows cannot be deleted.";
|
|
94
|
-
readonly recovery: "Leave temporary workflows to expire on their own — only permanent workflows can be deleted here.";
|
|
95
|
-
}, {
|
|
96
|
-
readonly reason: "delete_failed";
|
|
97
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InternalError;
|
|
98
|
-
readonly when: "Filesystem error while removing the workflow file, such as insufficient permissions.";
|
|
99
|
-
readonly recovery: "Check that the workflows directory is writable, then retry the deletion.";
|
|
100
|
-
}, {
|
|
101
58
|
readonly reason: "index_unavailable";
|
|
102
59
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
103
60
|
readonly when: "The workflow index has not finished building yet.";
|
|
104
61
|
readonly recovery: "Retry after the server has finished initializing its workflow index.";
|
|
105
|
-
}],
|
|
62
|
+
}], {
|
|
63
|
+
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
106
65
|
name: import("zod").ZodString;
|
|
107
66
|
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
67
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -128,8 +87,8 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
|
|
|
128
87
|
}, import("zod/v4/core").$strip>;
|
|
129
88
|
globalInstructions: import("zod").ZodNullable<import("zod").ZodString>;
|
|
130
89
|
source: import("zod").ZodEnum<{
|
|
131
|
-
temp: "temp";
|
|
132
90
|
permanent: "permanent";
|
|
91
|
+
temp: "temp";
|
|
133
92
|
}>;
|
|
134
93
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
135
94
|
readonly reason: "not_found";
|
|
@@ -147,27 +106,68 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
|
|
|
147
106
|
readonly when: "The workflow index has not finished building yet.";
|
|
148
107
|
readonly recovery: "Retry after the server has finished initializing its workflow index.";
|
|
149
108
|
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
150
|
-
|
|
151
|
-
|
|
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;
|
|
152
114
|
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
162
|
-
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>;
|
|
163
123
|
}, import("zod/v4/core").$strip>>;
|
|
164
|
-
|
|
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;
|
|
165
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
|
+
}, {
|
|
166
168
|
readonly reason: "index_unavailable";
|
|
167
169
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
168
170
|
readonly when: "The workflow index has not finished building yet.";
|
|
169
171
|
readonly recovery: "Retry after the server has finished initializing its workflow index.";
|
|
170
|
-
}],
|
|
171
|
-
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
172
|
-
}>)[];
|
|
172
|
+
}], undefined>)[];
|
|
173
173
|
//# 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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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"}
|
|
@@ -30,8 +30,8 @@ export declare const workflowGet: import("@cyanheads/mcp-ts-core").ToolDefinitio
|
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
globalInstructions: z.ZodNullable<z.ZodString>;
|
|
32
32
|
source: z.ZodEnum<{
|
|
33
|
-
temp: "temp";
|
|
34
33
|
permanent: "permanent";
|
|
34
|
+
temp: "temp";
|
|
35
35
|
}>;
|
|
36
36
|
}, z.core.$strip>, readonly [{
|
|
37
37
|
readonly reason: "not_found";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-index-service.d.ts","sourceRoot":"","sources":["../../../src/services/workflow-index/workflow-index-service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,KAAK,EAAiB,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA+C9F,qEAAqE;AACrE,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK7C;AA0CD,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,kBAAkB,CAA8B;IACxD,OAAO,CAAC,cAAc,CAA4C;IAClE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAS;IAChD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;
|
|
1
|
+
{"version":3,"file":"workflow-index-service.d.ts","sourceRoot":"","sources":["../../../src/services/workflow-index/workflow-index-service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,KAAK,EAAiB,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA+C9F,qEAAqE;AACrE,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK7C;AA0CD,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,kBAAkB,CAA8B;IACxD,OAAO,CAAC,cAAc,CAA4C;IAClE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAS;IAChD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;IAE3C,YAAY,YAAY,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAI1F;IAID,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,mCAAmC;IACnC,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,oEAAoE;IAC9D,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAS1B;IAED,6BAA6B;IAC7B,QAAQ,IAAI,IAAI,CAGf;IAID,8DAA8D;IAC9D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAMxC;IAED,oFAAoF;IACpF,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAQtE;IAED,yEAAyE;IACnE,sBAAsB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAMrD;IAID,6DAA6D;IACvD,cAAc,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAqD9D;IAED,6DAA6D;IACvD,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAezD;IAED;;;;;;;;;;;OAWG;IACG,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAyB/F;YAIa,OAAO;YAuBP,aAAa;YAwBb,QAAQ;YAwCR,aAAa;IAsB3B,OAAO,CAAC,YAAY;IAiCpB,OAAO,CAAC,gBAAgB;CAKzB;AAQD,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,cAAc,EACxB,YAAY,EAAE,MAAM,EACpB,sBAAsB,EAAE,MAAM,EAC9B,iBAAiB,EAAE,MAAM,GACxB,IAAI,CAKN;AAED,wBAAgB,uBAAuB,IAAI,oBAAoB,CAO9D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/workflows-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "bun run scripts/build.ts",
|
|
24
|
-
"rebuild": "bun run scripts/clean.ts && bun run build",
|
|
24
|
+
"rebuild": "bun run scripts/clean.ts && bun run scripts/build.ts",
|
|
25
25
|
"clean": "bun run scripts/clean.ts",
|
|
26
26
|
"devcheck": "bun run scripts/devcheck.ts",
|
|
27
27
|
"audit:refresh": "rm -f bun.lock && bun install && bun audit",
|
|
@@ -34,8 +34,10 @@
|
|
|
34
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",
|
|
35
35
|
"changelog:build": "bun run scripts/build-changelog.ts",
|
|
36
36
|
"changelog:check": "bun run scripts/build-changelog.ts --check",
|
|
37
|
+
"release:github": "bun run scripts/release-github.ts",
|
|
37
38
|
"publish-mcp": "mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish",
|
|
38
|
-
"test": "
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"test:coverage": "vitest run --coverage",
|
|
39
41
|
"start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
|
|
40
42
|
"start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js"
|
|
41
43
|
},
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
"bugs": {
|
|
63
65
|
"url": "https://github.com/cyanheads/workflows-mcp-server/issues"
|
|
64
66
|
},
|
|
65
|
-
"author": "
|
|
67
|
+
"author": "Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)",
|
|
66
68
|
"funding": [
|
|
67
69
|
{
|
|
68
70
|
"type": "github",
|
|
@@ -74,31 +76,32 @@
|
|
|
74
76
|
}
|
|
75
77
|
],
|
|
76
78
|
"license": "Apache-2.0",
|
|
77
|
-
"packageManager": "bun@1.
|
|
79
|
+
"packageManager": "bun@1.4.0",
|
|
78
80
|
"engines": {
|
|
79
|
-
"bun": ">=1.3.
|
|
81
|
+
"bun": ">=1.3.0",
|
|
80
82
|
"node": ">=24.0.0"
|
|
81
83
|
},
|
|
82
84
|
"publishConfig": {
|
|
83
85
|
"access": "public"
|
|
84
86
|
},
|
|
85
87
|
"dependencies": {
|
|
86
|
-
"@cyanheads/mcp-ts-core": "^0.
|
|
88
|
+
"@cyanheads/mcp-ts-core": "^0.12.5",
|
|
87
89
|
"pino-pretty": "^13.1.3",
|
|
88
90
|
"semver": "^7.8.5",
|
|
89
91
|
"yaml": "^2.9.0",
|
|
90
|
-
"zod": "^4.4
|
|
92
|
+
"zod": "^4.5.4"
|
|
91
93
|
},
|
|
92
94
|
"devDependencies": {
|
|
93
|
-
"@biomejs/biome": "
|
|
94
|
-
"@
|
|
95
|
-
"@types/
|
|
96
|
-
"@
|
|
95
|
+
"@biomejs/biome": "2.5.11",
|
|
96
|
+
"@socketsecurity/bun-security-scanner": "^1.1.2",
|
|
97
|
+
"@types/node": "26.4.0",
|
|
98
|
+
"@types/semver": "^7.8.0",
|
|
99
|
+
"@vitest/coverage-istanbul": "4.1.11",
|
|
97
100
|
"depcheck": "^1.4.7",
|
|
98
|
-
"fast-check": "^4.
|
|
99
|
-
"ignore": "^7.0.
|
|
100
|
-
"tsc-alias": "^1.
|
|
101
|
-
"typescript": "^
|
|
102
|
-
"vitest": "^4.1.
|
|
101
|
+
"fast-check": "^4.9.0",
|
|
102
|
+
"ignore": "^7.0.8",
|
|
103
|
+
"tsc-alias": "^1.9.3",
|
|
104
|
+
"typescript": "^7.0.2",
|
|
105
|
+
"vitest": "^4.1.11"
|
|
103
106
|
}
|
|
104
107
|
}
|
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.
|
|
9
|
+
"version": "0.3.1",
|
|
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.
|
|
16
|
+
"version": "0.3.1",
|
|
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.
|
|
60
|
+
"version": "0.3.1",
|
|
61
61
|
"packageArguments": [
|
|
62
62
|
{ "type": "positional", "value": "run" },
|
|
63
63
|
{ "type": "positional", "value": "start:http" }
|