Skip to content

Agent Identity

Installation

pip install "google-adk[agent-identity]"

Global Registration

Register the provider globally in your application:

from google.adk.auth.credential_manager import CredentialManager
from google.adk.integrations.agent_identity import GcpAuthProvider

CredentialManager.register_auth_provider(GcpAuthProvider())

Toolset Configuration

To use the Agent Identity provider with a specific toolset, define the scheme and pass it to the toolset's constructor.

from google.adk.integrations.agent_identity import GcpAuthProviderScheme

auth_scheme = GcpAuthProviderScheme(name="my-jira-auth_provider")
mcp_toolset_jira = McpToolset(..., auth_scheme=auth_scheme)