@wrongstack/mcp 1.0.4 → 1.0.5

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/index.js CHANGED
@@ -5128,13 +5128,17 @@ var MCPServer = class {
5128
5128
  * tools are written against the schema they declared.
5129
5129
  *
5130
5130
  * SCOPE: `validateAgainstSchema` is the shared validator that also gates the
5131
- * agent's own tool executor. It checks `type`, `enum`, and `required`, and
5132
- * recurses through `properties`/`items` it does NOT check
5133
- * `additionalProperties: false`, numeric bounds, or string lengths. So those
5134
- * keywords stay advisory here. Teaching the shared validator about them
5135
- * would change what the agent accepts on every tool call in the product,
5136
- * which is a deliberate decision that does not belong inside a transport
5137
- * fix; it is tracked separately.
5131
+ * agent's own tool executor. It checks `type`, `enum`, `required`, recurses
5132
+ * through `properties`/`items`, enforces numeric bounds
5133
+ * (`minimum`/`maximum`), rejects unknown keys on strict-closed objects
5134
+ * (`additionalProperties: false`), validates the `additionalProperties`
5135
+ * subschema form against unknown-key values, applies `patternProperties`
5136
+ * to matching keys, enforces string lengths (`minLength`/`maxLength`) and
5137
+ * `pattern`, array lengths (`minItems`/`maxItems`/`uniqueItems`), and the
5138
+ * combinators `allOf`/`anyOf`/`oneOf` (all landed 2026-09-11). Still
5139
+ * advisory per the 2026-09-11 usage survey: `const` and `$ref` — declared
5140
+ * only in the techstack rulebook, which validates with its own
5141
+ * `validateRulebook`, not this validator.
5138
5142
  *
5139
5143
  * Unknown tool names are left alone — the host owns that error, and
5140
5144
  * answering "no such tool" here would fork the message for no benefit.
package/dist/server.d.ts CHANGED
@@ -93,13 +93,17 @@ export declare class MCPServer {
93
93
  * tools are written against the schema they declared.
94
94
  *
95
95
  * SCOPE: `validateAgainstSchema` is the shared validator that also gates the
96
- * agent's own tool executor. It checks `type`, `enum`, and `required`, and
97
- * recurses through `properties`/`items` it does NOT check
98
- * `additionalProperties: false`, numeric bounds, or string lengths. So those
99
- * keywords stay advisory here. Teaching the shared validator about them
100
- * would change what the agent accepts on every tool call in the product,
101
- * which is a deliberate decision that does not belong inside a transport
102
- * fix; it is tracked separately.
96
+ * agent's own tool executor. It checks `type`, `enum`, `required`, recurses
97
+ * through `properties`/`items`, enforces numeric bounds
98
+ * (`minimum`/`maximum`), rejects unknown keys on strict-closed objects
99
+ * (`additionalProperties: false`), validates the `additionalProperties`
100
+ * subschema form against unknown-key values, applies `patternProperties`
101
+ * to matching keys, enforces string lengths (`minLength`/`maxLength`) and
102
+ * `pattern`, array lengths (`minItems`/`maxItems`/`uniqueItems`), and the
103
+ * combinators `allOf`/`anyOf`/`oneOf` (all landed 2026-09-11). Still
104
+ * advisory per the 2026-09-11 usage survey: `const` and `$ref` — declared
105
+ * only in the techstack rulebook, which validates with its own
106
+ * `validateRulebook`, not this validator.
103
107
  *
104
108
  * Unknown tool names are left alone — the host owns that error, and
105
109
  * answering "no such tool" here would fork the message for no benefit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack Model Context Protocol client and registry: stdio, SSE, and streamable HTTP transports.",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "!dist/**/*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "@wrongstack/core": "1.0.4",
29
+ "@wrongstack/core": "1.0.5",
30
30
  "undici": "^8.10.0"
31
31
  },
32
32
  "devDependencies": {