table of contents
MCP::Server::Transport::Stdio(3) | User Contributed Perl Documentation | MCP::Server::Transport::Stdio(3) |
NAME¶
MCP::Server::Transport::Stdio - Stdio transport for MCP servers
SYNOPSIS¶
use MCP::Server::Transport::Stdio; my $stdio = MCP::Server::Transport::Stdio->new;
DESCRIPTION¶
MCP::Server::Transport::Stdio is a transport for MCP (Model Context Protocol) server that reads requests from standard input (STDIN) and writes responses to standard output (STDOUT). It is designed for command-line tools and debugging tasks.
ATTRIBUTES¶
MCP::Server::Transport::Stdio inherits all attributes from MCP::Server::Transport.
METHODS¶
MCP::Server::Transport::Stdio inherits all methods from MCP::Server::Transport and implements the following new ones.
handle_requests¶
$stdio->handle_requests;
Reads requests from standard input and prints responses to standard output.
SEE ALSO¶
MCP, <https://mojolicious.org>, <https://modelcontextprotocol.io>.
2025-08-05 | perl v5.42.0 |