From d254d4ce007d446dbd246658345a30ff86413721 Mon Sep 17 00:00:00 2001 From: ashwinpvg Date: Thu, 24 Jul 2025 10:37:39 -0700 Subject: Add Google credentials provider for authenticating with MCP servers (#4748) --- docs/tools/mcp-server.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'docs') diff --git a/docs/tools/mcp-server.md b/docs/tools/mcp-server.md index 187bd370..cd70da04 100644 --- a/docs/tools/mcp-server.md +++ b/docs/tools/mcp-server.md @@ -179,6 +179,28 @@ OAuth tokens are automatically: - **Validated** before each connection attempt - **Cleaned up** when invalid or expired +#### Authentication Provider Type + +You can specify the authentication provider type using the `authProviderType` property: + +- **`authProviderType`** (string): Specifies the authentication provider. Can be one of the following: + - **`dynamic_discovery`** (default): The CLI will automatically discover the OAuth configuration from the server. + - **`google_credentials`**: The CLI will use the Google Application Default Credentials (ADC) to authenticate with the server. When using this provider, you must specify the required scopes. + +```json +{ + "mcpServers": { + "googleCloudServer": { + "httpUrl": "https://my-gcp-service.run.app/mcp", + "authProviderType": "google_credentials", + "oauth": { + "scopes": ["https://www.googleapis.com/auth/userinfo.email"] + } + } + } +} +``` + ### Example Configurations #### Python MCP Server (Stdio) -- cgit v1.2.3