blib/lib/AnyEvent/MCP/Server.pm

filter: Statementstmt 98.3% 182 / 185 Branchbran 89.8% 106 / 118 Conditioncond 71.5% 98 / 137 MC/DCmcdc 52.2% 35 / 67 Subroutinesub 94.7% 18 / 19 Podpod 100% 4 / 4 totaltotal 83.5% 443 / 530 CC 107 SCAR 41.1
CC
107
Cov
88%
rpc
104.1
__ANON__
12.0
_dispatch
11.1
CRAP 60.8
« bin/anyevent-mcp-form-elicitation ↑ Summary blib/lib/AnyEvent/MCP/Server/Permissions.pm »
1 =head1 NAME
2  
3 AnyEvent::MCP::Server - MCP request dispatch and JSON-RPC framing
4  
5 =head1 DESCRIPTION
6  
7 An MCP server needs to understand requests, but it does not necessarily need
8 to own a listening socket. This class handles the protocol: it accepts decoded
9 JSON-RPC objects (or UTF-8 JSON), dispatches requests and delivers responses
10 through callbacks. Its subclasses L<AnyEvent::MCP::Server::JSONL> and
11 L<AnyEvent::MCP::Server::HTTP> handle the actual connections. If you are
12 writing a standalone server, L<AnyEvent::MCP::Server::Simple> is usually
13 the easier starting point.
14  
15 The server implements discovery, initialization, ping and tool listing/calls.
16 The 2025 compatibility path supports ordinary requests and responses, but
17 not server-initiated requests. Permission asking supports modern input
18 challenges as well as local helpers. SSE, subscriptions and schema validation
19 are not implemented yet.
20  
21 The usual object-level assembly is a
22 L<AnyEvent::MCP::Server::Toolset> holding tool callbacks, a Server
23 handling protocol messages, and a transport accepting connections.
24 Use L<AnyEvent::MCP::Server::HTTP/FIRST USE> for an executable HTTP
25 assembly or L<AnyEvent::MCP::Server::JSONL/EXAMPLE> for stdio.
26 The corresponding client entry point is L<AnyEvent::MCP::Client>.
27  
28 Only embedders that already own their transport need C<rpc> or
29 C<json_rpc> directly; these methods do not create connections or run
30 the event loop.
31  
32 =head1 METHODS
33  
34 =over
35  
36 =item $server = AnyEvent::MCP::Server->new (%config)
37  
38 Creates the protocol object without opening a listener or starting an
39 event loop. Options are:
40  
41 =over
42  
43 =item toolsets => [$toolset...]
44  
45 L<AnyEvent::MCP::Server::Toolset> objects searched in order, defaulting to
46 an empty array. The first Toolset containing a called tool handles it.
47  
48 =item server_info => { name => $name, version => $version }
49  
50 Advertised server identity, defaulting to C<AnyEvent::MCP> and this
51 distribution's version.
52  
53 =item instructions => $text
54  
55 Optional human-readable guidance. Surrounding whitespace and common
56 indentation are stripped. Empty instructions are omitted from discovery
57 and initialization results.
58  
59 =item short_instructions => $text
60  
61 Optional condensed guidance for deciding when to discover this server's tools.
62 Used instead of C<instructions> in discovery when C<auto_instructions> is true.
63 Without either short or custom instructions, the full instructions remain
64 advertised.
65  
66 =item custom_instructions => $text
67  
68 Instance-specific purpose, prepended to the advertised instructions.
69  
70 =item auto_instructions => $boolean
71  
72 When true, expose full C<instructions>, prefixed by any custom instance
73 purpose, in a C<meta-instructions> tool's description and call result.
74 Advertise C<short_instructions> instead, when provided, preceded by any
75 custom purpose. Append a pointer to the generated tool's description when
76 short or custom instructions exist. With neither, advertise the original
77 full instructions without a redundant pointer. Defaults to false;
78 a conflicting tool name is an error.
79  
80 =item capabilities => { %capabilities }
81  
82 Advertised server capabilities, defaulting to C<{ tools =E<gt> {} }>.
83 Declaring a capability does not implement it.
84  
85 =item versions => [$version...]
86  
87 Supported revisions in preference order. Defaults to C<2026-07-28>,
88 C<2025-11-25>, C<2025-06-18> and C<2025-03-26>. The 2026 protocol uses
89 discovery and per-request metadata; the 2025 protocol uses initialization.
90  
91 =item permissions => $permissions
92  
93 L<AnyEvent::MCP::Server::Permissions> object used by
94 C<< $req->require_permission >>. The server handles permission-needed
95 exceptions. The permission object's C<ask> setting chooses between modern
96 input challenges and local prompts; local asking retries the handler
97 internally. Checks must precede side effects.
98  
99 =back
100  
101 Event callbacks are also constructor options; see L</EVENTS>.
102  
103 =item $req = $server->rpc ($message, $reply->($message), %context)
104  
105 Accepts the decoded JSON-RPC hash reference C<$message>. C<$reply> receives
106 the decoded response, or undef when a notification is accepted or a request
107 is cancelled. Undef completes transport bookkeeping without a JSON-RPC
108 response. Returns the Request object for a request, or undef for
109 notifications and rejected messages.
110 C<$reply> can be called before this method returns, or later.
111  
112 C<peer> in C<%context> is a hash reference shared by messages on one connection.
113 It holds legacy initialization state and weak references to outstanding
114 requests for cancellation. Embedders supply a different peer for each
115 independent connection. Modern request metadata takes precedence over legacy
116 peer state.
117  
118 C<protocol_version> supplies the legacy HTTP protocol version.
119 C<on_notify> is an optional C<$callback->($req, $message)> receiving decoded
120 outgoing notifications. Without it, notifications are dropped.
121  
122 =item $req = $server->json_rpc ($json, $reply->($json), %context)
123  
124 Like C<rpc>, but C<$json> and the response are UTF-8 encoded JSON strings.
125 The notification callback still receives decoded objects. Parse errors are
126 returned as JSON-RPC errors.
127  
128 =item $server->dispatch ($req)
129  
130 Dispatches an already constructed Request. Normally called by C<rpc>.
131 Subclasses can override this method while retaining JSON-RPC handling.
132  
133 =back
134  
135 =head1 EVENTS
136  
137 =over
138  
139 =item on_request => $callback->($server, $req)
140  
141 Called before each dispatch attempt, including permission retries. This
142 synchronous hook can inspect the request or refresh application state.
143 It does not replace dispatch; avoid side effects that must happen only once.
144  
145 =item on_tools_list => $callback->($server, $req)
146  
147 Replaces the default Toolset listing. C<$callback> completes C<$req>.
148  
149 =item on_tools_call => $callback->($server, $req, $args)
150  
151 Replaces the default Toolset lookup and invocation. C<$args> is also available
152 as C<< $req->{args} >>. C<$callback> completes C<$req>.
153  
154 =item on_error => $callback->($server, $req, $error)
155  
156 Reports an exception caught during synchronous dispatch. A tool exception
157 becomes a text tool-error result; other exceptions become internal JSON-RPC
158 errors. Exceptions after a reply are propagated, as are exceptions from
159 asynchronous application callbacks.
160  
161 =back
162  
163 =cut
164  
165 package AnyEvent::MCP::Server;
166  
167 91 ▶use common::sense;
Subroutine BEGIN: called CC=1 SCAR=0.0
168 91 ▶use AnyEvent::MCP ();
Subroutine BEGIN: called CC=1 SCAR=0.0
169 91 ▶use AnyEvent::MCP::Server::Request ();
Subroutine BEGIN: called CC=1 SCAR=0.0
170 91 ▶use AnyEvent ();
Subroutine BEGIN: called CC=1 SCAR=0.0
171 91 ▶use JSON::XS ();
Subroutine BEGIN: called CC=1 SCAR=0.0
172 91 ▶use Scalar::Util qw(weaken);
Subroutine BEGIN: called CC=1 SCAR=0.0
173  
174 91 our @ISA = qw(AnyEvent::MCP::Base);
175  
176 187 ▶sub new {
Subroutine new: called CC=10 SCAR=23.0
Pod documented
177 187 my $class = shift;
178  
179 187 my $self = $class->SUPER::new (
180 toolsets => [],
181 server_info => { name => "AnyEvent::MCP", version => "$AnyEvent::MCP::VERSION" },
182 capabilities => { tools => {} },
183 versions => [qw(2026-07-28 2025-11-25 2025-06-18 2025-03-26)],
184 @_,
185 );
186  
187 $self->{instructions} = AnyEvent::MCP::_clean_text $self->{instructions}
188 187 ▶ if exists $self->{instructions};
Branch: 1 branch
BranchTrueFalseTotal
if exists $self->{"instructions"} 65 122 187
189  
190 187 my $instructions = $self->{instructions};
191 my $custom = exists $self->{custom_instructions}
192 187 ▶ ? AnyEvent::MCP::_clean_text $self->{custom_instructions} : "";
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{'custom_instructions'} ? : 7 180 187
193  
194 187 ▶ if ($self->{auto_instructions} && length $instructions) {
Branch: 2 branches
BranchTrueFalseTotal
if ($self->{'auto_instructions'} and length $instructions) { } 58 129 187
elsif (length $custom) { } 2 127 129
Condition100%3/3
$self->{"auto_instructions"} and length $instructions
!ll&&!rl&&r
933658
MC/DC100%2/2
$self->{"auto_instructions"} and length $instructions
$self->{"auto_instructions"} length $instructions
Truth table100%3/3
A and B
A= $self->{"auto_instructions"}B= length $instructions
ABresult
0X0
100
111
195 58 require AnyEvent::MCP::Server::Toolset;
196  
197 58 my $name = "meta-instructions";
198 58 ▶ !grep { exists $_->{tool}{$name} } @{$self->{toolsets}}
Branch: 1 branch
BranchTrueFalseTotal
grep {exists $_->{"tool"}{$name};} @{$$self{"toolsets"};} and die "duplicate MCP tool '${name}'\n" 1 57 58
199 or die "duplicate MCP tool '$name'\n";
200  
201 57 my $full = join "\n\n", grep length, $custom, $instructions;
202 57 my $toolset = AnyEvent::MCP::Server::Toolset->new;
203 $toolset->tool (meta_instructions =>
204 "Server instructions. Call for full text if truncated.\n\n$full",
205 { type => "object", properties => {} },
206 4 ▶ sub { $_[0]->reply ({ content => [{ type => "text", text => $full }] }) },
Subroutine __ANON__: called CC=1 SCAR=0.0
207 57 );
208 57 $self->{toolsets} = [@{$self->{toolsets}}, $toolset];
209  
210 my $short = exists $self->{short_instructions}
211 57 ▶ ? AnyEvent::MCP::_clean_text $self->{short_instructions} : "";
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{'short_instructions'} ? : 40 17 57
212 57 ▶ $self->{instructions} = length $custom || length $short
Branch: 1 branch
BranchTrueFalseTotal
length $custom || length $short ? : 41 16 57
Condition100%3/3
length $custom or length $short
l!l&&r!l&&!r
53616
MC/DC100%2/2
length $custom or length $short
length $custom length $short
Truth table100%3/3
A or B
A= length $customB= length $short
ABresult
1X1
011
000
213 ? (join "\n\n", grep length, $custom, $short, "Full instructions: meta-instructions tool description.")
214 : $instructions;
215  
216 } elsif (length $custom) {
217 2 $self->{instructions} = join "\n\n", grep length, $custom, $instructions;
218 }
219  
220 $self
221 186 }
222  
223 23 ▶sub _rpc_error {
Subroutine _rpc_error: called CC=2 SCAR=6.9
224 23 my ($self, $reply, $id, $code, $message, $data) = @_;
225  
226 23 my $error = { code => $code, message => $message };
227 23 ▶ $error->{data} = $data if defined $data;
Branch: 1 branch
BranchTrueFalseTotal
if defined $data 5 18 23
228  
229 23 $reply->({ jsonrpc => "2.0", id => $id, error => $error });
230 undef
231 23 }
232  
233 403 ▶sub json_rpc {
Subroutine json_rpc: called CC=2 SCAR=6.9
Pod documented
234 403 my ($self, $json, $reply, @context) = @_;
235  
236 403 ▶ my $send = sub { $reply->(defined $_[0] ? JSON::XS::encode_json $_[0] : undef) };
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
defined $_[0] ? : 387 14 401
237 403 my $message = eval { JSON::XS::decode_json $json };
238  
239 403 ▶ return $self->_rpc_error ($send, undef, -32700, "Parse error")
Branch: 1 branch
BranchTrueFalseTotal
if $@ 1 402 403
240 if $@;
241  
242 402 $self->rpc ($message, $send, @context)
243 }
244  
245 682 ▶sub rpc {
Subroutine rpc: called CC=69 SCAR=46.4
Pod documented
246 682 my ($self, $message, $reply, %context) = @_;
247  
248 return $self->_rpc_error ($reply, undef, -32600, "Invalid request")
249 unless ref $message eq "HASH"
250 && $message->{jsonrpc} eq "2.0"
251 && defined $message->{method} && !ref $message->{method}
252 682 ▶ && (!exists $message->{id} || defined $message->{id} && !ref $message->{id});
Branch: 1 branch
BranchTrueFalseTotal
unless ref $message eq "HASH" and $message->{"jsonrpc"} eq "2.0" and defined $message->{"method"} and not ref $message->{"method"} and !exists $message->{"id"} || defined $message->{"id"} && !ref($message->{"id"}) 1 681 682
Condition61%11/18
ref $message eq "HASH" and $message->{"jsonrpc"} eq "2.0" and defined $message->{"method"} and not ref $message->{"method"} and !exists $message->{"id"} || defined $message->{"id"} && !ref($message->{"id"})
!ll&&!rl&&r
10681
ref $message eq "HASH" and $message->{"jsonrpc"} eq "2.0" and defined $message->{"method"} and not ref $message->{"method"}
!ll&&!rl&&r
10681
ref $message eq "HASH" and $message->{"jsonrpc"} eq "2.0" and defined $message->{"method"}
!ll&&!rl&&r
10681
ref $message eq "HASH" and $message->{"jsonrpc"} eq "2.0"
!ll&&!rl&&r
10681
not exists $message->{"id"} or defined $message->{"id"} and not ref $message->{"id"}
l!l&&r!l&&!r
136680
defined $message->{"id"} and not ref $message->{"id"}
!ll&&!rl&&r
00668
MC/DC14%1/7
ref $message eq "HASH" and $message->{"jsonrpc"} eq "2.0" and defined $message->{"method"} and not ref $message->{"method"} and !exists $message->{"id"} || defined $message->{"id"} && !ref($message->{"id"})
ref $message eq "HASH" $message->{"jsonrpc"} eq "2.0" defined $message->{"method"} not ref $message->{"method"} not exists $message->{"id"} defined $message->{"id"} not ref $message->{"id"}
Truth table37%3/8
A and B and C and not(D) and not(E) or F and not(G)
A= ref $message eq "HASH"B= $message->{"jsonrpc"} eq "2.0"C= defined $message->{"method"}D= not ref $message->{"method"}E= not exists $message->{"id"}F= defined $message->{"id"}G= not ref $message->{"id"}
ABCDEFGresult
0XXXXXX0
10XXXXX0
110XXXX0
1110XXX0
111100X0
11110100
11111XX1
11110111
253  
254 681 my $id = $message->{id};
255 681 my $key = $id; # Hash lookups must not stringify the wire ID.
256 681 my $method = $message->{method};
257 681 ▶ my $params = exists $message->{params} ? $message->{params} : {};
Branch: 1 branch
BranchTrueFalseTotal
exists $message->{'params'} ? : 666 15 681
258 681 ▶ my $peer = $context{peer} || {};
Condition100%2/2
$context{'peer'} || {}
l!l
59388
MC/DC100%1/1
$context{'peer'} || {}
$context{'peer'}
Truth table100%2/2
A
A= $context{'peer'}
Aresult
11
00
259  
260 681 ▶ unless (exists $message->{id}) {
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $message->{"id"}) 13 668 681
261 13 ▶ if ($method eq "notifications/cancelled" && ref $params eq "HASH" && defined $params->{requestId}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($method eq "notifications/cancelled" and ref $params eq "HASH" and defined $params->{"requestId"}) 5 8 13
Condition66%4/6
$method eq "notifications/cancelled" and ref $params eq "HASH" and defined $params->{"requestId"}
!ll&&!rl&&r
805
$method eq "notifications/cancelled" and ref $params eq "HASH"
!ll&&!rl&&r
805
MC/DC33%1/3
$method eq "notifications/cancelled" and ref $params eq "HASH" and defined $params->{"requestId"}
$method eq "notifications/cancelled" ref $params eq "HASH" defined $params->{"requestId"}
Truth table50%2/4
A and B and C
A= $method eq "notifications/cancelled"B= ref $params eq "HASH"C= defined $params->{"requestId"}
ABCresult
0XX0
10X0
1100
1111
262 5 my $req = delete $peer->{requests}{$params->{requestId}};
263 5 ▶ $req->cancel ($params->{reason}) if $req;
Branch: 1 branch
BranchTrueFalseTotal
if $req 5 0 5
264 }
265  
266 13 $reply->(undef);
267 return
268 13 }
269  
270 return $self->_rpc_error ($reply, $id, -32602, "Invalid params")
271 unless ref $params eq "HASH"
272 668 ▶ && (!exists $params->{_meta} || ref $params->{_meta} eq "HASH");
Branch: 1 branch
BranchTrueFalseTotal
unless ref $params eq "HASH" and !exists $params->{"_meta"} || ref $params->{"_meta"} eq "HASH" 0 668 668
Condition50%3/6
ref $params eq "HASH" and !exists $params->{"_meta"} || ref $params->{"_meta"} eq "HASH"
!ll&&!rl&&r
00668
not exists $params->{"_meta"} or ref $params->{"_meta"} eq "HASH"
l!l&&r!l&&!r
1145540
MC/DC0%0/3
ref $params eq "HASH" and !exists $params->{"_meta"} || ref $params->{"_meta"} eq "HASH"
ref $params eq "HASH" not exists $params->{"_meta"} ref $params->{"_meta"} eq "HASH"
Truth table50%2/4
A and not(B) or C
A= ref $params eq "HASH"B= not exists $params->{"_meta"}C= ref $params->{"_meta"} eq "HASH"
ABCresult
0XX0
1000
11X1
1011
273  
274 668 ▶ my $meta = $params->{_meta} || {};
Condition100%2/2
$params->{'_meta'} || {}
l!l
554114
MC/DC100%1/1
$params->{'_meta'} || {}
$params->{'_meta'}
Truth table100%2/2
A
A= $params->{'_meta'}
Aresult
11
00
275 my $version = $meta->{"io.modelcontextprotocol/protocolVersion"}
276 668 ▶ || $context{protocol_version} || $peer->{protocol_version};
Condition100%6/6
$meta->{'io.modelcontextprotocol/protocolVersion'} || $context{'protocol_version'} || $peer->{'protocol_version'}
l!l&&r!l&&!r
5976110
$meta->{"io.modelcontextprotocol/protocolVersion"} or $context{"protocol_version"}
l!l&&r!l&&!r
5514671
MC/DC100%3/3
$meta->{'io.modelcontextprotocol/protocolVersion'} || $context{'protocol_version'} || $peer->{'protocol_version'}
$meta->{"io.modelcontextprotocol/protocolVersion"} $context{"protocol_version"} $peer->{'protocol_version'}
Truth table100%4/4
A or B || C
A= $meta->{"io.modelcontextprotocol/protocolVersion"}B= $context{"protocol_version"}C= $peer->{'protocol_version'}
ABCresult
1XX1
01X1
0011
0000
277  
278 $peer->{client_info} = $meta->{"io.modelcontextprotocol/clientInfo"}
279 668 ▶ if $version && $version ge "2026" && ref $meta->{"io.modelcontextprotocol/clientInfo"} eq "HASH";
Branch: 1 branch
BranchTrueFalseTotal
if $version and $version ge 2026 and ref $meta->{"io.modelcontextprotocol/clientInfo"} eq "HASH" 436 232 668
Condition100%6/6
$version and $version ge 2026 and ref $meta->{"io.modelcontextprotocol/clientInfo"} eq "HASH"
!ll&&!rl&&r
117115436
$version and $version ge 2026
!ll&&!rl&&r
10107551
MC/DC100%3/3
$version and $version ge 2026 and ref $meta->{"io.modelcontextprotocol/clientInfo"} eq "HASH"
$version $version ge 2026 ref $meta->{"io.modelcontextprotocol/clientInfo"} eq "HASH"
Truth table100%4/4
A and B and C
A= $versionB= $version ge 2026C= ref $meta->{"io.modelcontextprotocol/clientInfo"} eq "HASH"
ABCresult
0XX0
10X0
1100
1111
280  
281 668 ▶ if ($method eq "initialize") {
Branch: 1 branch
BranchTrueFalseTotal
if ($method eq 'initialize') { } 19 649 668
282 19 $version = $params->{protocolVersion};
283  
284 return $self->_rpc_error ($reply, $id, -32602, "Invalid initialize params")
285 unless defined $version && !ref $version
286 && ref $params->{capabilities} eq "HASH"
287 19 ▶ && ref $params->{clientInfo} eq "HASH";
Branch: 1 branch
BranchTrueFalseTotal
unless defined $version and not ref $version and ref $params->{"capabilities"} eq "HASH" and ref $params->{"clientInfo"} eq "HASH" 0 19 19
Condition33%3/9
defined $version and not ref $version and ref $params->{"capabilities"} eq "HASH" and ref $params->{"clientInfo"} eq "HASH"
!ll&&!rl&&r
0019
defined $version and not ref $version and ref $params->{"capabilities"} eq "HASH"
!ll&&!rl&&r
0019
defined $version and not ref $version
!ll&&!rl&&r
0019
MC/DC0%0/4
defined $version and not ref $version and ref $params->{"capabilities"} eq "HASH" and ref $params->{"clientInfo"} eq "HASH"
defined $version not ref $version ref $params->{"capabilities"} eq "HASH" ref $params->{"clientInfo"} eq "HASH"
Truth table20%1/5
A and not(B) and C and D
A= defined $versionB= not ref $versionC= ref $params->{"capabilities"} eq "HASH"D= ref $params->{"clientInfo"} eq "HASH"
ABCDresult
0XXX0
10XX0
110X0
11100
11111
288  
289 19 ▶ unless (grep $_ eq $version && $_ lt "2026", @{$self->{versions}}) {
Branch: 1 branch
BranchTrueFalseTotal
unless (grep(($_ eq $version && $_ lt 2026), @{$$self{"versions"};})) 4 15 19
Condition66%2/3
$_ eq $version && $_ lt '2026'
!ll&&!rl&&r
49015
MC/DC50%1/2
$_ eq $version && $_ lt '2026'
$_ eq $version $_ lt '2026'
Truth table66%2/3
A && B
A= $_ eq $versionB= $_ lt '2026'
ABresult
0X0
100
111
290 4 ($version) = grep $_ lt "2026", @{$self->{versions}};
291 4 ▶ return $self->_rpc_error ($reply, $id, -32601, "Legacy initialization is not supported")
Branch: 1 branch
BranchTrueFalseTotal
unless defined $version 0 4 4
292 unless defined $version;
293 }
294 } else {
295 649 ▶ return $self->_rpc_error ($reply, $id, -32602, "Missing protocol version")
Branch: 1 branch
BranchTrueFalseTotal
unless defined $version and not ref $version 1 648 649
Condition66%2/3
defined $version and not ref $version
!ll&&!rl&&r
10648
MC/DC50%1/2
defined $version and not ref $version
defined $version not ref $version
Truth table66%2/3
A and not(B)
A= defined $versionB= not ref $version
ABresult
0X0
100
111
296 unless defined $version && !ref $version;
297  
298 return $self->_rpc_error ($reply, $id, -32022, "Unsupported protocol version", {
299 requested => $version,
300 supported => $self->{versions},
301 648 ▶ }) unless grep $_ eq $version, @{$self->{versions}};
Branch: 1 branch
BranchTrueFalseTotal
unless grep(($_ eq $version), @{$$self{"versions"};}) 5 643 648
302  
303 643 ▶ if ($version ge "2026") {
Branch: 1 branch
BranchTrueFalseTotal
if ($version ge 2026) 542 101 643
304 return $self->_rpc_error ($reply, $id, -32602, "Missing per-request metadata")
305 unless $meta->{"io.modelcontextprotocol/protocolVersion"} eq $version
306 542 ▶ && ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH";
Branch: 1 branch
BranchTrueFalseTotal
unless $meta->{"io.modelcontextprotocol/protocolVersion"} eq $version and ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH" 0 542 542
Condition33%1/3
$meta->{"io.modelcontextprotocol/protocolVersion"} eq $version and ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH"
!ll&&!rl&&r
00542
MC/DC0%0/2
$meta->{"io.modelcontextprotocol/protocolVersion"} eq $version and ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH"
$meta->{"io.modelcontextprotocol/protocolVersion"} eq $version ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH"
Truth table33%1/3
A and B
A= $meta->{"io.modelcontextprotocol/protocolVersion"} eq $versionB= ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH"
ABresult
0X0
100
111
307 }
308 }
309  
310 return $self->_rpc_error ($reply, $id, -32600, "Request id already outstanding")
311 662 ▶ if $peer->{requests}{$key};
Branch: 1 branch
BranchTrueFalseTotal
if $peer->{"requests"}{$key} 0 662 662
312  
313 # the private multibroker protocol uses the normal MCP capability handshake.
314 # keep the negotiated version on this stream's peer, not on the server.
315 my $capabilities = $method eq "initialize"
316 662 ▶ ? $params->{capabilities} : $meta->{"io.modelcontextprotocol/clientCapabilities"};
Branch: 1 branch
BranchTrueFalseTotal
$method eq 'initialize' ? : 19 643 662
317 662 ▶ if (ref $capabilities eq "HASH") {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $capabilities eq "HASH") 561 101 662
318 561 my $extensions = $capabilities->{extensions};
319 561 ▶ if (ref $extensions eq "HASH") {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $extensions eq "HASH") 121 440 561
320 121 my $extension = $extensions->{"anyevent-mcp/multibroker"};
321 $peer->{aemcp_multibroker} = 1
322 121 ▶ if ref $extension eq "HASH" && ($extension->{version} || 0) eq "1";
Branch: 1 branch
BranchTrueFalseTotal
if ref $extension eq "HASH" and ($extension->{"version"} || 0) eq 1 121 0 121
Condition40%2/5
ref $extension eq "HASH" and ($extension->{"version"} || 0) eq 1
!ll&&!rl&&r
00121
$extension->{'version'} || 0
l!l
1210
MC/DC0%0/2
ref $extension eq "HASH" and ($extension->{"version"} || 0) eq 1
ref $extension eq "HASH" $extension->{'version'}
Truth table33%1/3
A and B
A= ref $extension eq "HASH"B= $extension->{'version'}
ABresult
0X0
100
111
323 }
324 }
325  
326 662 my $user = $context{user};
327 662 ▶ my $ask = $self->{permissions} && $self->{permissions}{ask};
Condition66%2/3
$self->{'permissions'} && $self->{'permissions'}{'ask'}
!ll&&!rl&&r
4070255
MC/DC50%1/2
$self->{'permissions'} && $self->{'permissions'}{'ask'}
$self->{'permissions'} $self->{'permissions'}{'ask'}
Truth table66%2/3
A && B
A= $self->{'permissions'}B= $self->{'permissions'}{'ask'}
ABresult
0X0
100
111
328 my $trust = defined $ask && !ref $ask && (
329 $ask eq "mcp"
330 || $ask eq "auto" && $version ge "2026"
331 && ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH"
332 && ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{elicitation} eq "HASH"
333 1 && (!keys %{$meta->{"io.modelcontextprotocol/clientCapabilities"}{elicitation}}
334 662 ▶ || ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{elicitation}{form} eq "HASH")
Condition79%19/24
defined $ask && !ref($ask) && ($ask eq 'mcp' || $ask eq 'auto' && $version ge '2026' && ref $meta->{'io.modelcontextprotocol/clientCapabilities'} eq 'HASH' && ref $meta->{'io.modelcontextprotocol/clientCapabilities'}{'elicitation'} eq 'HASH' && (!keys(%{$$meta{'io.modelcontextprotocol/clientCapabilities'}{'elicitation'};}) || ref $meta->{'io.modelcontextprotocol/clientCapabilities'}{'elicitation'}{'form'} eq 'HASH'))
!ll&&!rl&&r
41349200
defined $ask and not ref $ask
!ll&&!rl&&r
4076249
$ask eq "mcp" or $ask eq "auto" and $version ge 2026 and ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH" and ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"} eq "HASH" and !keys(%{$$meta{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"};}) || ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"}{"form"} eq "HASH"
l!l&&r!l&&!r
199149
$ask eq "auto" and $version ge 2026 and ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH" and ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"} eq "HASH" and !keys(%{$$meta{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"};}) || ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"}{"form"} eq "HASH"
!ll&&!rl&&r
4901
$ask eq "auto" and $version ge 2026 and ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH" and ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"} eq "HASH"
!ll&&!rl&&r
4901
$ask eq "auto" and $version ge 2026 and ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH"
!ll&&!rl&&r
4901
$ask eq "auto" and $version ge 2026
!ll&&!rl&&r
4721
not keys %{$$meta{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"};} or ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"}{"form"} eq "HASH"
l!l&&r!l&&!r
010
MC/DC55%5/9
defined $ask && !ref($ask) && ($ask eq 'mcp' || $ask eq 'auto' && $version ge '2026' && ref $meta->{'io.modelcontextprotocol/clientCapabilities'} eq 'HASH' && ref $meta->{'io.modelcontextprotocol/clientCapabilities'}{'elicitation'} eq 'HASH' && (!keys(%{$$meta{'io.modelcontextprotocol/clientCapabilities'}{'elicitation'};}) || ref $meta->{'io.modelcontextprotocol/clientCapabilities'}{'elicitation'}{'form'} eq 'HASH'))
defined $ask not ref $ask $ask eq "mcp" $ask eq "auto" $version ge 2026 ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH" ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"} eq "HASH" not keys %{$$meta{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"};} ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"}{"form"} eq "HASH"
Truth table60%6/10
A and not(B) && C or D and E and F and G and not(H) or I
A= defined $askB= not ref $askC= $ask eq "mcp"D= $ask eq "auto"E= $version ge 2026F= ref $meta->{"io.modelcontextprotocol/clientCapabilities"} eq "HASH"G= ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"} eq "HASH"H= not keys %{$$meta{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"};}I= ref $meta->{"io.modelcontextprotocol/clientCapabilities"}{"elicitation"}{"form"} eq "HASH"
ABCDEFGHIresult
0XXXXXXXX0
10XXXXXXX0
1100XXXXX0
11010XXXX0
110110XXX0
1101110XX0
1101111000
111XXXXXX1
11011111X1
1101111011
335 );
336 662 ▶ if ($trust && exists $meta->{"anyevent-mcp/user"}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($trust and exists $meta->{"anyevent-mcp/user"}) 38 624 662
Condition100%3/3
$trust and exists $meta->{"anyevent-mcp/user"}
!ll&&!rl&&r
46216238
MC/DC100%2/2
$trust and exists $meta->{"anyevent-mcp/user"}
$trust exists $meta->{"anyevent-mcp/user"}
Truth table100%3/3
A and B
A= $trustB= exists $meta->{"anyevent-mcp/user"}
ABresult
0X0
100
111
337 38 $user = $meta->{"anyevent-mcp/user"};
338 38 ▶ return $self->_rpc_error ($reply, $id, -32602, "Invalid delegated user")
Branch: 1 branch
BranchTrueFalseTotal
if defined $user and ref $user || !($user =~ /\A(?:global|program|instance):[A-Za-z_][A-Za-z0-9_-]*\z/u) 1 37 38
Condition83%5/6
defined $user and ref $user || !($user =~ /\A(?:global|program|instance):[A-Za-z_][A-Za-z0-9_-]*\z/u)
!ll&&!rl&&r
3341
ref $user or not $user =~ /\A(?:global|program|instance):[A-Za-z_][A-Za-z0-9_-]*\z/u
l!l&&r!l&&!r
014
MC/DC66%2/3
defined $user and ref $user || !($user =~ /\A(?:global|program|instance):[A-Za-z_][A-Za-z0-9_-]*\z/u)
defined $user ref $user not $user =~ /\A(?:global|program|instance):[A-Za-z_][A-Za-z0-9_-]*\z/u
Truth table75%3/4
A and B or not(C)
A= defined $userB= ref $userC= not $user =~ /\A(?:global|program|instance):[A-Za-z_][A-Za-z0-9_-]*\z/u
ABCresult
0XX0
1000
11X1
1011
339 if defined $user && (ref $user
340 || $user !~ /\A(?:global|program|instance):[A-Za-z_][A-Za-z0-9_-]*\z/);
341 }
342  
343 my $req = AnyEvent::MCP::Server::Request->new (
344 server => $self,
345 peer => $peer,
346 id => $id,
347 method => $method,
348 params => $params,
349 user => $user,
350 protocol_version => $version,
351 636 ▶ on_reply => sub {
Subroutine __ANON__: called CC=3 SCAR=11.0
352 636 my ($req, $result) = @_;
353  
354 636 delete $peer->{requests}{$key};
355  
356 636 ▶ if ($req->{protocol_version} ge "2026") {
Branch: 1 branch
BranchTrueFalseTotal
if ($req->{"protocol_version"} ge 2026) 524 112 636
357 $result = {
358 resultType => "complete",
359 %$result,
360 _meta => {
361 "io.modelcontextprotocol/serverInfo" => $self->{server_info},
362 524 ▶ %{$result->{_meta} || {}},
Condition100%2/2
$result->{'_meta'} || {}
l!l
52472
MC/DC100%1/1
$result->{'_meta'} || {}
$result->{'_meta'}
Truth table100%2/2
A
A= $result->{'_meta'}
Aresult
11
00
363 },
364 };
365 }
366  
367 636 $reply->({ jsonrpc => "2.0", id => $id, result => $result });
368 },
369 661 );
370  
371 661 ▶ if (my $notify = $context{on_notify}) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $notify = $context{"on_notify"}) 545 116 661
372 4 ▶ $req->{on_notify} = sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
373 4 my ($req, $method, $params) = @_;
374  
375 4 $notify->($req, { jsonrpc => "2.0", method => $method, params => $params });
376 545 };
377 }
378  
379 661 ▶ if ($method eq "tools/call" && $req->{on_notify} && exists $meta->{progressToken}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($method eq "tools/call" and $req->{"on_notify"} and exists $meta->{"progressToken"}) 12 649 661
Condition100%6/6
$method eq "tools/call" and $req->{"on_notify"} and exists $meta->{"progressToken"}
!ll&&!rl&&r
27637312
$method eq "tools/call" and $req->{"on_notify"}
!ll&&!rl&&r
21264385
MC/DC100%3/3
$method eq "tools/call" and $req->{"on_notify"} and exists $meta->{"progressToken"}
$method eq "tools/call" $req->{"on_notify"} exists $meta->{"progressToken"}
Truth table100%4/4
A and B and C
A= $method eq "tools/call"B= $req->{"on_notify"}C= exists $meta->{"progressToken"}
ABCresult
0XX0
10X0
1100
1111
380 12 my $started = AE::now;
381 12 my $weak = $req;
382 12 weaken $weak;
383 0 ▶ $req->{progress_timer} = AnyEvent->timer (after => 30, interval => 30, cb => sub {
Subroutine __ANON__: not called CC=3 SCAR=24.8
384 0 ▶ return unless $weak && !$weak->{finished};
Branch: 1 branch
BranchTrueFalseTotal
unless $weak and not $weak->{"finished"} 0 0 0
Condition0%0/3
$weak and not $weak->{"finished"}
!ll&&!rl&&r
000
MC/DC0%0/2
$weak and not $weak->{"finished"}
$weak not $weak->{"finished"}
Truth table0%0/3
A and not(B)
A= $weakB= not $weak->{"finished"}
ABresult
0X0
100
111
385 0 my $elapsed = int (AE::now - $started);
386 0 $weak->progress ($elapsed, undef, "Working for ${elapsed}s");
387 12 });
388 }
389  
390 661 $peer->{requests}{$key} = $req;
391 661 weaken $peer->{requests}{$key};
392  
393 661 ▶ if ($method eq "tools/call") {
Branch: 1 branch
BranchTrueFalseTotal
if ($method eq "tools/call") 449 212 661
394 449 ▶ unless (defined $params->{name} && !ref $params->{name}
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $params->{"name"} and not ref $params->{"name"} and !exists $params->{"arguments"} || ref $params->{"arguments"} eq "HASH") 1 448 449
Condition66%6/9
defined $params->{"name"} and not ref $params->{"name"} and !exists $params->{"arguments"} || ref $params->{"arguments"} eq "HASH"
!ll&&!rl&&r
01448
defined $params->{"name"} and not ref $params->{"name"}
!ll&&!rl&&r
00449
not exists $params->{"arguments"} or ref $params->{"arguments"} eq "HASH"
l!l&&r!l&&!r
144341
MC/DC50%2/4
defined $params->{"name"} and not ref $params->{"name"} and !exists $params->{"arguments"} || ref $params->{"arguments"} eq "HASH"
defined $params->{"name"} not ref $params->{"name"} not exists $params->{"arguments"} ref $params->{"arguments"} eq "HASH"
Truth table60%3/5
A and not(B) and not(C) or D
A= defined $params->{"name"}B= not ref $params->{"name"}C= not exists $params->{"arguments"}D= ref $params->{"arguments"} eq "HASH"
ABCDresult
0XXX0
10XX0
11000
111X1
11011
395 && (!exists $params->{arguments} || ref $params->{arguments} eq "HASH")) {
396 1 $self->_reject ($req, $reply, -32602, "Invalid tool call");
397 1 return $req
398 }
399  
400 448 $req->{tool} = $params->{name};
401 448 ▶ $req->{args} = exists $params->{arguments} ? $params->{arguments} : {};
Branch: 1 branch
BranchTrueFalseTotal
exists $params->{'arguments'} ? : 434 14 448
402 }
403  
404 660 $req->{_reply} = $reply;
405  
406 660 $self->_dispatch ($req);
407  
408 658 $req
409 }
410  
411 666 ▶sub _dispatch {
Subroutine _dispatch: called CC=11 SCAR=24.0
412 666 my ($self, $req) = @_;
413  
414 eval {
415 $self->{permissions}->_resume ($req)
416 666 ▶ if $self->{permissions} && $req->{method} eq "tools/call";
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"permissions"} and $req->{"method"} eq "tools/call" 211 455 666
Condition100%3/3
$self->{"permissions"} and $req->{"method"} eq "tools/call"
!ll&&!rl&&r
40649211
MC/DC100%2/2
$self->{"permissions"} and $req->{"method"} eq "tools/call"
$self->{"permissions"} $req->{"method"} eq "tools/call"
Truth table100%3/3
A and B
A= $self->{"permissions"}B= $req->{"method"} eq "tools/call"
ABresult
0X0
100
111
417 646 $self->event (request => $req);
418 645 ▶ $self->dispatch ($req) unless $req->{finished};
Branch: 1 branch
BranchTrueFalseTotal
unless $req->{"finished"} 634 11 645
419 558 1
420 666 ▶ } or do {
Branch: 1 branch
BranchTrueFalseTotal
eval { do { $self->{"permissions"}->_resume($req) if $self->{"permissions"} and $req->{"method"} eq "tools/call"; $self->event("request", $req); $self->dispatch($req) unless $req->{"finished"}; 1 } } or do { my $error = $@; die $error if $req->{"finished"}; if (ref $error eq "AnyEvent::MCP::Server::Permissions::Required" and $self->{"permissions"}) { eval { do { $self->{"permissions"}->require($req, $error->{"request"}, sub { my($success, $grant) = @_; return if $req->{"finished"}; return $req->error($grant) unless $success; $self->{"permissions"}->_remember($req, $error->{"request"}, $grant); $self->_dispatch($req); } ); 1 } } or do { my $failure = $@; die $failure if $req->{"finished"}; $self->event("error", $req, $failure); $req->error($failure) }; } else { $self->event("error", $req, $error); if ($req->{"method"} eq "tools/call") { $req->error($error); } else { $self->_reject($req, $req->{"_reply"}, -32603, "Internal error"); } ; } } 558 106 664
421 106 my $error = $@;
422 106 ▶ die $error if $req->{finished};
Branch: 1 branch
BranchTrueFalseTotal
if $req->{"finished"} 0 106 106
423  
424 106 ▶ if (ref $error eq "AnyEvent::MCP::Server::Permissions::Required" && $self->{permissions}) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $error eq 'AnyEvent::MCP::Server::Permissions::Required' and $self->{'permissions'}) { } 48 58 106
Condition66%2/3
ref $error eq "AnyEvent::MCP::Server::Permissions::Required" and $self->{"permissions"}
!ll&&!rl&&r
58048
MC/DC50%1/2
ref $error eq "AnyEvent::MCP::Server::Permissions::Required" and $self->{"permissions"}
ref $error eq "AnyEvent::MCP::Server::Permissions::Required" $self->{"permissions"}
Truth table66%2/3
A and B
A= ref $error eq "AnyEvent::MCP::Server::Permissions::Required"B= $self->{"permissions"}
ABresult
0X0
100
111
425 eval {
426 9 ▶ $self->{permissions}->require ($req, $error->{request}, sub {
Subroutine __ANON__: called CC=3 SCAR=11.0
427 9 my ($success, $grant) = @_;
428  
429 9 ▶ return if $req->{finished};
Branch: 1 branch
BranchTrueFalseTotal
if $req->{"finished"} 0 9 9
430 9 ▶ return $req->error ($grant) unless $success;
Branch: 1 branch
BranchTrueFalseTotal
unless $success 3 6 9
431  
432 6 $self->{permissions}->_remember ($req, $error->{request}, $grant);
433 6 $self->_dispatch ($req);
434 48 });
435 47 1
436 48 ▶ } or do {
Branch: 1 branch
BranchTrueFalseTotal
eval { do { $self->{"permissions"}->require($req, $error->{"request"}, sub { my($success, $grant) = @_; return if $req->{"finished"}; return $req->error($grant) unless $success; $self->{"permissions"}->_remember($req, $error->{"request"}, $grant); $self->_dispatch($req); } ); 1 } } or do { my $failure = $@; die $failure if $req->{"finished"}; $self->event("error", $req, $failure); $req->error($failure) } 47 1 48
437 1 my $failure = $@;
438 1 ▶ die $failure if $req->{finished};
Branch: 1 branch
BranchTrueFalseTotal
if $req->{"finished"} 0 1 1
439 1 $self->event (error => $req, $failure);
440 1 $req->error ($failure);
441 };
442 } else {
443 58 $self->event (error => $req, $error);
444  
445 58 ▶ if ($req->{method} eq "tools/call") {
Branch: 1 branch
BranchTrueFalseTotal
if ($req->{'method'} eq 'tools/call') { } 57 1 58
446 57 $req->error ($error);
447 } else {
448 1 $self->_reject ($req, $req->{_reply}, -32603, "Internal error");
449 }
450 }
451 };
452 }
453  
454 11 ▶sub _reject {
Subroutine _reject: called CC=1 SCAR=0.0
455 11 my ($self, $req, $reply, $code, $message) = @_;
456  
457 11 $req->{finished} = 1;
458 11 my $key = $req->{id};
459 11 delete $req->{peer}{requests}{$key};
460 11 delete $req->{progress_timer};
461 11 delete @$req{qw(on_reply on_notify on_cancel _reply)};
462  
463 11 $self->_rpc_error ($reply, $req->{id}, $code, $message)
464 }
465  
466 634 ▶sub dispatch {
Subroutine dispatch: called CC=11 SCAR=24.0
Pod documented
467 634 my ($self, $req) = @_;
468  
469 634 my $method = $req->{method};
470  
471 634 ▶ if ($method eq "initialize") {
Branch: 5 branches
BranchTrueFalseTotal
if ($method eq 'initialize') { } 19 615 634
elsif ($method eq 'server/discover') { } 101 514 615
elsif ($method eq 'ping') { } 34 480 514
elsif ($method eq 'tools/list') { } 47 433 480
elsif ($method eq 'tools/call') { } 425 8 433
472 19 $req->{peer}{protocol_version} = $req->{protocol_version};
473 19 $req->{peer}{client_info} = $req->{params}{clientInfo};
474 19 $req->{peer}{client_capabilities} = $req->{params}{capabilities};
475  
476 my $result = {
477 protocolVersion => $req->{protocol_version},
478 serverInfo => $self->{server_info},
479 capabilities => $self->{capabilities},
480 19 };
481 19 ▶ $result->{instructions} = $self->{instructions} if length $self->{instructions};
Branch: 1 branch
BranchTrueFalseTotal
if length $self->{"instructions"} 7 12 19
482  
483 19 $req->reply ($result);
484  
485 } elsif ($method eq "server/discover") {
486 my $result = {
487 supportedVersions => $self->{versions},
488 capabilities => $self->{capabilities},
489 101 };
490 101 ▶ $result->{instructions} = $self->{instructions} if length $self->{instructions};
Branch: 1 branch
BranchTrueFalseTotal
if length $self->{"instructions"} 63 38 101
491  
492 101 $req->reply ($result);
493  
494 } elsif ($method eq "ping") {
495 34 $req->reply ({});
496  
497 } elsif ($method eq "tools/list") {
498 47 ▶ if ($self->{on_tools_list}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'on_tools_list'}) { } 12 35 47
499 12 $self->event (tools_list => $req);
500 } else {
501 35 $req->reply ({ tools => [map @{$_->list}, @{$self->{toolsets}}] });
502 }
503  
504 } elsif ($method eq "tools/call") {
505 425 ▶ if ($self->{on_tools_call}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'on_tools_call'}) { } 181 244 425
506 181 $self->event (tools_call => $req, $req->{args});
507 } else {
508 244 my ($toolset) = grep exists $_->{tool}{$req->{tool}}, @{$self->{toolsets}};
509  
510 244 ▶ if ($toolset) {
Branch: 1 branch
BranchTrueFalseTotal
if ($toolset) { } 243 1 244
511 243 $toolset->call ($req);
512 } else {
513 1 $self->_reject ($req, $req->{_reply}, -32602, "Unknown tool '$req->{tool}'");
514 }
515 }
516  
517 } else {
518 8 $self->_reject ($req, $req->{_reply}, -32601, "Method not found");
519 }
520 }
521  
522 91 1
« bin/anyevent-mcp-form-elicitation ↑ Summary blib/lib/AnyEvent/MCP/Server/Permissions.pm »