macOS: BigQuery MCP `browse_table` blocked in Read-Only Safe Mode
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 70/100
研究方向
從 apple/TablePro/Core/MCP/Protocol/Tools/DataTools.swift(第 93-119 行)中的 BrowseTableTool 與 BigQueryQueryBuilder.swift(第 110-166 行)中的 BigQuery 建構器開始;注意帶標籤的 BIGQUERY_BROWSE: 請求。然後閱讀 DefaultExecutionGate.swift(第 60-85 行)中的 DefaultExecutionGate 以及 BigQueryPluginDriver+Execution.swift(第 281-287 行)中的 SELECT 渲染。用 issue 的離線 statement-scanner 檢查重現,比較帶標籤的請求與渲染後的 SQL 層級;當唯讀瀏覽傳回一列且寫入封鎖保持不變時完成。
由索引模型根據 Issue 內容生成。
描述
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
-
Connect TablePro to a BigQuery test dataset, such as
sample_dataset, with a tablesample_rows(id INT64)containing one row. Set the connection’s Safe Mode to Read-Only. -
From an approved MCP client, call
browse_tablewith 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.
- 主要語言
- Swift
- 星號
- 6.2k
- 分支
- 412
- 平均合併
- 7 小時 38 分鐘
- 30 天內合併 PR
- 536
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TableProApp/TablePro 的其他 Issue
-
bug platform-macos
難度 2/5 1-3 小時 新手友好度 62/100
TableProApp/TablePro#4389 ·
維護者通常 1 天內回覆
-
bug platform-macos
難度 2/5 1-3 小時 新手友好度 68/100
TableProApp/TablePro#4388 ·
維護者通常 1 天內回覆
-
bug
難度 3/5 1-2 天 新手友好度 55/100
TableProApp/TablePro#4348 · 4 則留言 ·
維護者通常 1 天內回覆
-
Separate connections per project (like DataGrip projects)可能已有人在做 @datlechin 於 1 天前認領。 未關閉enhancement
難度 5/5 一週以上 新手友好度 25/100
TableProApp/TablePro#4307 ·
維護者通常 1 天內回覆
-
enhancement platform-macos
難度 5/5 一週以上 新手友好度 8/100
TableProApp/TablePro#4276 ·
維護者通常 1 天內回覆
查看 TableProApp/TablePro 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
YahiaAngelo/vphone-linux#70 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
-
Chat Colour未關閉
難度 2/5 1-3 小時 新手友好度 65/100
permissionlesstech/bitchat#1861 ·
維護者通常 3 天內回覆
-
Enhancement SwiftUI
難度 2/5 1-3 小時 新手友好度 82/100
vdhamer/Photo-Club-Hub#901 ·
-
Enhancement
難度 2/5 1-3 小時 新手友好度 70/100
vdhamer/Photo-Club-Hub-Data#113 ·