MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / get_session_id

Method get_session_id

src/mcp_client/client.py:129–137  ·  view source on GitHub ↗

Return the current MCP Streamable HTTP session id, if known. This is the value that must be persisted in checkpoints to allow resuming with the same sandbox session (filesystem/browser/shell state).

(self)

Source from the content-addressed store, hash-verified

127 self._loop = None
128
129 def get_session_id(self) -> Optional[str]:
130 """
131 Return the current MCP Streamable HTTP session id, if known.
132
133 This is the value that must be persisted in checkpoints to allow resuming
134 with the same sandbox session (filesystem/browser/shell state).
135 """
136 self._update_session_id_from_transport()
137 return self._session_id
138
139 def enable_tracing(self, trace_path: str) -> None:
140 """

Callers 2

invokeMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected