Session Management
SessionManager stores in-memory cycle problem objects and maps them to
UUID-based session identifiers.
Current guarantees
Session creation returns an opaque UUID string.
Missing sessions raise a
KeyErrorand are surfaced as structured MCP errors by tool wrappers.Closing a session removes the stored problem from memory.
Session management for pyCycle MCP server.
- class pycycle_mcp.session_manager.SessionManager[source]
Manage pyCycle/OpenMDAO Problem sessions keyed by UUID.
- class pycycle_mcp.session_manager.SessionRecord(problem, meta=<factory>)[source]
Container for an OpenMDAO Problem and metadata.
- pycycle_mcp.session_manager.session_manager = <pycycle_mcp.session_manager.SessionManager object>
Module-level session manager for convenience.