@cyanheads/mcp-ts-core 0.13.13 → 0.13.14

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 (39) hide show
  1. package/AGENTS.md +4 -4
  2. package/CLAUDE.md +4 -4
  3. package/README.md +1 -1
  4. package/changelog/0.13.x/0.13.14.md +68 -0
  5. package/dist/core/app.d.ts +4 -3
  6. package/dist/core/app.d.ts.map +1 -1
  7. package/dist/core/app.js.map +1 -1
  8. package/dist/mcp-server/prompts/prompt-registration.d.ts.map +1 -1
  9. package/dist/mcp-server/prompts/prompt-registration.js +12 -5
  10. package/dist/mcp-server/prompts/prompt-registration.js.map +1 -1
  11. package/dist/mcp-server/prompts/utils/promptDefinition.d.ts +4 -1
  12. package/dist/mcp-server/prompts/utils/promptDefinition.d.ts.map +1 -1
  13. package/dist/mcp-server/prompts/utils/promptDefinition.js.map +1 -1
  14. package/dist/mcp-server/tools/utils/inputPrevalidation.d.ts +309 -26
  15. package/dist/mcp-server/tools/utils/inputPrevalidation.d.ts.map +1 -1
  16. package/dist/mcp-server/tools/utils/inputPrevalidation.js +870 -106
  17. package/dist/mcp-server/tools/utils/inputPrevalidation.js.map +1 -1
  18. package/dist/mcp-server/tools/utils/schemaShape.d.ts +127 -5
  19. package/dist/mcp-server/tools/utils/schemaShape.d.ts.map +1 -1
  20. package/dist/mcp-server/tools/utils/schemaShape.js +432 -4
  21. package/dist/mcp-server/tools/utils/schemaShape.js.map +1 -1
  22. package/dist/mcp-server/tools/utils/toolDefinition.d.ts +7 -3
  23. package/dist/mcp-server/tools/utils/toolDefinition.d.ts.map +1 -1
  24. package/dist/mcp-server/tools/utils/toolDefinition.js.map +1 -1
  25. package/dist/mcp-server/tools/utils/toolHandlerFactory.d.ts +47 -23
  26. package/dist/mcp-server/tools/utils/toolHandlerFactory.d.ts.map +1 -1
  27. package/dist/mcp-server/tools/utils/toolHandlerFactory.js +777 -236
  28. package/dist/mcp-server/tools/utils/toolHandlerFactory.js.map +1 -1
  29. package/dist/utils/telemetry/attributes.d.ts +3 -2
  30. package/dist/utils/telemetry/attributes.d.ts.map +1 -1
  31. package/dist/utils/telemetry/attributes.js +3 -2
  32. package/dist/utils/telemetry/attributes.js.map +1 -1
  33. package/framework-skills/add-tool/SKILL.md +15 -7
  34. package/framework-skills/api-errors/SKILL.md +8 -8
  35. package/framework-skills/api-telemetry/SKILL.md +4 -4
  36. package/framework-skills/api-testing/SKILL.md +2 -2
  37. package/framework-skills/design-mcp-server/SKILL.md +3 -2
  38. package/framework-skills/field-test/SKILL.md +3 -2
  39. package/package.json +3 -3
package/AGENTS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Package:** `@cyanheads/mcp-ts-core`
4
- **Version:** 0.13.13
4
+ **Version:** 0.13.14
5
5
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
6
6
  **MCP SDK:** `@modelcontextprotocol/server` ^2.2.0 (protocol revisions 2026-07-28 and 2025-*)
7
7
  **Zod:** ^4.6.5
