@cyanheads/cyanheads-mcp-server 0.1.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.
Files changed (46) hide show
  1. package/AGENTS.md +367 -0
  2. package/CLAUDE.md +367 -0
  3. package/Dockerfile +99 -0
  4. package/LICENSE +201 -0
  5. package/README.md +143 -0
  6. package/changelog/0.1.x/0.1.0.md +12 -0
  7. package/changelog/0.1.x/0.1.1.md +38 -0
  8. package/changelog/template.md +127 -0
  9. package/dist/config/server-config.d.ts +19 -0
  10. package/dist/config/server-config.d.ts.map +1 -0
  11. package/dist/config/server-config.js +66 -0
  12. package/dist/config/server-config.js.map +1 -0
  13. package/dist/index.d.ts +7 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +26 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/mcp-server/tools/definitions/describe.tool.d.ts +67 -0
  18. package/dist/mcp-server/tools/definitions/describe.tool.d.ts.map +1 -0
  19. package/dist/mcp-server/tools/definitions/describe.tool.js +192 -0
  20. package/dist/mcp-server/tools/definitions/describe.tool.js.map +1 -0
  21. package/dist/mcp-server/tools/definitions/search.tool.d.ts +53 -0
  22. package/dist/mcp-server/tools/definitions/search.tool.d.ts.map +1 -0
  23. package/dist/mcp-server/tools/definitions/search.tool.js +123 -0
  24. package/dist/mcp-server/tools/definitions/search.tool.js.map +1 -0
  25. package/dist/services/catalog/catalog-service.d.ts +50 -0
  26. package/dist/services/catalog/catalog-service.d.ts.map +1 -0
  27. package/dist/services/catalog/catalog-service.js +233 -0
  28. package/dist/services/catalog/catalog-service.js.map +1 -0
  29. package/dist/services/catalog/embeddings-runtime.d.ts +21 -0
  30. package/dist/services/catalog/embeddings-runtime.d.ts.map +1 -0
  31. package/dist/services/catalog/embeddings-runtime.js +62 -0
  32. package/dist/services/catalog/embeddings-runtime.js.map +1 -0
  33. package/dist/services/catalog/remote-catalog-provider.d.ts +20 -0
  34. package/dist/services/catalog/remote-catalog-provider.d.ts.map +1 -0
  35. package/dist/services/catalog/remote-catalog-provider.js +84 -0
  36. package/dist/services/catalog/remote-catalog-provider.js.map +1 -0
  37. package/dist/services/catalog/snippets.d.ts +16 -0
  38. package/dist/services/catalog/snippets.d.ts.map +1 -0
  39. package/dist/services/catalog/snippets.js +51 -0
  40. package/dist/services/catalog/snippets.js.map +1 -0
  41. package/dist/services/catalog/types.d.ts +135 -0
  42. package/dist/services/catalog/types.d.ts.map +1 -0
  43. package/dist/services/catalog/types.js +8 -0
  44. package/dist/services/catalog/types.js.map +1 -0
  45. package/package.json +83 -0
  46. package/server.json +141 -0
