v0.3.1-alpha.4 · World
middleware
A WIT framework for composing Model Context Protocol servers as WebAssembly components.
https://modelcontextprotocol.io/specification/2025-06-18/schema Middleware world for request interception.
Both imports and exports the handler interface, enabling components to intercept requests before forwarding to the next handler.
Imports
I
wasi:io/error 0.2.3
Iwasi:io/poll 0.2.3
IA poll API intended to let users wait for I/O events on multiple handles at once.
wasi:io/streams 0.2.3
IWASI I/O is an I/O abstraction API which is currently focused on providing stream types.
protocol
Irequest
IMCP request context
incoming-handler
Handler interface for incoming MCP requests.