File Coverage

blib/lib/MCP/Server/Transport.pm
Criterion Covered Total %
statement 3 7 42.8
branch n/a
condition n/a
subroutine 1 2 50.0
pod 1 1 100.0
total 5 10 50.0


line stmt bran cond sub pod time code
1             package MCP::Server::Transport;
2 4     4   2083 use Mojo::Base -base, -signatures;
  4         7  
  4         23  
3              
4             has 'server';
5              
6 0     0 1   sub notifications ($self) {1}
  0            
  0            
  0            
7              
8             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 is a base class for MCP (Model Context Protocol) transport implementations.
26              
27             =head1 ATTRIBUTES
28              
29             L 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 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, L, L.
51              
52             =cut