Packages / openSUSE Leap 16.0 / Source / perl-MCP

Source Package: perl-MCP (0.80.0-bp160.1.1)

Connect Perl with AI using MCP (Model Context Protocol)

Connect Perl with AI using the Model Context Protocol (MCP). Currently this module is focused on tool calling, but it will be extended to support other MCP features in the future. At its core, MCP is all about text processing, making it a great fit for Perl. Streamable HTTP Transport Use the MCP::Server/"to_action" method to add an MCP endpoint to any Mojolicious application. The tool name and description are used for discovery, and the at https://json-schema.org is used to validate the input. 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; 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. Stdio Transport Build local command line applications and use the stdio transport for testing with the MCP::Server/"to_stdio" method. use Mojo::Base -strict, -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}"; } ); $server->to_stdio; Just run the script and type requests on the command line. $ perl examples/echo_stdio.pl {"jsonrpc":"2.0","id":"1","method":"tools/list"} {"jsonrpc":"2.0","id":"2","method":"tools/call","params":{"name":"echo","arguments":{"msg":"hello perl"}}}

Package information

Homepage
[https://metacpan.org/release/MCP]
License
MIT
Mainteneur du paquet aval
Inconnu : non déclaré dans la source indexée

The following binary packages are built from this source package:

  • perl-MCP

    Connect Perl with AI using MCP (Model Context Protocol)

Vulnérabilités connues

Aucun avis correspondant dans les sources suivies.

Dernière synchronisation:

[Catalogue CVE]

Sources

  • Authoritative source; repository metadata signature verified

    Preuve de signature

    leap-16-0-oss-multiarch:271b36d440253edf9871ac0c100319fc7443d8f2d54b6b449a72e9414c51577c

    Repository-signature verification record
    Signed-object SHA-256
    271b36d440253edf9871ac0c100319fc7443d8f2d54b6b449a72e9414c51577c
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable