@jaypie/mcp 0.8.185 → 0.8.186

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/dist/assets.js CHANGED
@@ -55,11 +55,11 @@ function getMcpAssetPaths() {
55
55
  */
56
56
  function getMcpBuildInfo() {
57
57
  return {
58
- commit: "a5a715a3"
58
+ commit: "5f9c6bfe"
59
59
  ,
60
- version: "0.8.185"
60
+ version: "0.8.186"
61
61
  ,
62
- versionString: "@jaypie/mcp@0.8.185#a5a715a3"
62
+ versionString: "@jaypie/mcp@0.8.186#5f9c6bfe"
63
63
  ,
64
64
  };
65
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/mcp",
3
- "version": "0.8.185",
3
+ "version": "0.8.186",
4
4
  "description": "Jaypie MCP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,9 @@
1
+ ---
2
+ version: 1.2.121
3
+ date: 2026-10-08
4
+ summary: Pulls @jaypie/llm 1.3.62
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - **`@jaypie/llm` 1.3.62**: Anthropic `format` schemas with more than 16 nullable or union-typed parameters answer through the `structured_output` tool path.
@@ -0,0 +1,22 @@
1
+ ---
2
+ version: 1.3.62
3
+ date: 2026-10-08
4
+ summary: Anthropic format schemas with more than 16 nullable or union-typed parameters answer through the structured_output tool path
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ ### Union parameter limit (issue #616)
10
+
11
+ Anthropic rejects native structured output (`output_config.format`) when a schema carries more than 16 union-typed parameters, and every `.nullable()` field is one. The 400 ("Schemas contains too many parameters with union types") matched none of the patterns that trigger the `structured_output` tool fallback, so `operate` failed, and an Anthropic fallback in a chain could not serve such a schema.
12
+
13
+ - `AnthropicAdapter.buildRequest` counts the schema's union-typed parameters (`anyOf` or a `type` array, at any depth) and sends a schema over 16 straight to the tool path, avoiding the rejected round trip.
14
+ - The union-limit 400 is retried through the tool path for the request that received it.
15
+ - Neither path demotes the model. The limit belongs to the schema, so the same model keeps native `output_config.format` for smaller schemas.
16
+ - Both log at debug.
17
+ - Citations and deprecated-field 400s still propagate unchanged.
18
+
19
+ ## Testing
20
+
21
+ - `AnthropicAdapter.spec.ts` covers the retry, the model staying native afterward, the count at 16 and 17, `type` arrays and nested unions, and the debug log on each path.
22
+ - Verified live on `claude-sonnet-5-5` and `claude-opus-5-5`: the API accepts 16 union-typed parameters natively and rejects 17.
@@ -0,0 +1,10 @@
1
+ ---
2
+ version: 0.8.186
3
+ date: 2026-10-08
4
+ summary: Release notes for @jaypie/llm 1.3.62 and jaypie 1.2.121; llm skill documents Anthropic's union parameter limit
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - **Release notes**: `@jaypie/llm` 1.3.62 and `jaypie` 1.2.121
10
+ - **`llm` skill**: Anthropic's limit of 16 union-typed parameters on native structured output
package/skills/llm.md CHANGED
@@ -410,6 +410,8 @@ const result = await Llm.operate(
410
410
  );
411
411
  ```
412
412
 
413
+ Anthropic's native structured output accepts at most 16 union-typed parameters per schema, and every `.nullable()` field counts as one. A larger schema is answered through a `structured_output` tool call instead and still returns parsed JSON in `content`.
414
+
413
415
  ### Bare JSON Schema
414
416
 
415
417
  `format` also duck-types a bare JSON Schema object node — `{ type: "object", properties: {...} }` — without needing the OpenAI-style `{ type: "json_schema", ... }` envelope. `required` is honored.