v0.4.0 · World
server-middleware
Server middleware component world
Middleware components sit between transports and other handlers in the pipeline, providing cross-cutting concerns like:
- Wrapping capability components (tools-capability → tools-middleware → server-handler)
- Adding instrumentation, logging, or monitoring
- Implementing request/response transformation
Middleware imports server-handler (to call downstream) and exports server-handler (to receive from upstream), forming a linear chain.
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
IModel Context Protocol (MCP) core types and messages
server-handler
Server-side MCP request/response handler interface