package/AGENTS.md ADDED
@@ -0,0 +1,367 @@
1
+ # Developer Protocol
2
+
3
+ **Server:** cyanheads-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`
6
+ **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
+ **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
8
+ **Zod:** ^4.4.3
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 This Server Is
15
+
16
+ A fleet discovery surface for the cyanheads MCP ecosystem. Two tools:
17
+
18
+ - **`cyanheads_search`** — semantic search across fleet tools and servers using cosine similarity over Matryoshka-truncated 256-dim embeddings from `Snowflake/snowflake-arctic-embed-m-v1.5`.
19
+ - **`cyanheads_describe`** — returns the description, connection URL, and per-client install snippet for any named tool or server.
20
+
21
+ The catalog (`fleet.json`) is produced by `caseyjhand-portfolio/scripts/build-fleet-json.ts` at portfolio deploy time. Document vectors are baked into the JSON. The server only embeds the user's query at runtime via `@huggingface/transformers`. See `docs/design.md` for the full architecture.
22
+
23
+ ---
24
+
25
+ ## What's Next?
26
+
27
+ When the user asks what's next or needs direction, suggest options based on the current project state. Common next steps:
28
+
29
+ 1. **Re-run the `setup` skill** — ensures CLAUDE.md, skills, structure, and metadata are populated and up to date with the current codebase
30
+ 2. **Run the `design-mcp-server` skill** — if the tool/resource surface hasn't been mapped yet, work through domain design
31
+ 3. **Add tools/resources/prompts** — scaffold new definitions using the `add-tool`, `add-app-tool`, `add-resource`, `add-prompt` skills
32
+ 4. **Add services** — scaffold domain service integrations using the `add-service` skill
33
+ 5. **Add tests** — scaffold tests for existing definitions using the `add-test` skill
34
+ 6. **Field-test definitions** — exercise tools/resources/prompts with real inputs using the `field-test` skill, get a report of issues and pain points
35
+ 7. **Run `devcheck`** — lint, format, typecheck, and security audit
36
+ 8. **Run the `security-pass` skill** — audit handlers for MCP-specific security gaps: output injection, scope blast radius, input sinks, tenant isolation
37
+ 9. **Run the `polish-docs-meta` skill** — finalize README, CHANGELOG, metadata, and agent protocol for shipping
38
+ 10. **Run the `maintenance` skill** — investigate changelogs, adopt upstream changes, and sync skills after `bun update --latest`
39
+
40
+ Tailor suggestions to what's actually missing or stale — don't recite the full list every time.
41
+
42
+ ---
43
+
44
+ ## Core Rules
45
+
46
+ - **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.
47
+ - **Use `ctx.log`** for request-scoped logging. No `console` calls.
48
+ - **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
49
+ - **Check `ctx.elicit` / `ctx.sample`** for presence before calling.
50
+ - **Secrets in env vars only** — never hardcoded.
51
+ - **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.
52
+
53
+ ---
54
+
55
+ ## Patterns
56
+
57
+ ### Tool
58
+
59
+ ```ts
60
+ import { tool, z } from '@cyanheads/mcp-ts-core';
61
+
62
+ export const searchItems = tool('search_items', {
63
+ description: 'Search inventory items by query.',
64
+ annotations: { readOnlyHint: true },
65
+ input: z.object({
66
+ query: z.string().describe('Search terms'),
67
+ limit: z.number().default(10).describe('Max results'),
68
+ }),
69
+ output: z.object({
70
+ items: z.array(z.object({
71
+ id: z.string().describe('Item ID'),
72
+ name: z.string().describe('Item name'),
73
+ })).describe('Matching items'),
74
+ }),
75
+ auth: ['inventory:read'],
76
+
77
+ async handler(input, ctx) {
78
+ const items = await findItems(input.query, input.limit);
79
+ ctx.log.info('Search completed', { query: input.query, count: items.length });
80
+ return { items };
81
+ },
82
+
83
+ // format() populates content[] — the markdown twin of structuredContent.
84
+ // Different clients read different surfaces (Claude Code → structuredContent,
85
+ // Claude Desktop → content[]); both must carry the same data.
86
+ // Enforced at lint time: every field in `output` must appear in the rendered text.
87
+ format: (result) => [{
88
+ type: 'text',
89
+ text: result.items.map(i => `**${i.id}**: ${i.name}`).join('\n'),
90
+ }],
91
+ });
92
+ ```
93
+
94
+ ### Resource
95
+
96
+ ```ts
97
+ import { resource, z } from '@cyanheads/mcp-ts-core';
98
+ import { notFound } from '@cyanheads/mcp-ts-core/errors';
99
+
100
+ export const itemData = resource('inventory://{itemId}', {
101
+ description: 'Fetch an inventory item by ID.',
102
+ params: z.object({ itemId: z.string().describe('Item identifier') }),
103
+ auth: ['inventory:read'],
104
+ async handler(params, ctx) {
105
+ const item = await ctx.state.get(`item:${params.itemId}`);
106
+ if (!item) throw notFound(`Item ${params.itemId} not found`, { itemId: params.itemId });
107
+ return item;
108
+ },
109
+ });
110
+ ```
111
+
112
+ ### Prompt
113
+
114
+ ```ts
115
+ import { prompt, z } from '@cyanheads/mcp-ts-core';
116
+
117
+ export const reviewCode = prompt('review_code', {
118
+ description: 'Review code for issues and best practices.',
119
+ args: z.object({
120
+ code: z.string().describe('Code to review'),
121
+ language: z.string().optional().describe('Programming language'),
122
+ }),
123
+ generate: (args) => [
124
+ { role: 'user', content: { type: 'text', text: `Review this ${args.language ?? ''} code:\n${args.code}` } },
125
+ ],
126
+ });
127
+ ```
128
+
129
+ ### Server config
130
+
131
+ ```ts
132
+ // src/config/server-config.ts — lazy-parsed, separate from framework config
133
+ import { z } from '@cyanheads/mcp-ts-core';
134
+ import { parseEnvConfig } from '@cyanheads/mcp-ts-core/config';
135
+
136
+ const ServerConfigSchema = z.object({
137
+ apiKey: z.string().describe('External API key'),
138
+ maxResults: z.coerce.number().default(100),
139
+ });
140
+
141
+ let _config: z.infer<typeof ServerConfigSchema> | undefined;
142
+ export function getServerConfig() {
143
+ _config ??= parseEnvConfig(ServerConfigSchema, {
144
+ apiKey: 'MY_API_KEY',
145
+ maxResults: 'MY_MAX_RESULTS',
146
+ });
147
+ return _config;
148
+ }
149
+ ```
150
+
151
+ `parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`MY_API_KEY`) not the path (`apiKey`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
152
+
153
+ ---
154
+
155
+ ## Context
156
+
157
+ Handlers receive a unified `ctx` object. Key properties:
158
+
159
+ | Property | Description |
160
+ |:---------|:------------|
161
+ | `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
162
+ | `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
163
+ | `ctx.elicit` | Ask user for structured input. **Check for presence first:** `if (ctx.elicit) { ... }` |
164
+ | `ctx.sample` | Request LLM completion from the client. **Check for presence first:** `if (ctx.sample) { ... }` |
165
+ | `ctx.signal` | `AbortSignal` for cancellation. |
166
+ | `ctx.progress` | Task progress (present when `task: true`) — `.setTotal(n)`, `.increment()`, `.update(message)`. |
167
+ | `ctx.requestId` | Unique request ID. |
168
+ | `ctx.tenantId` | Tenant ID from JWT or `'default'` for stdio. |
169
+
170
+ ---
171
+
172
+ ## Errors
173
+
174
+ Handlers throw — the framework catches, classifies, and formats.
175
+
176
+ **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 descriptive metadata for the agent's next move (≥ 5 words, lint-validated); for the wire `data.recovery.hint` (mirrored into `content[]` text), pass explicitly at the throw site when dynamic context matters: `ctx.fail('reason', msg, { recovery: { hint: '...' } })`. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
177
+
178
+ ```ts
179
+ errors: [
180
+ { reason: 'no_match', code: JsonRpcErrorCode.NotFound,
181
+ when: 'No item matched the query',
182
+ recovery: 'Broaden the query or check the spelling and try again.' },
183
+ ],
184
+ async handler(input, ctx) {
185
+ const item = await db.find(input.id);
186
+ if (!item) throw ctx.fail('no_match', `No item ${input.id}`);
187
+ return item;
188
+ }
189
+ ```
190
+
191
+ **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.
192
+
193
+ **Fallback (no contract entry fits):** throw via factories or plain `Error`.
194
+
195
+ ```ts
196
+ // Error factories — explicit code
197
+ import { notFound, serviceUnavailable } from '@cyanheads/mcp-ts-core/errors';
198
+ throw notFound('Item not found', { itemId });
199
+ throw serviceUnavailable('API unavailable', { url }, { cause: err });
200
+
201
+ // Plain Error — framework auto-classifies from message patterns
202
+ throw new Error('Item not found'); // → NotFound
203
+ throw new Error('Invalid query format'); // → ValidationError
204
+
205
+ // McpError — when no factory exists for the code
206
+ import { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
207
+ throw new McpError(JsonRpcErrorCode.DatabaseError, 'Connection failed', { pool: 'primary' });
208
+ ```
209
+
210
+ See framework CLAUDE.md and the `api-errors` skill for the full auto-classification table, all available factories, and the contract reference.
211
+
212
+ ---
213
+
214
+ ## Structure
215
+
216
+ ```text
217
+ src/
218
+ index.ts # createApp() entry point
219
+ config/
220
+ server-config.ts # Server-specific env vars (Zod schema)
221
+ services/
222
+ [domain]/
223
+ [domain]-service.ts # Domain service (init/accessor pattern)
224
+ types.ts # Domain types
225
+ mcp-server/
226
+ tools/definitions/
227
+ [tool-name].tool.ts # Tool definitions
228
+ resources/definitions/
229
+ [resource-name].resource.ts # Resource definitions
230
+ prompts/definitions/
231
+ [prompt-name].prompt.ts # Prompt definitions
232
+ ```
233
+
234
+ ---
235
+
236
+ ## Naming
237
+
238
+ | What | Convention | Example |
239
+ |:-----|:-----------|:--------|
240
+ | Files | kebab-case with suffix | `search-docs.tool.ts` |
241
+ | Tool/resource/prompt names | snake_case | `search_docs` |
242
+ | Directories | kebab-case | `src/services/doc-search/` |
243
+ | Descriptions | Single string or template literal, no `+` concatenation | `'Search items by query and filter.'` |
244
+
245
+ ---
246
+
247
+ ## Skills
248
+
249
+ 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.
250
+
251
+ **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.
252
+
253
+ Available skills:
254
+
255
+ | Skill | Purpose |
256
+ |:------|:--------|
257
+ | `setup` | Post-init project orientation |
258
+ | `design-mcp-server` | Design tool surface, resources, and services for a new server |
259
+ | `add-tool` | Scaffold a new tool definition |
260
+ | `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
261
+ | `add-resource` | Scaffold a new resource definition |
262
+ | `add-prompt` | Scaffold a new prompt definition |
263
+ | `add-service` | Scaffold a new service integration |
264
+ | `add-test` | Scaffold test file for a tool, resource, or service |
265
+ | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
266
+ | `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
267
+ | `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
268
+ | `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
269
+ | `devcheck` | Lint, format, typecheck, audit |
270
+ | `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
271
+ | `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
272
+ | `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
273
+ | `migrate-mcp-ts-template` | One-time migration of an existing project to the current framework template |
274
+ | `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
275
+ | `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
276
+ | `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
277
+ | `api-auth` | Auth modes, scopes, JWT/OAuth |
278
+ | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
279
+ | `api-config` | AppConfig, parseConfig, env vars |
280
+ | `api-context` | Context interface, logger, state, progress |
281
+ | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
282
+ | `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
283
+ | `api-services` | LLM, Speech, Graph services |
284
+ | `api-testing` | createMockContext, test patterns |
285
+ | `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
286
+ | `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
287
+ | `api-workers` | Cloudflare Workers runtime |
288
+
289
+ When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-03-11`).
290
+
291
+ ---
292
+
293
+ ## Commands
294
+
295
+ **Runtime:** Scripts use `tsx` — both `npm run <cmd>` and `bun run <cmd>` work. `bun` is slightly faster for script invocation but not required.
296
+
297
+ | Command | Purpose |
298
+ |:--------|:--------|
299
+ | `npm run build` | Compile TypeScript |
300
+ | `npm run rebuild` | Clean + build |
301
+ | `npm run clean` | Remove build artifacts |
302
+ | `npm run devcheck` | Lint + format + typecheck + security + changelog sync |
303
+ | `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. |
304
+ | `npm run tree` | Generate directory structure doc |
305
+ | `npm run format` | Auto-fix formatting |
306
+ | `npm test` | Run tests |
307
+ | `npm run start:stdio` | Production mode (stdio) |
308
+ | `npm run start:http` | Production mode (HTTP) |
309
+ | `npm run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
310
+ | `npm run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
311
+
312
+ ---
313
+
314
+ ## Changelog
315
+
316
+ 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 `npm 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 `npm run changelog:build` — devcheck hard-fails on drift; never hand-edit it.
317
+
318
+ Each per-version file opens with YAML frontmatter:
319
+
320
+ ```markdown
321
+ ---
322
+ summary: "One-line headline, ≤350 chars" # required — powers the rollup index
323
+ breaking: false # optional — true flags breaking changes
324
+ security: false # optional — true flags security fixes
325
+ ---
326
+
327
+ # 0.1.0 — YYYY-MM-DD
328
+ ...
329
+ ```
330
+
331
+ `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`.
332
+
333
+ `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.
334
+
335
+ **Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
336
+
337
+ **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.
338
+
339
+ ---
340
+
341
+ ## Imports
342
+
343
+ ```ts
344
+ // Framework — z is re-exported, no separate zod import needed
345
+ import { tool, z } from '@cyanheads/mcp-ts-core';
346
+ import { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
347
+
348
+ // Server's own code — via path alias
349
+ import { getMyService } from '@/services/my-domain/my-service.js';
350
+ ```
351
+
352
+ ---
353
+
354
+ ## Checklist
355
+
356
+ - [ ] 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()`)
357
+ - [ ] 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`.
358
+ - [ ] JSDoc `@fileoverview` + `@module` on every file
359
+ - [ ] `ctx.log` for logging, `ctx.state` for storage
360
+ - [ ] Handlers throw on failure — error factories or plain `Error`, no try/catch
361
+ - [ ] `format()` renders all data the LLM needs — different clients forward different surfaces (Claude Code → `structuredContent`, Claude Desktop → `content[]`); both must carry the same data
362
+ - [ ] If wrapping external API: raw/domain/output schemas reviewed against real upstream sparsity/nullability before finalizing required vs optional fields
363
+ - [ ] If wrapping external API: normalization and `format()` preserve uncertainty; do not fabricate facts from missing upstream data
364
+ - [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
365
+ - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
366
+ - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
367
+ - [ ] `npm run devcheck` passes