@mcp-b/webmcp-types 4.0.0-beta.20260702175639 → 4.0.0

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 (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -152,7 +152,9 @@ If `required` is widened (for example a runtime `string[]`), fields are treated
152
152
 
153
153
  ### 5. Output inference from `outputSchema`
154
154
 
155
- When `outputSchema` is a literal object schema, `structuredContent` is inferred automatically via `ToolResultFromOutputSchema`.
155
+ When `outputSchema` is a literal JSON Schema, `structuredContent` is inferred automatically via `ToolResultFromOutputSchema`. Object, array, string, number, boolean, and null schemas are supported for MCP-B type inference.
156
+
157
+ Native Chrome WebMCP does not currently define or enforce `outputSchema`; treat it as helper metadata unless a specific MCP-B runtime or adapter consumes it.
156
158
 
157
159
  This catches enum/type mismatches at compile time.
158
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/webmcp-types",
3
- "version": "4.0.0-beta.20260702175639",
3
+ "version": "4.0.0",
4
4
  "description": "Strict TypeScript type definitions for the WebMCP core API (document.modelContext)",
5
5
  "keywords": [
6
6
  "document-modelcontext",