Class: RosettAi::Mcp::Tools::ConfigStatusTool

Inherits:
Object
  • Object
show all
Defined in:
lib/rosett_ai/mcp/tools/config_status_tool.rb

Overview

MCP tool: show rai configuration status.

Returns the current state of rai configuration including project info, engine status, and validation state.

Author:

  • hugo

  • claude

Constant Summary collapse

TOOL_NAME =
'rai_config_status'
DESCRIPTION =
'Show rai configuration and project status'
ANNOTATIONS =
{
  'readOnlyHint' => true,
  'destructiveHint' => false,
  'idempotentHint' => true,
  'openWorldHint' => false
}.freeze

Instance Method Summary collapse

Instance Method Details

#callHash

Executes the status check.

Returns:

  • (Hash)

    result with configuration status



30
31
32
33
34
35
36
37
38
# File 'lib/rosett_ai/mcp/tools/config_status_tool.rb', line 30

def call
  {
    version: RosettAi::VERSION,
    project_root: RosettAi.root.to_s,
    behaviours: count_files('conf/behaviour'),
    designs: count_files('conf/design'),
    engines: detect_engines
  }
end