Skip to content

macOS: BigQuery MCP browse_table blocked in Read-Only Safe Mode #4385

Closed

Description

@kremec

What happened?

With Safe Mode set to Read-Only on a BigQuery connection, MCP browse_table returned:

Cannot execute write queries: TablePro's Safe Mode is set to read-only for this connection

list_databases, list_schemas, and describe_table succeeded on the same BigQuery connection.

Steps to reproduce

  1. Connect TablePro to a BigQuery test dataset, such as sample_dataset, with a table sample_rows(id INT64) containing one row. Set the connection’s Safe Mode to Read-Only.

  2. From an approved MCP client, call browse_table with the following arguments, replacing the placeholder with the test connection’s UUID:

    {"connection_id":"<test connection UUID>","schema":"sample_dataset","table":"sample_rows","limit":1}

Expected behavior

The browse returns up to one row, and Read-Only Safe Mode continues to block writes.

Environment

  • TablePro: 0.87.0 (870099)
  • Platform: macOS 27.2.1, Apple Silicon
  • Database: Google BigQuery (managed service; no server version reported)

Source and offline reproduction

BrowseTableTool submits a .readQuery operation, but the BigQuery builder returns a tagged request (BIGQUERY_BROWSE: or BIGQUERY_FILTER:). DefaultExecutionGate classifies that text before the driver renders the SELECT.

The offline check generated plain and filtered browse requests with the upstream builder, normalized them with the statement scanner, and used SQLStatementClassifier.classify to grade the requests and the SQL they render. The results matched on v0.87.0 and main at c422096:

Input Statement tier
Plain or filtered BigQuery browse request .write
SELECT rendered from either request .safe

The offline check did not run the application or contact BigQuery.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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