NAME
Net::Async::MCP::Server::Transport::Stdio - Stdio transport for Net::Async::MCP::Server
VERSION
version 0.001
SYNOPSIS
use Net::Async::MCP::Server::Transport::Stdio;
my $transport = Net::Async::MCP::Server::Transport::Stdio->new(
server => $server,
);
$transport->handle_requests;
DESCRIPTION
Stdio transport for MCP server using newline-delimited JSON-RPC over stdin/stdout.
Each line is a JSON-RPC 2.0 message. Requests are read from stdin, responses written to stdout.
METHODS
method new(%params)
Creates a new Stdio transport. Parameters:
server(required)-
The Net::Async::MCP::Server instance to handle requests.
method server
Returns the server instance.
method handle_requests
Enters the main loop, reading JSON-RPC requests from stdin and writing responses to stdout. This method blocks until stdin is closed or a fatal error occurs.
method _send_response($response)
Internal method to send a JSON-RPC response to stdout.
SEE ALSO
Net::Async::MCP::Server, IO::Async::Notifier.
SEE ALSO
Net::Async::MCP::Server, IO::Async::Notifier.
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-net-async-mcp-run/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.