josharsh / josharsh/webmcp-tools
Support outputSchema on tool descriptors (spec issue #9)
Open
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
Assessment
This issue has not been assessed yet.