Class: SolidLoop::McpInboundSession
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- SolidLoop::McpInboundSession
- Defined in:
- app/models/solid_loop/mcp_inbound_session.rb
Overview
A session issued by Mcp::Server to an external MCP client — the inbound mirror of McpSession (which is shaped around the loop and does not apply here). One row per client connection; inbound Events hang off it. See docs/decisions/mcp-server.md.
Instance Method Summary collapse
-
#terminated? ⇒ Boolean
Sessions are bound to the authenticated principal's stable key AND the mount identity; in-session lookup scopes to both so a different valid principal cannot ride another caller's session_id.
Instance Method Details
#terminated? ⇒ Boolean
Sessions are bound to the authenticated principal's stable key AND the
mount identity; in-session lookup scopes to both so a different valid
principal cannot ride another caller's session_id. principal stays the
human-readable label; principal_key is the identity. See Mcp::Server.
21 22 23 |
# File 'app/models/solid_loop/mcp_inbound_session.rb', line 21 def terminated? terminated_at.present? end |