NAME

MCP::Server::KnowledgeStore::Command::agent - Sync agent definitions between the store and .claude/agents

VERSION

version 0.001

SYNOPSIS

./bin/mcp-ks agent list
./bin/mcp-ks agent list --project abto
./bin/mcp-ks agent pull react-native-programming
./bin/mcp-ks agent pull --project abto
./bin/mcp-ks agent push react-native-programming --project abto

DESCRIPTION

Agent definitions (.claude/agents/*.md) are stored verbatim in MCP::Server::KnowledgeStore::Store's agents table, but reading one back over MCP does not make it usable: Claude Code resolves subagent_type from local files before any tool call can run. This command is the missing step - pull writes the stored body to a local file, push reads a local file into the store.

METHODS

run

$command->run(@ARGV);

Dispatches to list, pull or push.

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