Module: HTM::MCP::Session
- Defined in:
- lib/htm/mcp/tools.rb
Overview
Session state for the current robot Each MCP client spawns its own server process, so this is naturally isolated
Constant Summary collapse
- DEFAULT_ROBOT_NAME =
"mcp_default"
Class Attribute Summary collapse
-
.logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
Class Attribute Details
.logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/htm/mcp/tools.rb', line 13 def logger @logger end |
Class Method Details
.htm_instance ⇒ Object
15 16 17 |
# File 'lib/htm/mcp/tools.rb', line 15 def htm_instance @htm_instance ||= HTM.new(robot_name: DEFAULT_ROBOT_NAME) end |
.robot_initialized? ⇒ Boolean
30 31 32 |
# File 'lib/htm/mcp/tools.rb', line 30 def robot_initialized? @robot_name != nil end |
.robot_name ⇒ Object
26 27 28 |
# File 'lib/htm/mcp/tools.rb', line 26 def robot_name @robot_name || DEFAULT_ROBOT_NAME end |