Session Management

SessionManager stores stub-backed TiXI and TiGL handles in memory and maps them to UUID-based session identifiers.

Current guarantees

  • Session creation returns an opaque UUID string.

  • Missing sessions raise structured InvalidSession errors.

  • Closing a session marks the stored handles as closed and removes the session.

Session management for TiGL/TiXI handles.

class tigl_mcp.session_manager.SessionData(tixi_handle, tigl_handle, config, cpacs_xml)[source]

Session payload stored by SessionManager.

class tigl_mcp.session_manager.SessionManager[source]

In-memory manager mapping session identifiers to handles.

Initialize the session manager with empty state.

close(session_id)[source]

Close and remove a session.

create_session(tixi_handle, tigl_handle, config, cpacs_xml)[source]

Register a new session and return its identifier.

get(session_id)[source]

Retrieve handles for a session or raise an MCP error.

get_cpacs_xml(session_id)[source]

Retrieve the original CPACS XML for a session.