Skip to content

Conversation

@mcandeia
Copy link
Collaborator

@mcandeia mcandeia commented Jan 5, 2026

Summary by cubic

Fix JSON Schema generation for forms and tools by handling unrepresentable Zod types and aligning schemas across MCP and Gateway. This restores valid tool schemas and prevents form rendering issues.

  • Bug Fixes
    • Use z.toJSONSchema(..., { unrepresentable: "any" }) for MCP server, Gateway tools, runtime tools, and BaseCollection schema.
    • Simplify non-representable Zod types: DataContentSchema is now string-only; headers use string.optional to avoid unions with undefined.
    • Replace usage object transform with loose to allow provider-specific fields without breaking schema conversion.
    • Normalize response.timestamp to string in bindings; convert to Date in the provider for consumers.
    • Bump @decocms/runtime to 1.1.1.

Written for commit 3b6b436. Summary will update on new commits.

Signed-off-by: Marcos Candeia <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

🧪 Benchmark

Should we run the MCP Gateway benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

Release Options

Should a new version be published when this PR is merged?

React with an emoji to vote on the release type:

Reaction Type Next Version
👍 Prerelease 1.0.24-alpha.1
🎉 Patch 1.0.24
❤️ Minor 1.1.0
🚀 Major 2.0.0

Current version: 1.0.23

Deployment

  • Deploy to production (triggers ArgoCD sync after Docker image is published)

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants