create_session
create_session
Create and register a new session. If a session with the same ID already exists,
the old session is closed first. Raises RuntimeError if the total session limit
or the per-service session limit is exceeded.
Parameters
session_id
Unique session identifier, typically a SignalWire call ID.
service_name
Name of the MCP service for this session.
process
The MCP client process to associate with this session.
timeout
Session timeout in seconds. Defaults to the manager’s default_timeout (300).
metadata
Arbitrary metadata to attach to the session.
Returns
Session — The newly created session object.