Skip to content

OAuth scope upgrade needed: spreadsheets.readonly → spreadsheets for write tools #253

@tuannvm

Description

@tuannvm

Summary

Implementing Google Sheets write tools (create, update, append, clear, add/delete sheet) requires upgrading the OAuth scope from spreadsheets.readonly to spreadsheets (full read/write access).

The current scope is defined in workspace-server/src/index.ts:

'https://www.googleapis.com/auth/spreadsheets.readonly',

This needs to become:

'https://www.googleapis.com/auth/spreadsheets',

Why this matters

This scope change requires updating the Google OAuth consent screen configuration — it cannot be shipped as a code-only change. The Google Cloud project's OAuth consent screen must be configured to request the broader spreadsheets scope, and users will need to re-authorize to grant the new permission.

What this unblocks

There are several open feature requests that all depend on Sheets write access:

We have a working implementation ready (with tests) for the following tools, pending this scope change:

Tool Description
sheets.updateRange Write values to a specific range
sheets.appendRange Append rows after last data
sheets.clearRange Clear values from a range
sheets.createSpreadsheet Create a new spreadsheet
sheets.addSheet Add a new tab to an existing spreadsheet
sheets.deleteSheet Delete a tab by its numeric sheet ID

Considerations

Action needed

The Google Cloud project owner / team needs to:

  1. Update the OAuth consent screen to include the spreadsheets scope
  2. Ensure the scope is approved for production use (if the app is verified)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions