The client.py module#

Summary#

LaneAuth

Send a lane bearer token and record whether the lane rejected it.

BackendClient

MCP client bound to one lane backend.

BackendAuthError

Raised when a lane answers HTTP 401 because the token is wrong or missing.

aedt_port_from_status

Return the AEDT gRPC port from a check_aedt_status payload.

DEFAULT_PATH

Path of the MCP endpoint served by the HTTP transport.

Description#

Async MCP client used to drive one lane backend.

Module detail#

client.aedt_port_from_status(status: dict[str, Any]) → int | None#

Return the AEDT gRPC port from a check_aedt_status payload.

Parameters:
statusdict[str, Any]

Parsed check_aedt_status output.

Returns:
int or None

AEDT gRPC port, or None when the lane is not connected.

client.DEFAULT_PATH = '/mcp/'#

Path of the MCP endpoint served by the HTTP transport.