blib/lib/MCP/Server/KnowledgeStore/Tools/Memory.pm

filter: Statementstmt 60.0% 3 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 71.4% 5 / 7 CC 1 SCAR 1.4
CC
1
Cov
60%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
↑ Summary
1 package MCP::Server::KnowledgeStore::Tools::Memory;
2 2 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 0 ▶use Mojo::Base -strict, -signatures;
Subroutine BEGIN: called CC=1 SCAR=2.6
4  
5 our $VERSION = '0.001';
6  
7 # ABSTRACT: The memory MCP tools, as an MCP::Server::KnowledgeStore::Tools plugin
8  
9 use MCP::Server::KnowledgeStore::Tools::Revisioned;
10  
11 sub register ($class, $server, $store, %opts) {
12 return MCP::Server::KnowledgeStore::Tools::Revisioned->register(
13 $server, $store,
14 kind => 'memory',
15 plural => 'memories',
16 type => 1,
17 search => 1,
18 allow_purge => $opts{allow_purge},
19 );
20 }
21  
22 1;
23  
24 __END__
↑ Summary