ProxyState#

class ansys.aedt.mcp.lanes.proxy.ProxyState#

Routing state of one proxy process.

Parameters:
hoststr

Host every lane listens on.

current_lanestr, optional

Selected lane, None until spawn_lane or switch_lane.

startup_timeoutfloat

Seconds a new lane gets to bind its port.

probe_timeoutfloat, optional

Seconds a lane gets to answer a status probe. None waits forever.

handshake_timeoutfloat

Seconds a lane gets to answer the MCP handshake of a routed call.

backend_argslist[str]

Additional ansys-aedt-mcp arguments for spawned lanes.

in_flightdict[int, tuple[str, str, float]]

Pending routed calls mapped to their lane, tool, and start time.

Overview#

Import detail#

from ansys.aedt.mcp.lanes.proxy import ProxyState

Attribute detail#

ProxyState.host: str#
ProxyState.current_lane: str | None = None#
ProxyState.startup_timeout: float = 60.0#
ProxyState.probe_timeout: float | None = 10.0#
ProxyState.handshake_timeout: float = 5.0#
ProxyState.backend_args: list[str] = []#
ProxyState.in_flight: dict[int, tuple[str, str, float]]#