Module stdio

Source
Expand description

Standard I/O Transport Implementation

This module provides a transport implementation that uses standard input/output (stdio) for communication. This is particularly useful for:

  • Command-line tools that need to communicate with an MCP server
  • Local development and testing
  • Situations where network transport is not desired or available

The implementation uses Tokio for asynchronous I/O operations and provides thread-safe access to stdin/stdout through Arc and Mutex.

Structsยง

StdioTransport