Class: RosettAi::Mcp::Tools::DesignListTool
- Inherits:
-
Object
- Object
- RosettAi::Mcp::Tools::DesignListTool
- Defined in:
- lib/rosett_ai/mcp/tools/design_list_tool.rb
Overview
MCP tool: list rai design documents.
Returns a structured list of all design documents with metadata (name, status, priority, domain).
Constant Summary collapse
- TOOL_NAME =
'rai_design_list'- DESCRIPTION =
'List all rai design documents'- ANNOTATIONS =
{ 'readOnlyHint' => true, 'destructiveHint' => false, 'idempotentHint' => true, 'openWorldHint' => false }.freeze
Instance Method Summary collapse
-
#call ⇒ Hash
Executes the listing.
Instance Method Details
#call ⇒ Hash
Executes the listing.
30 31 32 33 34 35 36 |
# File 'lib/rosett_ai/mcp/tools/design_list_tool.rb', line 30 def call dir = RosettAi.root.join('conf', 'design') return { designs: [] } unless dir.directory? designs = dir.glob('*.yml').filter_map { |path| load_design(path) } { designs: designs } end |