Skip to content

Chat API returns 404 using bundled OAuth credentials #493

Description

@rschnitz

Problem

Google Chat tools (list_spaces, get_messages, search_messages) return a 404 error:

HttpError 404 when requesting https://chat.googleapis.com/v1/spaces?pageSize=10&alt=json
returned "Google Chat app not found. To create a Chat app, you must turn on the Chat API
and configure the app in the Google Cloud console."

Context

Root cause (likely)

The Chat API needs to be enabled on the GCP project that hosts the bundled OAuth client ID. PRs #484 and #486 added the correct OAuth scopes (chat.spaces.readonly, etc.), but the underlying GCP project may not have the Google Chat API enabled yet.

Steps to reproduce

  1. Install latest workspace-mcp
  2. Authenticate with any Google Workspace account
  3. Call list_spaces
  4. Get 404 error

Expected behavior

list_spaces should return the user's accessible Chat spaces.

Environment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions