MCP
view release on metacpan or search on metacpan
- Added get_prompt and list_pronmpts methods to MCP::Client.
- Added prompt method to MCP::Server.
0.04 2025-08-04
- Added support for structured content.
- Added output_schema attribute to MCP::Tool.
- Added structured_result method to MCP::Tool.
0.03 2025-08-01
- Added image_result method to MCP::Tool.
- Improved streaming HTTP transport to use SSE for async responses.
0.02 2025-08-01
- Fixed support for tool calls without arguments.
0.01 2025-08-01
- First release.
code => sub ($tool, $args) {
return "Echo: $args->{msg}";
}
);
any '/mcp' => $server->to_action;
app->start;
Authentication can be added by the web application, just like for any other route. To allow for MCP applications to
scale with prefork web servers, server to client streaming is currentlly avoided when possible.
=head3 Stdio Transport
Build local command line applications and use the stdio transport for testing with the L<MCP::Server/"to_stdio">
method.
use Mojo::Base -strict, -signatures;
use MCP::Server;
( run in 0.481 second using v1.01-cache-2.11-cpan-4face438c0f )