NAME

MCP::Server::KnowledgeStore::Tools::Support - Shared helpers every MCP::Server::KnowledgeStore::Tools::* plugin uses

VERSION

version 0.001

DESCRIPTION

Small helpers common to every MCP::Server::KnowledgeStore::Tools::* plugin - the input-schema fragments, the summary shape, and how a save's author is worked out. Pulled out here rather than duplicated per plugin, since every plugin distribution already depends on this one for MCP::Server::KnowledgeStore::Store.

FUNCTIONS

Exported on request; none are exported by default.

name_pattern

The slug pattern every entry name is validated against.

summary($entry)

Renders an entry hash (from MCP::Server::KnowledgeStore::Store) into the shape a list_*/search_* tool returns - no body, since that is what get_* is for.

author($tool, $args)

The author to record for a save: the caller's explicit author argument, or the authenticated principal.

revision_property / author_property / project_property

Reusable input_schema property fragments.

AUTHOR

Wesley Schwengle <waterkip@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Wesley Schwengle.

This is free software, licensed under:

The (three-clause) BSD License