Server lifecycle orchestration for the CLI.
Provides start_server_and_get_agent which handles the full flow of:
ServerConfig from CLI argumentsServerConfig.to_env()langgraph dev serverRemoteAgent clientAlso provides server_session, an async context manager that wraps
server startup and guaranteed cleanup so callers don't need to
duplicate try/finally teardown.