NAME
MCP - Model Context Protocol Perl SDK
SYNOPSIS
use Mojolicious::Lite -signatures;
use MCP::Server;
my $server = MCP::Server->new;
$server->tool(
name => 'echo',
description => 'Echo the input text',
input_schema => {type => 'object', properties => {msg => {type => 'string'}}, required => ['msg']},
code => sub ($tool, $args) {
return "Echo: $args->{msg}";
}
);
any '/mcp' => $server->to_action;
app->start;
DESCRIPTION
A Perl SDK for the Model Context Protocol (MCP).
SEE ALSO
Mojolicious, https://mojolicious.org, https://modelcontextprotocol.io.