Typed error thrown when the MCP gateway returns 401 (session expired). Callers can detect this with instanceof MCPSessionExpiredError to trigger re-authentication.
instanceof MCPSessionExpiredError
Construct a new session-expired error.
Raw HTTP status text returned by the gateway with the 401.
Typed error thrown when the MCP gateway returns 401 (session expired). Callers can detect this with
instanceof MCPSessionExpiredErrorto trigger re-authentication.