API
The complete h3-mcp surface: exports, options, request context, and wire methods.
#API Reference
The runtime surface is deliberately small — one handler factory, four identity helpers, and one error class. Everything else is types you never have to import.
import { defineMcpHandler, defineTool } from "h3-mcp";Exports
defineMcpHandler, the define* helpers, McpJsonRpcError, and the type index.
Handler Options
Every field of HandlerOptions, including dynamic resolution.
Request Context
event.context.mcp — everything about the request in flight.
JSON-RPC Methods
What the handler answers, and on which era.
Read more in Guide.