| 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__ | ||