Skip to content

fix(nitro): support Valibot schemas - #326

Open
onmax wants to merge 2 commits into
nuxt-modules:mainfrom
onmax:fix/nitro-valibot-schemas
Open

fix(nitro): support Valibot schemas#326
onmax wants to merge 2 commits into
nuxt-modules:mainfrom
onmax:fix/nitro-valibot-schemas

Conversation

@onmax

@onmax onmax commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Resolves #313

📚 Description

The Nitro v3 package accepts raw Valibot schemas, but they do not expose Standard JSON Schema. This caused tools/list to return Valibot's internal schema and left prompt arguments empty.

This wraps raw Valibot schemas with the official converter before they reach h3-mcp. It covers tool inputs, tool outputs, and prompt arguments while preserving validation and transforms such as trim.

The converter is bundled into nitro-mcp-toolkit, so users do not need to install it.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly. No change was needed because this restores the documented Valibot support.

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

@onmax is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the bug Something isn't working label Aug 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@pkg-pr-new

pkg-pr-new Bot commented Aug 24, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/nitro-mcp-toolkit@326
npm i https://pkg.pr.new/@nuxtjs/mcp-toolkit@326

commit: c56ff77

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

valibot schemas fail during tools/list

1 participant