Skip to content

missing access token in Authorization header #73

@sudokai

Description

@sudokai

Pre-reqs

  • I've searched the current open issues
  • I've updated to the latest versions

Extension Version

0.1.3

Gemini CLI Version

0.20

Environment

23.6.0 Darwin Kernel Version 23.6.0: Thu Dec 19 20:44:10 PST 2024; root:xnu-10063.141.1.703.2~1/RELEASE_ARM64_T6000 arm64

Current Behavior

Every tool fails with a "missing access token in the 'Authorization' header" error, e.g.:

[{"functionResponse":{"name":"list_dataset_ids","response":{"error":{"message":"MCP error -32600: missing access token in the 'Authorization' header","isError":true}}}}]

My ADC credentials are fine:

> cat ~/.config/gcloud/application_default_credentials.json
{
  "account": "",
  "client_id": "76408.........1hur.apps.googleusercontent.com",
  "client_secret": "<secret>",
  "quota_project_id": "<project>",
  "refresh_token": "<token>",
  "type": "authorized_user",
  "universe_domain": "googleapis.com"
}

My user has the BigQuery Admin role.

Running bq on the command line, using the same user, works well.

Expected Behavior

The MCP should not fail.

Steps to reproduce?

  1. gcloud auth application-default login
  2. Enable BigQuery API in the Google Cloud Console
  3. IAM -> Set up permissions for the user
  4. Restart gemini cli

Additional Details

No response

Metadata

Metadata

Assignees

Labels

type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions