| 1 | package MCP::Server::Transport; | ||
| 2 | 4 | ▶ | use Mojo::Base -base, -signatures; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 4 | has 'server'; | |
| 5 | |||
| 6 | 0 | ▶ | sub notifications ($self) {1} |
|
Subroutine
notifications: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 7 | |||
| 8 | 4 | 1; | |
| 9 | |||
| 10 | =encoding utf8 | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | MCP:Transport - Transport base class | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | package MyMCPTransport; | ||
| 19 | use Mojo::Base 'MCP::Server::Transport'; | ||
| 20 | |||
| 21 | 1; | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | L<MCP::Server::Transport> is a base class for MCP (Model Context Protocol) transport implementations. | ||
| 26 | |||
| 27 | =head1 ATTRIBUTES | ||
| 28 | |||
| 29 | L<MCP::Server::Transport> implements the following attributes. | ||
| 30 | |||
| 31 | =head2 server | ||
| 32 | |||
| 33 | my $server = $transport->server; | ||
| 34 | $transport = $transport->server(MCP::Server->new); | ||
| 35 | |||
| 36 | The server instance that this transport is associated with. | ||
| 37 | |||
| 38 | =head1 METHODS | ||
| 39 | |||
| 40 | L<MCP::Server::Transport> implements the following methods. | ||
| 41 | |||
| 42 | =head2 notifications | ||
| 43 | |||
| 44 | my $bool = $transport->notifications; | ||
| 45 | |||
| 46 | True when the transport can push server-to-client notifications outside an in-flight response. | ||
| 47 | |||
| 48 | =head1 SEE ALSO | ||
| 49 | |||
| 50 | L<Mojolicious>, L<https://mojolicious.org>, L<https://modelcontextprotocol.io>. | ||
| 51 | |||
| 52 | =cut | ||