josharsh / josharsh/webmcp-tools

Valibot adapter: webmcp-tools/valibot

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
adapter good first issue help wanted
Dominant language
TypeScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Valibot schemas already validate at runtime via Standard Schema — only JSON Schema **descriptor generation** is missing.

## Task
Add a `webmcp-tools/valibot` subpath export (mirror `src/zod.ts`):
- Use [`@valibot/to-json-schema`](https://github.com/fabian-hiller/valibot/tree/main/packages/to-json-schema)
- Call `registerSchemaConverter("valibot", fn)` as a side effect
- Optional peer dep + tsup entry + exports map entry (copy the `./zod` pattern in `packages/core/package.json`, including the `.d.cts` require condition)
- Tests colocated: descriptor derivation + end-to-end `tool()` registration with a valibot schema

## Pointers
- `packages/core/src/zod.ts` is the 30-line template
- `packages/core/src/schema.ts` → `resolveInputSchema` shows how converters are looked up by `~standard.vendor`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.