diff options
| author | ashwinpvg <[email protected]> | 2025-07-24 10:37:39 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-24 17:37:39 +0000 |
| commit | d254d4ce007d446dbd246658345a30ff86413721 (patch) | |
| tree | dbac317ca2a8f8d2f9e11e9100491af77b7fcde4 /docs/tools/mcp-server.md | |
| parent | 3dd6e431df057af47b96990d0c9c6477ccfbe452 (diff) | |
Add Google credentials provider for authenticating with MCP servers (#4748)
Diffstat (limited to 'docs/tools/mcp-server.md')
| -rw-r--r-- | docs/tools/mcp-server.md | 22 |
1 files changed, 22 insertions, 0 deletions
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) |
