stdio-transport
A WIT framework for composing Model Context Protocol servers as WebAssembly components.
https://modelcontextprotocol.io/specification/2025-06-18/schema Transport components terminate the transport layer protocol and forward the MCP request resource and output stream handle to the first handler in the chain.
Middleware components intercept an MCP request resource. They can modify the request context before passing the resource to the next handler.
Handler components process specific MCP methods and can forward the request resource to the next handler in the chain.
The initialize method handler is the final handler in the chain. It processes the initialize MCP request using the server capabilities added to the request context by upstream handlers and middleware.
Transport world for stdio-based MCP communication.
This world provides MCP server functionality over standard I/O, suitable for command-line tools and local process communication.
Exports
Imports
terminal-input for stdin as a link-time authority.terminal-output for stdout as a link-time authority.terminal-output for stderr as a link-time authority.