josharsh / josharsh/webmcp-tools

Support outputSchema on tool descriptors (spec issue #9)

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement spec-tracking
Dominant language
TypeScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The WebMCP spec is converging on structured `outputSchema` contracts complementing `inputSchema` ([webmachinelearning/webmcp#9](https://github.com/webmachinelearning/webmcp/issues/9)), matching MCP's `outputSchema`.

## Task
- Add `output?: ToolInput` / `outputJsonSchema?` to `ToolDefinition`
- Derive descriptor field via the existing converter registry
- Optionally validate `run()` results against it in dev (warn, don't throw)
- Bridge: forward `outputSchema` to MCP `Tool.outputSchema`
- Keep it out of the ponyfill's spec-shaped surface until the spec lands the field name

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.