Class: HTM::MCP::RobotGroupsResource

Inherits:
FastMcp::Resource
  • Object
show all
Defined in:
lib/htm/mcp/resources.rb

Overview

Resource: Robot Groups

Instance Method Summary collapse

Instance Method Details

#contentObject



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/htm/mcp/resources.rb', line 13

def content
  groups = GroupSession.group_names.map do |name|
    group = GroupSession.get_group(name)
    group.status
  end

  {
    count:  groups.length,
    groups: groups
  }.to_json
end