@@ -255,7 +255,7 @@ export const myTool = tool('my_tool', {
255
255
 
256
256
  **Strict input:** `tool()` stores `input.strict()`, so an unrecognized argument key is rejected by name before the handler runs and `inputSchema` advertises `additionalProperties: false`. Root-level only — a nested `z.object()` still strips unless it is strict itself. An explicit `.passthrough()` / `.catchall()` is honored. Declare `.strict()` **before** `.describe()` / `.meta()` on the root: Zod keys both to the schema instance and `.strict()` clones without it, so a root describe declared after is discarded and never advertised — `lint:mcp` reports that as `schema-root-meta-discarded`.
257
257
 
258
- **Pre-validation:** an ordered step inside `parseToolArguments` rescues calls strict input would otherwise reject — drop client-added root keys (`_meta`, `tool_call_description`, `toolCallId`, any undeclared `_`-prefixed key) → rewrite key aliases (declared `inputAliases`, plus any undeclared key whose case-folded form names exactly one declared key) → parse → on failure, repair a JSON-stringified array or object, or a safe integer where a string is expected (`8654467` → `"8654467"`), and re-parse once, keeping the repair only if the schema then accepts it. If that still fails and the drop discarded a key, the stages rerun alias-first so `_query` or a declared `_q` alias reaches its target, and the retry (repair included) is kept only if it validates — a call the first order validates resolves exactly as it would without the retry. All on by default, and nothing changes the advertised `inputSchema`. A call that still fails throws the rejection of the last order tried — the retry's when it ran, so a declared `_q` alias with a bad value reports that value's failure and `Validated _q as query.` — the same one it gets under `coerce: false`, reporting that order's rewrites and underscore-rule drops as `data.input` and in the hint. A declared key, an author-opened root, and a `headerParam` target are never touched. Server-level switches: `createApp({ input: { ignoreKeys, caseStyleAliases, coerce } })`. Counters, for the attempt the handler receives: `mcp.input.ignored_key`, `mcp.input.aliased`, `mcp.input.coerced` (once per repair kind). Lint: `input-alias-conflict`. See `add-tool` skill.
258
+ **Pre-validation:** an ordered step inside `parseToolArguments` rescues calls strict input would otherwise reject — drop client-added root keys (`_meta`, `tool_call_description`, `toolCallId`, any undeclared `_`-prefixed key) → rewrite key aliases (declared `inputAliases`, plus any undeclared key whose case-folded form names exactly one declared key) → parse → on failure, repair a JSON-stringified array or object, a safe integer where a string is expected (`8654467` → `"8654467"`), a string spelling a number or boolean where only those are accepted (`"15"` → `15`, `"true"` → `true`), or a lone string where an array is expected (`"yell"` → `["yell"]`, never one holding a comma or line break), and delete `null` at an optional key its object declares — first the stringified and integer repairs 0.13.13 made, at Zod's own issue paths in the arguments as sent, so every call they validated keeps its value (`'["USD"]'` beside a branch that splits a string → `["USD"]`, a repair the later ones keep, so a `count: "3"` beside it validates too), then at the paths the rejection renders, inside a union field's one surviving branch included (`[123, "a"]` against `string | string[]` → `["123", "a"]`), at a discriminator or literal tag no variant takes, read as a field holding every variant's tag (`{ kind: "1" }` against tags `1` and `2` → `{ kind: 1 }`), and inside what a `z.preprocess()` made of a value (a lone `{ year: 2020 }` a preprocess wraps as a list reaches the handler as `[{ year: "2020" }]`, the repair tried first in place at the issue path, so `[1, 2]` under a reversing preprocess still reaches it as `["2", "1"]`, then written into the output, which takes the argument's place only if the preprocess returns it unchanged) — then re-parse once, keeping the repair only if the schema then accepts it. If that still fails and the drop discarded a key, the stages rerun alias-first so `_query` or a declared `_q` alias reaches its target, and the retry (repair included) is kept only if it validates — a call the first order validates resolves exactly as it would without the retry. All on by default, and nothing changes the advertised `inputSchema`. A call that still fails throws the rejection of the last order tried — the retry's when it ran, so a declared `_q` alias with a bad value reports that value's failure and `Validated _q as query.` — parsed with only the repairs that held: a value the schema accepted once repaired is not reported (14 integer PMIDs against `.max(10)` report only the `too_big`; one that held only written in place under a `z.preprocess()` that reorders or rewrites it is the exception), and one whose repair it refused is reported as sent, so a call no repair helped gets exactly its `coerce: false` rejection — as does one the held repairs alone would validate (only a union or a cross-field refinement allows that), held values included. It reports that order's rewrites and underscore-rule drops as `data.input` and in the hint, names an alias sent beside its target as one (`maxResults is an alias of pageSize; send one of them, not both.`) rather than as an unknown or dropped key, and says nothing about a repair. The key stages never drop or rewrite a declared key, an author-opened root's keys, or a `headerParam` target. Server-level switches: `createApp({ input: { ignoreKeys, caseStyleAliases, coerce } })`. Counters, for the attempt the handler receives: `mcp.input.ignored_key`, `mcp.input.aliased`, `mcp.input.coerced` (once per repair kind). Lint: `input-alias-conflict`. See `add-tool` skill.
259
259
 
260
260
  **Header-mirrored input (2026-07-28):** `headerParam(z.string(), 'Region')` designates an input property with `x-mcp-header`, so its value also rides an `Mcp-Param-Region` request header and an intermediary can read it without parsing the body. Mirroring, not relocation — the handler still reads the argument from the body, and nothing else about the field changes. Only a primitive-typed (`string`/`integer`/`number`/`boolean`) property statically reachable through a chain of `properties` keys qualifies: an array element, a `z.record()` value, and every field of a discriminated-union input root are unreachable, and header names must be RFC 9110 tokens, case-insensitively unique per schema. `tool()` rejects a violation at definition time naming the field path — the SDK only warns, then conforming Streamable HTTP clients drop the tool. Lint rule: `header-param-designation`.
261
261
 
@@ -406,7 +406,7 @@ See `api-context` skill for full details.
406
406
 
407
407
  ## Error Handling
408
408
 
409
- **Recommended path: declare a typed error contract.** Add `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` to `tool()` / `resource()`. Handler gets `ctx.fail(reason, msg?, data?)` typed against the reason union — typos fail at compile time. Runtime auto-populates `data.reason` for observability; linter enforces conformance against the handler body. `recovery` is required (≥5 words, lint-validated) — the wire hint for its reason: when a failure whose `data.reason` names the entry reaches the tool or resource factory without `data.recovery`, the framework fills `data.recovery.hint` from it — a bare `ctx.fail('reason')` and a service throw carrying `{ reason }` alike, matched on the reason alone — and mirrors it into `content[]` text. Override with explicit `{ recovery: { hint: '...' } }` when runtime context matters; a throw-site `recovery` always wins, and the thrown `McpError` itself is never changed. Optional `severity` (`debug`/`info`/`notice`/`warning`) logs a modeled outcome below `error` — tools only, logging only: the wire envelope, the span status, and the `mcp.tool.*` metrics are untouched. The framework's own `invalid_arguments` and `client_capability_missing` refusals log at `notice` unless an entry naming them declares otherwise, and so does a tool's missing-scope refusal (the inline `auth` check or `checkScopes`), which carries no reason to declare; a missing auth context, a handler's own `forbidden()`, and an upstream 403 keep `error`. All three refusal records log no stack, whatever level an entry declares, and an argument rejection's record keeps at most the first 1,024 characters of each string and the first 10 entries of each array, the uncut length or count beside each cut. Optional `thrownBy: 'service'` marks an entry the service layer produces, so `error-contract-unthrown` skips it while still checking the handler's own reasons — lint-only metadata, nothing at runtime reads it.
409
+ **Recommended path: declare a typed error contract.** Add `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` to `tool()` / `resource()`. Handler gets `ctx.fail(reason, msg?, data?)` typed against the reason union — typos fail at compile time. Runtime auto-populates `data.reason` for observability; linter enforces conformance against the handler body. `recovery` is required (≥5 words, lint-validated) — the wire hint for its reason: when a failure whose `data.reason` names the entry reaches the tool or resource factory without `data.recovery`, the framework fills `data.recovery.hint` from it — a bare `ctx.fail('reason')` and a service throw carrying `{ reason }` alike, matched on the reason alone — and mirrors it into `content[]` text. Override with explicit `{ recovery: { hint: '...' } }` when runtime context matters; a throw-site `recovery` always wins, and the thrown `McpError` itself is never changed. Optional `severity` (`debug`/`info`/`notice`/`warning`) logs a modeled outcome below `error` — tools only, logging only: the wire envelope, the span status, and the `mcp.tool.*` metrics are untouched. The framework's own `invalid_arguments` and `client_capability_missing` refusals log at `notice` unless an entry naming them declares otherwise, and so does a tool's missing-scope refusal (the inline `auth` check or `checkScopes`), which carries no reason to declare; a missing auth context, a handler's own `forbidden()`, and an upstream 403 keep `error`. All three refusal records log no stack, whatever level an entry declares, and an argument rejection — its record and its `-32602` result alike — keeps at most the first 1,024 characters of each string and key, the first 10 entries of each array and keys of each object, two levels of lists and objects below each issue, and 30 issues in `data.issues`, the uncut length or count beside each cut. Optional `thrownBy: 'service'` marks an entry the service layer produces, so `error-contract-unthrown` skips it while still checking the handler's own reasons — lint-only metadata, nothing at runtime reads it.
410
410
 
411
411
  ```ts
412
412
  errors: [
@@ -446,7 +446,7 @@ For HTTP responses from upstream APIs, use `httpErrorFromResponse(response, { se
446
446
 
447
447
  **Auto-classification.** Plain `Error`, `ZodError`, and any other thrown value are caught and classified automatically. Resolution order: request signal already aborted (→ `RequestCancelled`, outranking the thrown value's own code, `McpError` included) → `McpError` code (preserved as-is) → SDK `ConnectionClosed` (→ `RequestCancelled`) → engine resource-limit `RangeError` by whole message — stack overflow, maximum string size (→ `InternalError`) → JS constructor name (`SyntaxError` → `ValidationError`; `TypeError` is excluded) → provider patterns (HTTP status codes, AWS errors, DB errors) → common message patterns → `AbortError` name (→ `Timeout`) → `InternalError` fallback. A result that breaks the definition's own `output` or `enrichment` schema fails as `InternalError` naming that contract, not `ValidationError`.
448
448
 
449
- **Error-path parity.** Tool errors: `content[]` carries `Error: <message>`, then `Recovery: <hint>` when the hint says something the message does not already contain, then a closing `(reason … · not retryable · request <id>)` for whichever of `data.reason` / `data.retryable` / `data.requestId` is present; the numeric code and `data.issues` stay JSON-only. `structuredContent.error` carries `{ code, message, data? }`. No `_meta.error`. Resources re-throw via JSON-RPC error envelope. An argument rejection is one of them: `-32602` with `data.issues`, plus `data.reason: 'invalid_arguments'` and a hint synthesized from the issues and the root schema — never a tool-declared `reason`, since the handler never ran. When pre-validation rewrote or dropped a key the caller wrote, `data.input` (`{ aliased: [{ alias, target }], ignored }`) names it and the hint closes with `Validated … as ….` / `Dropped undeclared key ….`; an ignore-list drop is never reported. `client_capability_missing` is the second framework-owned reason: a `ctx.requestInput` return a 2025-era connection cannot serve is refused before any wire traffic as `-32600` carrying that reason and a hint naming the capability. **`data.requestId`** is set on every error envelope the framework builds — tool results, resource reads, prompts, `httpErrorHandler`'s JSON-RPC errors — equal to the `requestId` of that call's log records: a token the framework generates per call, never the client's JSON-RPC id. Those records carry the client's id as `jsonRpcId` (string or number as sent; a string over 1,024 characters keeps at most its first 1,024, plus `jsonRpcIdLength`), and the response `id` is unchanged. A resource read refused before it is measured (auth, `params`) carries an id no record shares. It replaces a thrown `data.requestId`, is never added to the thrown `McpError`, and is left off a resource `-32602` whose `data` is exactly `{ uri }` and off `runToolContract` results.
449
+ **Error-path parity.** Tool errors: `content[]` carries `Error: <message>`, then `Recovery: <hint>` when the hint says something the message does not already contain, then a closing `(reason … · not retryable · request <id>)` for whichever of `data.reason` / `data.retryable` / `data.requestId` is present; the numeric code and `data.issues` stay JSON-only. `structuredContent.error` carries `{ code, message, data? }`. No `_meta.error`. Resources re-throw via JSON-RPC error envelope. An argument rejection is one of them: `-32602` with `data.issues`, plus `data.reason: 'invalid_arguments'` and a hint synthesized from the issues and the root schema — never a tool-declared `reason`, since the handler never ran. It is bounded whatever the caller sends: the message and the hint render the first 10 issue lines, each cut to its first 1,024 characters and ending `…` when cut, then ` (+N more)`; `data.issues` and `data.input` keep the first 10 entries of every array and keys of every object, the first 1,024 characters of every string and key, and two levels of lists and objects below each issue (a deeper one keeps no entries), the uncut count or length beside each cut under a name no kept key takes (`keysCount`, `keysLengths`, `paramsCount`, `<key>KeyLength`, …), and `data.issues` keeps at most 30 issues in all, read in document order through every union's branches. `issuesCount`, how many issues Zod raised at the top level, sits beside `data.issues` whenever it keeps fewer of them — past the first 10, or sooner when the 30-issue budget runs out — as `errorsCount` sits beside a union's cut branch list and `errorsLengths` beside a cut branch; a rejection within those caps is unchanged. When pre-validation rewrote or dropped a key the caller wrote, `data.input` (`{ aliased: [{ alias, target }], ignored }`) names it and the hint closes with `Validated … as ….` / `Dropped undeclared key ….`; an ignore-list drop is never reported. An alias the caller sent beside its target, which the key stages never rewrite, is named in the hint as `… is an alias of …; send one of them, not both.` (`send only one of them.` for three or more keys) where it would otherwise read as an unknown or dropped key. `client_capability_missing` is the second framework-owned reason: a `ctx.requestInput` return a 2025-era connection cannot serve is refused before any wire traffic as `-32600` carrying that reason and a hint naming the capability. **`data.requestId`** is set on every error envelope the framework builds — tool results, resource reads, prompts, `httpErrorHandler`'s JSON-RPC errors — equal to the `requestId` of that call's log records: a token the framework generates per call, never the client's JSON-RPC id. Those records carry the client's id as `jsonRpcId` (string or number as sent; a string over 1,024 characters keeps at most its first 1,024, plus `jsonRpcIdLength`), and the response `id` is unchanged. A resource read refused before it is measured (auth, `params`) carries an id no record shares. It replaces a thrown `data.requestId`, is never added to the thrown `McpError`, and is left off a resource `-32602` whose `data` is exactly `{ uri }` and off `runToolContract` results.
450
450
 
451
451
  **Lint rules** (all warnings, surfaced in `devcheck`): `prefer-mcp-error-in-handler`, `prefer-error-factory`, `preserve-cause-on-rethrow`, `no-stringify-upstream-error`, `error-contract-conformance`, `error-contract-prefer-fail`, `error-contract-unthrown` (a declared reason no literal `ctx.fail`/`ctx.recoveryFor` in the handler names, unless marked `thrownBy: 'service'`). See `api-linter` skill.
452
452
 
package/CLAUDE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Package:** `@cyanheads/mcp-ts-core`
4
- **Version:** 0.13.13
4
+ **Version:** 0.13.14
5
5
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
6
6
  **MCP SDK:** `@modelcontextprotocol/server` ^2.2.0 (protocol revisions 2026-07-28 and 2025-*)
7
7
  **Zod:** ^4.6.5
@@ -255,7 +255,7 @@ export const myTool = tool('my_tool', {
255
255
 
256
256
  **Strict input:** `tool()` stores `input.strict()`, so an unrecognized argument key is rejected by name before the handler runs and `inputSchema` advertises `additionalProperties: false`. Root-level only — a nested `z.object()` still strips unless it is strict itself. An explicit `.passthrough()` / `.catchall()` is honored. Declare `.strict()` **before** `.describe()` / `.meta()` on the root: Zod keys both to the schema instance and `.strict()` clones without it, so a root describe declared after is discarded and never advertised — `lint:mcp` reports that as `schema-root-meta-discarded`.
257
257
 
258
- **Pre-validation:** an ordered step inside `parseToolArguments` rescues calls strict input would otherwise reject — drop client-added root keys (`_meta`, `tool_call_description`, `toolCallId`, any undeclared `_`-prefixed key) → rewrite key aliases (declared `inputAliases`, plus any undeclared key whose case-folded form names exactly one declared key) → parse → on failure, repair a JSON-stringified array or object, or a safe integer where a string is expected (`8654467` → `"8654467"`), and re-parse once, keeping the repair only if the schema then accepts it. If that still fails and the drop discarded a key, the stages rerun alias-first so `_query` or a declared `_q` alias reaches its target, and the retry (repair included) is kept only if it validates — a call the first order validates resolves exactly as it would without the retry. All on by default, and nothing changes the advertised `inputSchema`. A call that still fails throws the rejection of the last order tried — the retry's when it ran, so a declared `_q` alias with a bad value reports that value's failure and `Validated _q as query.` — the same one it gets under `coerce: false`, reporting that order's rewrites and underscore-rule drops as `data.input` and in the hint. A declared key, an author-opened root, and a `headerParam` target are never touched. Server-level switches: `createApp({ input: { ignoreKeys, caseStyleAliases, coerce } })`. Counters, for the attempt the handler receives: `mcp.input.ignored_key`, `mcp.input.aliased`, `mcp.input.coerced` (once per repair kind). Lint: `input-alias-conflict`. See `add-tool` skill.
258
+ **Pre-validation:** an ordered step inside `parseToolArguments` rescues calls strict input would otherwise reject — drop client-added root keys (`_meta`, `tool_call_description`, `toolCallId`, any undeclared `_`-prefixed key) → rewrite key aliases (declared `inputAliases`, plus any undeclared key whose case-folded form names exactly one declared key) → parse → on failure, repair a JSON-stringified array or object, a safe integer where a string is expected (`8654467` → `"8654467"`), a string spelling a number or boolean where only those are accepted (`"15"` → `15`, `"true"` → `true`), or a lone string where an array is expected (`"yell"` → `["yell"]`, never one holding a comma or line break), and delete `null` at an optional key its object declares — first the stringified and integer repairs 0.13.13 made, at Zod's own issue paths in the arguments as sent, so every call they validated keeps its value (`'["USD"]'` beside a branch that splits a string → `["USD"]`, a repair the later ones keep, so a `count: "3"` beside it validates too), then at the paths the rejection renders, inside a union field's one surviving branch included (`[123, "a"]` against `string | string[]` → `["123", "a"]`), at a discriminator or literal tag no variant takes, read as a field holding every variant's tag (`{ kind: "1" }` against tags `1` and `2` → `{ kind: 1 }`), and inside what a `z.preprocess()` made of a value (a lone `{ year: 2020 }` a preprocess wraps as a list reaches the handler as `[{ year: "2020" }]`, the repair tried first in place at the issue path, so `[1, 2]` under a reversing preprocess still reaches it as `["2", "1"]`, then written into the output, which takes the argument's place only if the preprocess returns it unchanged) — then re-parse once, keeping the repair only if the schema then accepts it. If that still fails and the drop discarded a key, the stages rerun alias-first so `_query` or a declared `_q` alias reaches its target, and the retry (repair included) is kept only if it validates — a call the first order validates resolves exactly as it would without the retry. All on by default, and nothing changes the advertised `inputSchema`. A call that still fails throws the rejection of the last order tried — the retry's when it ran, so a declared `_q` alias with a bad value reports that value's failure and `Validated _q as query.` — parsed with only the repairs that held: a value the schema accepted once repaired is not reported (14 integer PMIDs against `.max(10)` report only the `too_big`; one that held only written in place under a `z.preprocess()` that reorders or rewrites it is the exception), and one whose repair it refused is reported as sent, so a call no repair helped gets exactly its `coerce: false` rejection — as does one the held repairs alone would validate (only a union or a cross-field refinement allows that), held values included. It reports that order's rewrites and underscore-rule drops as `data.input` and in the hint, names an alias sent beside its target as one (`maxResults is an alias of pageSize; send one of them, not both.`) rather than as an unknown or dropped key, and says nothing about a repair. The key stages never drop or rewrite a declared key, an author-opened root's keys, or a `headerParam` target. Server-level switches: `createApp({ input: { ignoreKeys, caseStyleAliases, coerce } })`. Counters, for the attempt the handler receives: `mcp.input.ignored_key`, `mcp.input.aliased`, `mcp.input.coerced` (once per repair kind). Lint: `input-alias-conflict`. See `add-tool` skill.
259
259
 
260
260
  **Header-mirrored input (2026-07-28):** `headerParam(z.string(), 'Region')` designates an input property with `x-mcp-header`, so its value also rides an `Mcp-Param-Region` request header and an intermediary can read it without parsing the body. Mirroring, not relocation — the handler still reads the argument from the body, and nothing else about the field changes. Only a primitive-typed (`string`/`integer`/`number`/`boolean`) property statically reachable through a chain of `properties` keys qualifies: an array element, a `z.record()` value, and every field of a discriminated-union input root are unreachable, and header names must be RFC 9110 tokens, case-insensitively unique per schema. `tool()` rejects a violation at definition time naming the field path — the SDK only warns, then conforming Streamable HTTP clients drop the tool. Lint rule: `header-param-designation`.
261
261
 
@@ -406,7 +406,7 @@ See `api-context` skill for full details.
406
406
 
407
407
  ## Error Handling
408
408
 
409
- **Recommended path: declare a typed error contract.** Add `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` to `tool()` / `resource()`. Handler gets `ctx.fail(reason, msg?, data?)` typed against the reason union — typos fail at compile time. Runtime auto-populates `data.reason` for observability; linter enforces conformance against the handler body. `recovery` is required (≥5 words, lint-validated) — the wire hint for its reason: when a failure whose `data.reason` names the entry reaches the tool or resource factory without `data.recovery`, the framework fills `data.recovery.hint` from it — a bare `ctx.fail('reason')` and a service throw carrying `{ reason }` alike, matched on the reason alone — and mirrors it into `content[]` text. Override with explicit `{ recovery: { hint: '...' } }` when runtime context matters; a throw-site `recovery` always wins, and the thrown `McpError` itself is never changed. Optional `severity` (`debug`/`info`/`notice`/`warning`) logs a modeled outcome below `error` — tools only, logging only: the wire envelope, the span status, and the `mcp.tool.*` metrics are untouched. The framework's own `invalid_arguments` and `client_capability_missing` refusals log at `notice` unless an entry naming them declares otherwise, and so does a tool's missing-scope refusal (the inline `auth` check or `checkScopes`), which carries no reason to declare; a missing auth context, a handler's own `forbidden()`, and an upstream 403 keep `error`. All three refusal records log no stack, whatever level an entry declares, and an argument rejection's record keeps at most the first 1,024 characters of each string and the first 10 entries of each array, the uncut length or count beside each cut. Optional `thrownBy: 'service'` marks an entry the service layer produces, so `error-contract-unthrown` skips it while still checking the handler's own reasons — lint-only metadata, nothing at runtime reads it.
409
+ **Recommended path: declare a typed error contract.** Add `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` to `tool()` / `resource()`. Handler gets `ctx.fail(reason, msg?, data?)` typed against the reason union — typos fail at compile time. Runtime auto-populates `data.reason` for observability; linter enforces conformance against the handler body. `recovery` is required (≥5 words, lint-validated) — the wire hint for its reason: when a failure whose `data.reason` names the entry reaches the tool or resource factory without `data.recovery`, the framework fills `data.recovery.hint` from it — a bare `ctx.fail('reason')` and a service throw carrying `{ reason }` alike, matched on the reason alone — and mirrors it into `content[]` text. Override with explicit `{ recovery: { hint: '...' } }` when runtime context matters; a throw-site `recovery` always wins, and the thrown `McpError` itself is never changed. Optional `severity` (`debug`/`info`/`notice`/`warning`) logs a modeled outcome below `error` — tools only, logging only: the wire envelope, the span status, and the `mcp.tool.*` metrics are untouched. The framework's own `invalid_arguments` and `client_capability_missing` refusals log at `notice` unless an entry naming them declares otherwise, and so does a tool's missing-scope refusal (the inline `auth` check or `checkScopes`), which carries no reason to declare; a missing auth context, a handler's own `forbidden()`, and an upstream 403 keep `error`. All three refusal records log no stack, whatever level an entry declares, and an argument rejection — its record and its `-32602` result alike — keeps at most the first 1,024 characters of each string and key, the first 10 entries of each array and keys of each object, two levels of lists and objects below each issue, and 30 issues in `data.issues`, the uncut length or count beside each cut. Optional `thrownBy: 'service'` marks an entry the service layer produces, so `error-contract-unthrown` skips it while still checking the handler's own reasons — lint-only metadata, nothing at runtime reads it.
410
410
 
411
411
  ```ts
412
412
  errors: [
@@ -446,7 +446,7 @@ For HTTP responses from upstream APIs, use `httpErrorFromResponse(response, { se
446
446
 
447
447
  **Auto-classification.** Plain `Error`, `ZodError`, and any other thrown value are caught and classified automatically. Resolution order: request signal already aborted (→ `RequestCancelled`, outranking the thrown value's own code, `McpError` included) → `McpError` code (preserved as-is) → SDK `ConnectionClosed` (→ `RequestCancelled`) → engine resource-limit `RangeError` by whole message — stack overflow, maximum string size (→ `InternalError`) → JS constructor name (`SyntaxError` → `ValidationError`; `TypeError` is excluded) → provider patterns (HTTP status codes, AWS errors, DB errors) → common message patterns → `AbortError` name (→ `Timeout`) → `InternalError` fallback. A result that breaks the definition's own `output` or `enrichment` schema fails as `InternalError` naming that contract, not `ValidationError`.
448
448
 
449
- **Error-path parity.** Tool errors: `content[]` carries `Error: <message>`, then `Recovery: <hint>` when the hint says something the message does not already contain, then a closing `(reason … · not retryable · request <id>)` for whichever of `data.reason` / `data.retryable` / `data.requestId` is present; the numeric code and `data.issues` stay JSON-only. `structuredContent.error` carries `{ code, message, data? }`. No `_meta.error`. Resources re-throw via JSON-RPC error envelope. An argument rejection is one of them: `-32602` with `data.issues`, plus `data.reason: 'invalid_arguments'` and a hint synthesized from the issues and the root schema — never a tool-declared `reason`, since the handler never ran. When pre-validation rewrote or dropped a key the caller wrote, `data.input` (`{ aliased: [{ alias, target }], ignored }`) names it and the hint closes with `Validated … as ….` / `Dropped undeclared key ….`; an ignore-list drop is never reported. `client_capability_missing` is the second framework-owned reason: a `ctx.requestInput` return a 2025-era connection cannot serve is refused before any wire traffic as `-32600` carrying that reason and a hint naming the capability. **`data.requestId`** is set on every error envelope the framework builds — tool results, resource reads, prompts, `httpErrorHandler`'s JSON-RPC errors — equal to the `requestId` of that call's log records: a token the framework generates per call, never the client's JSON-RPC id. Those records carry the client's id as `jsonRpcId` (string or number as sent; a string over 1,024 characters keeps at most its first 1,024, plus `jsonRpcIdLength`), and the response `id` is unchanged. A resource read refused before it is measured (auth, `params`) carries an id no record shares. It replaces a thrown `data.requestId`, is never added to the thrown `McpError`, and is left off a resource `-32602` whose `data` is exactly `{ uri }` and off `runToolContract` results.
449
+ **Error-path parity.** Tool errors: `content[]` carries `Error: <message>`, then `Recovery: <hint>` when the hint says something the message does not already contain, then a closing `(reason … · not retryable · request <id>)` for whichever of `data.reason` / `data.retryable` / `data.requestId` is present; the numeric code and `data.issues` stay JSON-only. `structuredContent.error` carries `{ code, message, data? }`. No `_meta.error`. Resources re-throw via JSON-RPC error envelope. An argument rejection is one of them: `-32602` with `data.issues`, plus `data.reason: 'invalid_arguments'` and a hint synthesized from the issues and the root schema — never a tool-declared `reason`, since the handler never ran. It is bounded whatever the caller sends: the message and the hint render the first 10 issue lines, each cut to its first 1,024 characters and ending `…` when cut, then ` (+N more)`; `data.issues` and `data.input` keep the first 10 entries of every array and keys of every object, the first 1,024 characters of every string and key, and two levels of lists and objects below each issue (a deeper one keeps no entries), the uncut count or length beside each cut under a name no kept key takes (`keysCount`, `keysLengths`, `paramsCount`, `<key>KeyLength`, …), and `data.issues` keeps at most 30 issues in all, read in document order through every union's branches. `issuesCount`, how many issues Zod raised at the top level, sits beside `data.issues` whenever it keeps fewer of them — past the first 10, or sooner when the 30-issue budget runs out — as `errorsCount` sits beside a union's cut branch list and `errorsLengths` beside a cut branch; a rejection within those caps is unchanged. When pre-validation rewrote or dropped a key the caller wrote, `data.input` (`{ aliased: [{ alias, target }], ignored }`) names it and the hint closes with `Validated … as ….` / `Dropped undeclared key ….`; an ignore-list drop is never reported. An alias the caller sent beside its target, which the key stages never rewrite, is named in the hint as `… is an alias of …; send one of them, not both.` (`send only one of them.` for three or more keys) where it would otherwise read as an unknown or dropped key. `client_capability_missing` is the second framework-owned reason: a `ctx.requestInput` return a 2025-era connection cannot serve is refused before any wire traffic as `-32600` carrying that reason and a hint naming the capability. **`data.requestId`** is set on every error envelope the framework builds — tool results, resource reads, prompts, `httpErrorHandler`'s JSON-RPC errors — equal to the `requestId` of that call's log records: a token the framework generates per call, never the client's JSON-RPC id. Those records carry the client's id as `jsonRpcId` (string or number as sent; a string over 1,024 characters keeps at most its first 1,024, plus `jsonRpcIdLength`), and the response `id` is unchanged. A resource read refused before it is measured (auth, `params`) carries an id no record shares. It replaces a thrown `data.requestId`, is never added to the thrown `McpError`, and is left off a resource `-32602` whose `data` is exactly `{ uri }` and off `runToolContract` results.
450
450
 
451
451
  **Lint rules** (all warnings, surfaced in `devcheck`): `prefer-mcp-error-in-handler`, `prefer-error-factory`, `preserve-cause-on-rethrow`, `no-stringify-upstream-error`, `error-contract-conformance`, `error-contract-prefer-fail`, `error-contract-unthrown` (a declared reason no literal `ctx.fail`/`ctx.recoveryFor` in the handler names, unless marked `thrownBy: 'service'`). See `api-linter` skill.
452
452
 
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <div align="center">
8
8
 
9
- [![Version](https://img.shields.io/badge/Version-0.13.13-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![MCP Spec](https://img.shields.io/badge/MCP%20Spec-2026--07--28-8A2BE2.svg?style=flat-square)](https://modelcontextprotocol.io/specification/2026-07-28)
9
+ [![Version](https://img.shields.io/badge/Version-0.13.14-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![MCP Spec](https://img.shields.io/badge/MCP%20Spec-2026--07--28-8A2BE2.svg?style=flat-square)](https://modelcontextprotocol.io/specification/2026-07-28)
10
10
 
11
11
  [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.2.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0%2B-blueviolet.svg?style=flat-square)](https://bun.sh/)
12
12
 
@@ -0,0 +1,68 @@
1
+ ---
2
+ summary: "Tool-argument pre-validation repairs numeric and boolean strings, lone strings for arrays, and null optionals, including inside unions, tags, and preprocess output; the -32602 rejection is bounded in size and CPU; prompt arguments are parsed once."
3
+ breaking: false
4
+ security: true
5
+ agent-notes: |
6
+ Adoption steps for a consumer upgrading from 0.13.13.
7
+
8
+ 1. Re-sync the skills (maintenance Phases A and B): `add-tool`, `api-errors`,
9
+ `api-telemetry`, `api-testing`, `design-mcp-server`, `field-test`.
10
+ 2. Tests that assert a rejection's full `data.issues` list, or a message or
11
+ hint naming every issue, change once it passes 10 issues, or 30 across
12
+ union branches: the message and hint end ` (+N more)`, `data.issues` is
13
+ cut, and `issuesCount`, `errorsCount`, and `<key>Count` / `<key>Length` /
14
+ `<key>Lengths` sit beside each cut. A string in `data.issues` or
15
+ `data.input` past 1,024 characters is cut the same way, and so are a
16
+ custom issue's `params`: an object past 10 keys (`<key>Count`), a key
17
+ past 1,024 characters (`<key>KeyLength`), and a list or object nested
18
+ more than two levels below an issue, which keeps no entries.
19
+ 3. Hint and message text moved. An alias sent beside its target reads
20
+ `<alias> is an alias of <target>; send one of them, not both.` in place
21
+ of `Unknown key …` or `Dropped undeclared key …`. A union whose branches
22
+ all failed on one literal tag reads `Invalid option: expected one of …`
23
+ at the tag's path. Under `z.preprocess()` or `.transform().pipe()`,
24
+ `Provide …` and `Missing required field` appear only where the caller
25
+ sent nothing, and a wrong type at the transform restates its issue line.
26
+ A rejection no longer lists a value its repair fixed.
27
+ 4. Test inputs that used to be rejected are now accepted: a numeric or
28
+ boolean string for a number or boolean, a lone string for an array,
29
+ `null` at an optional key (deleted, so a `.default()` applies), and a
30
+ value inside a union branch, a tag, or preprocess output. A negative test
31
+ that relied on one of them sends a boolean to a string, number, or list
32
+ field, or a non-numeric string to a number field, instead. Dashboards on
33
+ `mcp.input.coerced` gain four `mcp.input.coercion` values.
34
+ 5. A prompt test that asserted a transform's doubled output (`'hi!!'` for
35
+ `s => s + '!'`) now sees the single application (`'hi!'`), and a prompt
36
+ argument such as `z.stringbool()` now succeeds.
37
+ ---
38
+
39
+ # 0.13.14 — 2026-10-08
40
+
41
+ ## Added
42
+
43
+ - **Three more representation repairs** ([#707](https://github.com/cyanheads/mcp-ts-core/issues/707), [#602](https://github.com/cyanheads/mcp-ts-core/issues/602), [#616](https://github.com/cyanheads/mcp-ts-core/issues/616)): a string spelling a number or boolean (`"15"` → `15`), a lone string for an array (`"yell"` → `["yell"]`, never one holding a comma or line break), and `null` at an optional key, which is deleted. `mcp.input.coercion` gains `string_as_number`, `string_as_boolean`, `string_as_array`, `null_as_absent`; `coerce: false` turns them off.
44
+
45
+ ## Changed
46
+
47
+ - **Repairs reach a union field's one surviving branch** ([#570](https://github.com/cyanheads/mcp-ts-core/issues/570)), **a discriminator or literal tag no variant takes** ([#714](https://github.com/cyanheads/mcp-ts-core/issues/714)), and **what a `z.preprocess()` or `.transform().pipe()` made of the value** ([#599](https://github.com/cyanheads/mcp-ts-core/issues/599)): `[123, "a"]` against `string | string[]` reaches the handler as `["123", "a"]`, `{ kind: "1" }` against tags `1` and `2` as `{ kind: 1 }`. A call 0.13.13 repaired keeps its value.
48
+ - **A rejection reports only the repairs that held** ([#706](https://github.com/cyanheads/mcp-ts-core/issues/706)): fourteen integer PMIDs against `.max(10)` report the `too_big` alone, not fourteen `Send pmids.N as a string` sentences. A call no repair helped gets its `coerce: false` rejection.
49
+ - **An alias sent beside its target is named as one** ([#639](https://github.com/cyanheads/mcp-ts-core/issues/639)): `maxResults is an alias of pageSize; send one of them, not both.` replaces the unknown-key or dropped-key sentence. The message, `data.issues`, and `data.input` are unchanged.
50
+ - **A union whose branches all failed on one literal tag renders that literal once**, at its full path, naming every branch's value (`target.kind: Invalid option: expected one of "a"|"b"`).
51
+ - **The `-32602` result is cut at 10 issue lines** in the message and hint (each at most 1,024 characters, then ` (+N more)`), 10 entries per array and keys per object, 1,024 characters per string and key, and two levels of lists and objects below each issue in `data.issues` and `data.input`, and 30 issues in all through union branches. `issuesCount`, `errorsCount`, and `<key>Count` / `<key>Length` / `<key>KeyLength` / `<key>Lengths` record each cut, never under a kept key's name.
52
+ - **Skills** — `add-tool` 2.34, `api-errors` 1.22, `api-telemetry` 1.20, `api-testing` 1.15, `design-mcp-server` 2.32 (a `.max()` earns its place; an output-only ceiling takes none; a write batch over its cap rejects before doing anything), `field-test` 2.21 (probe one past a bound).
53
+
54
+ ## Fixed
55
+
56
+ - **Prompt arguments are parsed once, by the SDK** ([#643](https://github.com/cyanheads/mcp-ts-core/issues/643)): `z.stringbool()` and type-changing `.transform()` arguments no longer reject every call, an async refinement no longer fails with `-32603`, and a transform runs once, so `s => s + '!'` hands `generate` `hi!`, not `hi!!`.
57
+ - **A rejection under a `z.preprocess()` or `.transform().pipe()` no longer says `Provide` or `Missing required field` for a value the caller sent** ([#599](https://github.com/cyanheads/mcp-ts-core/issues/599)): a lone object a preprocess wraps as a list renders as its list form, and a wrong type at the transform restates its issue line instead of `Send … as …`.
58
+ - **The integration lane's build-freshness check compares only the files the TypeScript build reads**, so a stray dotfile no longer marks `dist/` stale.
59
+
60
+ ## Security
61
+
62
+ - **A tool-argument rejection's size and CPU are bounded** whatever the caller sends, recursive union schemas and caller data a custom issue carries included ([#648](https://github.com/cyanheads/mcp-ts-core/issues/648)). The cut and the 30-issue budget bound the size; the rejection's readers and schema walks each read a shared issue or union once, which bounds the CPU.
63
+ - **The repair's container writes are linear in a request's issue count**: each container on the repaired paths is copied once, however many values it repairs.
64
+
65
+ ## Dependencies
66
+
67
+ - Dev: `pino-pretty` ^13.1.3 → ^13.2.0, `openai` ^7.27.0 → ^7.28.0.
68
+ - Lockfile only: `sonic-boom` 4.2.1 → 5.0.1 for `pino-pretty` (`pino` keeps 4.2.1).
@@ -119,9 +119,10 @@ export interface CreateAppOptions<TSupabaseClient extends object = SupabaseClien
119
119
  * Switches for the pre-validation step every `tools/call` argument object
120
120
  * passes through: dropping client-added root keys, then rewriting key
121
121
  * aliases, and, after a failed parse, repairing a JSON-stringified array or
122
- * object or an integer sent for a string. When that still fails and the drop
123
- * discarded a key, the stages rerun alias-first, kept only if the call then
124
- * validates.
122
+ * object, an integer sent for a string, a string sent for a number or
123
+ * boolean, a lone string sent for an array, or `null` sent for an optional
124
+ * field. When that still fails and the drop discarded a key, the stages rerun
125
+ * alias-first, kept only if the call then validates.
125
126
  *
126
127
  * Every stage is on with no configuration. An entry here either extends a
127
128
  * stage or turns it off for the whole server; nothing about the advertised
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/core/app.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,MAAM,EAA6B,MAAM,mBAAmB,CAAC;AAEtE,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAE1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAEhG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAK3F,OAAO,EACL,KAAK,sBAAsB,EAE3B,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,EAAE,MAAM,EAAoB,MAAM,4BAA4B,CAAC;AAKtE,OAAO,EAAwB,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAQpF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;OASG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;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iBlD;IAED,+EAA+E;IAC/E,OAAO,CAAC,gBAAgB;YAUV,cAAc;CA+G7B"}
@@ -75,12 +75,19 @@ export class PromptRegistry {
75
75
  additionalContext: { promptName: promptDef.name },
76
76
  });
77
77
  try {
78
- // An argless prompt's `generate` is typed to receive `{}`; its
79
- // input measures as nothing.
80
- const validatedArgs = promptDef.args ? promptDef.args.parse(args) : {};
78
+ /**
79
+ * `args` is already the SDK's parse of the wire arguments against
80
+ * `argsSchema`: transforms applied once, defaults filled, async
81
+ * refinements awaited, and invalid input refused as `-32602`
82
+ * before this callback runs. Parsing that output again would
83
+ * apply every transform twice and refuse any argument whose
84
+ * output is not valid input, such as `z.stringbool()` (#643).
85
+ * An argless prompt's `generate` is typed to receive `{}`; its
86
+ * `undefined` input measures as nothing.
87
+ */
81
88
  const messages = await measurePromptGeneration(async () => {
82
89
  try {
83
- return await promptDef.generate(validatedArgs);
90
+ return await promptDef.generate((promptDef.args ? args : {}));
84
91
  }
85
92
  catch (error) {
86
93
  // Inside the measurement, as for tools and resources: an
@@ -92,7 +99,7 @@ export class PromptRegistry {
92
99
  ? await sealSignal(error, this.requestState, serverContext)
93
100
  : error;
94
101
  }
95
- }, { ...requestContext, promptName: promptDef.name }, promptDef.args ? validatedArgs : undefined);
102
+ }, { ...requestContext, promptName: promptDef.name }, args);
96
103
  return { messages };
97
104
  }
98
105
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-registration.js","sourceRoot":"","sources":["../../../src/mcp-server/prompts/prompt-registration.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,qBAAqB,EAErB,UAAU,GACX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2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,aAAa,EAC3E,OAAO,CAAC,OAAO,EACf,EAAE,GAAG,iBAAiB,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC,SAAS,EAAE,EACpE,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;gBACJ,CAAC;YACH,CAAC,CACF,CAAC;YAEF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,SAAS,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QACrE,CAAC,EACD;YACE,SAAS,EAAE,qBAAqB,SAAS,CAAC,IAAI,EAAE;YAChD,OAAO;YACP,SAAS,EAAE,gBAAgB,CAAC,oBAAoB;YAChD,QAAQ,EAAE,IAAI;SACf,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"prompt-registration.js","sourceRoot":"","sources":["../../../src/mcp-server/prompts/prompt-registration.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,qBAAqB,EAErB,UAAU,GACX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,MAAM,OAAO,cAAc;IAUf,UAAU;IACV,MAAM;IACN,YAAY;IAXtB,sEAAsE;IACrD,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IAErD;;;;OAIG;IACH,YACU,UAAiC,EACjC,MAA4B,EAC5B,YAAiC;0BAFjC,UAAU;sBACV,MAAM;4BACN,YAAY;IACnB,CAAC;IAEJ;;;OAGG;IACH,KAAK,CAAC,WAAW,CAAC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undefin
24
24
  /** LLM-facing description. */
25
25
  description: string;
26
26
  /**
27
- * Generates the prompt messages from validated arguments.
27
+ * Generates the prompt messages from the `args` schema's parsed output. The
28
+ * wire arguments are validated once, before `generate` runs: transforms have
29
+ * applied, defaults are filled, and async refinements have passed. An
30
+ * argless prompt receives `{}`.
28
31
  */
29
32
  generate: (args: TArgs extends ZodObject<ZodRawShape> ? z.infer<TArgs> : Record<string, never>) => PromptMessage[] | Promise<PromptMessage[]>;
30
33
  /** Programmatic unique name (snake_case). */
@@ -1 +1 @@
1
- {"version":3,"file":"promptDefinition.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/utils/promptDefinition.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,KAAK,SAAS,SAAS,CAAC,WAAW,CAAC,GAAG,SAAS,GAAG,SAAS;IAC5F;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,CACR,IAAI,EAAE,KAAK,SAAS,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAChF,aAAa,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAChD,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,kFAAkF;AAClF,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAA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AAC,GAAG,SAAS,CAAC,CAAC;AAMvF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,KAAK,SAAS,SAAS,CAAC,WAAW,CAAC,GAAG,SAAS,GAAG,SAAS,EACjF,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAC7C,gBAAgB,CAAC,KAAK,CAAC,CAEzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"promptDefinition.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/utils/promptDefinition.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA2CH,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,MAAM,CACpB,IAAY,EACZ,OAA8C;IAE9C,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"file":"promptDefinition.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/utils/promptDefinition.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA8CH,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,MAAM,CACpB,IAAY,EACZ,OAA8C;IAE9C,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;AAC9B,CAAC"}