client.mcp_catalog for curated server definitions and client.mcp_servers for server, credential, OAuth, discovery, and tool-provisioning operations.
Install from the curated catalog
Register a server
Credentials and OAuth
oauth.authorization_url in your application, then pass the returned code, the original single-use state, and the same redirect_uri to oauth_exchange(...).
Discover and provision
discover(...) method uses the server/default credential resolution path; Python additionally accepts an explicit credential_scope. When a credential becomes active or discovery runs manually, AgentFlow creates newly discovered tenant tools and provisionally assigns them to MainAgent. Existing administrator enablement and assignment decisions are preserved on later reconnects.
import_tool(...) is an explicit recovery path for one remote definition when automatic provisioning did not create it. That method returns an unassigned tool, so assign it through client.agents.tools. Calling it after successful provisioning can return a conflict because the tool already exists.
Use list_credentials(...), credentials_self(...), rotate_credential(...), and delete_credential(...) to manage credential metadata and lifecycle.
