Repository navigation
feat(sources): support native read-only mode and dynamic tool annotations - #3872
Merged
Merged
Conversation
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
anubhav756
force-pushed
the
feat/read-only
branch
2 times, most recently
from
August 27, 2026 06:48
4fb5db3 to
58fdcab
Compare
anubhav756
marked this pull request as ready for review
August 27, 2026 08:56
anubhav756
force-pushed
the
feat/read-only
branch
2 times, most recently
from
August 27, 2026 15:07
8a2b3e1 to
745c92d
Compare
anubhav756
force-pushed
the
feat/read-only
branch
3 times, most recently
from
August 27, 2026 18:13
2db76b9 to
47fa383
Compare
anubhav756
disabled auto-merge
August 27, 2026 20:23
anubhav756
enabled auto-merge (squash)
August 27, 2026 20:53
anubhav756
disabled auto-merge
August 27, 2026 21:16
anubhav756
force-pushed
the
feat/read-only
branch
3 times, most recently
from
August 27, 2026 21:47
0a77a2f to
6eb0010
Compare
anubhav756
enabled auto-merge (squash)
August 27, 2026 21:50
## Description This PR introduces core framework support for agent-level tool suppression and dynamic annotations in read-only mode. When a data source or admin service is configured as `readonly: true`, write-capable and destructive tools bound to that source are automatically suppressed from tool registration and pruned from tool groups. This saves valuable LLM agent context window space, eliminates agent confusion by preventing tool hallucination/misuse on read-only resources, and acts as a defense-in-depth layer in conjunction with database-level session locking. ### Design 1. **`sources.Source` Interface Extension**: - Added `IsReadOnly() bool` to the `sources.Source` interface. - Implemented `IsReadOnly()` across all existing data source drivers (50+ sources). - Added `readonly` configuration support to `alloydb-admin` and `cloud-sql-admin` sources. 2. **Tool Suppression Protocol**: - Added `ShouldSuppress(sources.Source) bool` to the `tools.Tool` interface. - In `BaseTool`, default suppression logic checks if the bound source is in read-only mode and suppresses any tool whose `ReadOnlyHint` annotation is `false`. - Read-only tools (`ReadOnlyHint == true`) and unannotated tools are preserved (with a warning logged for unannotated tools to encourage explicit annotation). - Tools like `postgresexecutesql` and `mysqlexecutesql` override `ShouldSuppress` to remain enabled because they enforce read-only semantics at the database connection/session level. 3. **Server-Level Tool Filtering & Group Pruning**: - During tool initialization (`initializeTools`), write-capable tools bound to read-only sources are suppressed and omitted from the server's registered tools map with an informative log. - During group initialization (`initializeGroups`), suppressed tools are cleanly pruned from configured groups while keeping the group intact and preserving standard validation errors for genuinely missing tools. 4. **Dynamic Tool Annotations in MCP Manifests**: - Updated MCP version manifests (`v20241105`, `v20250326`, `v20250618`, `v20251125`, `v20260728`) to query `tool.Manifest(src)` dynamically. 5. **Cloud SQL PG Vector Assist Annotations**: - Updated vector assist tools (`vectorassistapplyspec`, `vectorassistdefinespec`, `vectorassistgeneratequery`, `vectorassistgetspec`, `vectorassistimprovequeryrecall`, `vectorassistlistspecs`, `vectorassistmodifyspec`) with annotations (`ReadOnlyAnnotations` vs `DestructiveAnnotations`) and support for custom YAML annotations. ## PR Checklist - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary)
…y sources (#3816) ## Summary Enables multi-mode tools (e.g., SQL execution tools) to dynamically advertise `readOnlyHint: true` and `destructiveHint: false` in MCP tool manifests when bound to a read-only data source, and centralizes tool suppression logic across the server. ## Context & Motivation * Tools like `postgres-execute-sql` and `mysql-execute-sql` are multi-mode (capable of both reads and writes) and default to `readOnlyHint: false` / `destructiveHint: true`. When connected to a `readOnly: true` database source (where session-level locks prevent modifications), these tools should dynamically report `readOnlyHint: true` and `destructiveHint: false` to MCP clients without requiring separate read-only tool implementations. * Refactored `ShouldSuppress` from a `BaseTool` method into a package-level function `tools.ShouldSuppress(ctx, t, src)` that operates on the `Tool` interface, allowing suppression to dynamically evaluate `t.GetAnnotations(src)` without requiring concrete tool method overrides. ## Changes * Updated `Tool.GetAnnotations(sources.Source) *ToolAnnotations` to make annotations source-aware (matching the design pattern of `GetParameters(sources.Source)` and `Manifest(sources.Source)`). * Updated `BaseTool.GetAnnotations(_ sources.Source)` to return static annotations by default. * Added `DynamicReadOnlyAnnotations(base *ToolAnnotations) *ToolAnnotations` in `internal/tools/tools.go` to safely copy base annotations and set `ReadOnlyHint: true` / `DestructiveHint: false` while preserving other custom hints (e.g. `idempotentHint`, `openWorldHint`). * Updated `postgres-execute-sql` and `mysql-execute-sql` to implement `GetAnnotations(src)` using `tools.DynamicReadOnlyAnnotations(t.BaseTool.GetAnnotations(src))` when `src.IsReadOnly()`. * Removed redundant `ShouldSuppress` method overrides from concrete SQL tool structs. * Updated all 5 MCP schema version generators (`v20241105`, `v20250326`, `v20250618`, `v20251125`, `v20260728`) in `internal/server/mcp/` to pass `src` into `tool.GetAnnotations(src)`. * Added table-driven tests for `tools.DynamicReadOnlyAnnotations` in `internal/tools/tools_test.go` verifying nil handling, default flipping, custom hint preservation, and pointer immutability. * Updated `internal/server/server_test.go` and `internal/tools/tools_test.go` to test `tools.ShouldSuppress` with both write and destructive tools using `tools.NewWriteAnnotations()` and `tools.NewDestructiveAnnotations()`. * Updated Looker unit test suites to pass `tool.GetAnnotations(nil)`.
## Description
This PR implements native, protocol-level Read-Only session enforcement
for Cloud SQL for MySQL.
## Changes
- Appends `&session_variables=cloudsql_session_read_only%3Dlocked` to
the connection DSN when `readOnly: true` is configured on the source.
- Added `ReadOnly bool` to `cloudsqlmysql.Config` and implemented
`IsReadOnly() bool` on `cloudsqlmysql.Source`.
- Updated prebuilt configuration templates (`cloud-sql-mysql.yaml` and
`cloud-sql-mysql-admin.yaml`) to dynamically resolve read-only mode via
the `CLOUDSQL_MYSQL_READONLY` environment variable (`readonly:
${CLOUDSQL_MYSQL_READONLY:false}`).
- Enforces non-bypassable session locking directly within the MySQL
database engine upon connection handshake, thwarting prompt injection
mutations and multi-statement breakout attempts.
- Added unit tests, integration vulnerability tests, and updated
integration READMEs.
## Overview
Add support for BigQuery in Toolbox's Read-Only architecture.
When BigQuery is configured with `writeMode: "blocked"`, the source is
recognized as read-only (`IsReadOnly() == true`). `bigquery-execute-sql`
remains available to AI agents for `SELECT` queries as a single
polymorphic tool, dynamically updating its MCP annotations to
`readOnlyHint: true` and `destructiveHint: false`. Any dedicated
mutating tools without read-only annotations are automatically
suppressed.
## Changes
- Updated `BigQuerySource.IsReadOnly()` to return `true` when `WriteMode
== "blocked"`.
- Added unit tests covering all `writeMode` states (`blocked`,
`allowed`, `protected`, empty default).
- Implemented `ShouldSuppress(ctx, source) bool { return false }` so
`execute_sql` remains exposed to agents for `SELECT` queries on
read-only sources.
- Implemented `GetAnnotations(src)` to dynamically return `readOnlyHint:
true` and `destructiveHint: false` when connected to a `writeMode:
"blocked"` source, preserving custom hints.
- Added comprehensive unit tests (`TestGetAnnotations`,
`TestShouldSuppress`).
- Exposed `writeMode: ${BIGQUERY_WRITE_MODE:allowed}` on
`bigquery-source` so prebuilt images can be launched in read-only mode
via environment variables (`BIGQUERY_WRITE_MODE=blocked ./toolbox
--prebuilt bigquery`).
- Added `TestBigQuery_ReadOnlyVulnerabilityBlock` verifying that if a
custom tool is falsely annotated with `readOnlyHint: true` on a
`writeMode: "blocked"` source, BigQuery dry-run validation catches and
rejects mutating SQL statements (like `CREATE TABLE`) before execution.
- Updated the `writeMode` reference table to document coordination with
MCP read-only annotations and tool suppression.
## Description
This PR implements native, protocol-level Read-Only session enforcement
for Cloud SQL for PostgreSQL.
## Changes
- Appends `options='-c cloudsql_session_read_only=locked'` to the
connection DSN when `readOnly: true` is configured on the source.
- Added `ReadOnly bool` to `cloudsqlpg.Config` and implemented
`IsReadOnly() bool` on `cloudsqlpg.Source`.
- Updated prebuilt configuration templates (`cloud-sql-postgres.yaml`
and `cloud-sql-postgres-admin.yaml`) to dynamically resolve read-only
mode via the `CLOUDSQL_PG_READONLY` environment variable (`readonly:
${CLOUDSQL_PG_READONLY:false}`).
- Enforces non-bypassable read-only mode at the PostgreSQL kernel level,
preventing physical Transaction ID (XID) allocation for DML/DDL
mutations, transaction breakout attacks (e.g. `COMMIT; DROP TABLE;`),
and side-effecting stored procedures.
- Added unit tests in `cloud_sql_pg_test.go`, integration vulnerability
tests and updated integration READMEs.
## Description
This PR implements native, protocol-level Read-Only session enforcement
for AlloyDB for PostgreSQL.
## Changes
- Appends `options='-c alloydb_session_read_only=locked'` to the
connection DSN when `readOnly: true` is configured on the source.
- Added `ReadOnly bool` to `alloydbpg.Config` and implemented
`IsReadOnly() bool` on `alloydbpg.Source`.
- Updated prebuilt configuration templates (`alloydb-postgres.yaml` and
`alloydb-postgres-admin.yaml`) to dynamically resolve read-only mode via
the `ALLOYDB_READONLY` environment variable (`readonly:
${ALLOYDB_READONLY:false}`).
- Leverages AlloyDB's native session-lockout flag to block physical
Transaction ID (XID) allocation, guaranteeing that all DML/DDL write
operations, transaction breakout attempts (`COMMIT; START TRANSACTION
READ WRITE;`), and mutating stored procedures fail-closed at the engine
layer.
- Added unit tests, integration vulnerability tests, and updated
integration documentation.
anubhav756
force-pushed
the
feat/read-only
branch
from
August 27, 2026 22:18
6eb0010 to
5748a5f
Compare
Contributor
|
🧨 Preview deployments removed. Cloudflare Pages environments for |
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 27, 2026
…amic tool annotations (#3872) ## Description This PR introduces end-to-end Read-Only mode support across Toolbox, spanning core framework tool suppression, source-aware dynamic MCP tool annotations, and protocol/session-level enforcement for database sources. When a data source is configured in read-only mode: 1. **Agent-Level Tool Suppression**: Write-capable tools bound to read-only sources are suppressed from tool registration and pruned from tool groups to save LLM context window space and prevent hallucinated write attempts. 2. **Dynamic Tool Annotations**: Multi-mode tools (such as SQL execution tools) dynamically advertise `readOnlyHint: true` and `destructiveHint: false` in MCP tool manifests when connected to read-only sources. 3. **Database Session-Level Enforcement**: Database drivers enforce strict, protocol-level session locking directly within the database engine/client driver, preventing prompt injection or multi-statement write breakouts. ## PRs Included - #3615 - #3816 - #3618 - #3851 - #3619 - #3617
Yuan325
added a commit
that referenced
this pull request
Aug 27, 2026
🤖 I have created a release *beep* *boop* --- ## [1.10.0](v1.9.0...v1.10.0) (2026-08-27) ### Features * **falkordb:** Add FalkorDB source and tools ([#3692](#3692)) ([a94702c](a94702c)) * **firestore-mongodb:** Add firestore-execute-mql and firestore-get-… ([#3826](#3826)) ([4a85d75](4a85d75)) * **mcp:** Add Secure Parameters support as Toolbox experimental extension ([#3394](#3394)) ([9750d2d](9750d2d)) * **server/mcp:** Support com.google.cloud/toolbox.v1 extension in v20260728 ([#3801](#3801)) ([f4f7da6](f4f7da6)) * **skill:** Add fix-failing-tests skill for mcp-toolbox ([#3821](#3821)) ([168e69c](168e69c)) * **sources:** Support native read-only mode and dynamic tool annotations ([#3872](#3872)) ([c257022](c257022)), refs [#3615](#3615) [#3816](#3816) [#3618](#3618) [#3851](#3851) [#3619](#3619) [#3617](#3617) * **tool/mongodb:** Allow collection to be specified at runtime ([#3715](#3715)) ([7626eaf](7626eaf)) ### Bug Fixes * **cloud-storage:** Resolve symlinks when enforcing local path boundaries ([#3810](#3810)) ([c2ada64](c2ada64)) * **config:** Compare env var offsets in rune space when skipping comments ([#3856](#3856)) ([2e76934](2e76934)) * Merge prebuilt tools when reloading custom config ([#3864](#3864)) ([5a6d865](5a6d865)) * Normalize postgres UUIDs to strings ([#3806](#3806)) ([3b02f1d](3b02f1d)) * **postgres:** Filter background processes in postgres-list-active-queries ([#3885](#3885)) ([3d9e62a](3d9e62a)) * **test/alloydbainl:** Use explicit SQL alias prompts to stabilize AI… ([#3877](#3877)) ([50e45ed](50e45ed)) * **tests:** Prevent resource leaks by using context.WithoutCancel ([#3849](#3849)) ([f97a4f9](f97a4f9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 27, 2026
🤖 I have created a release *beep* *boop* --- ## [1.10.0](v1.9.0...v1.10.0) (2026-08-27) ### Features * **falkordb:** Add FalkorDB source and tools ([#3692](#3692)) ([a94702c](a94702c)) * **firestore-mongodb:** Add firestore-execute-mql and firestore-get-… ([#3826](#3826)) ([4a85d75](4a85d75)) * **mcp:** Add Secure Parameters support as Toolbox experimental extension ([#3394](#3394)) ([9750d2d](9750d2d)) * **server/mcp:** Support com.google.cloud/toolbox.v1 extension in v20260728 ([#3801](#3801)) ([f4f7da6](f4f7da6)) * **skill:** Add fix-failing-tests skill for mcp-toolbox ([#3821](#3821)) ([168e69c](168e69c)) * **sources:** Support native read-only mode and dynamic tool annotations ([#3872](#3872)) ([c257022](c257022)), refs [#3615](#3615) [#3816](#3816) [#3618](#3618) [#3851](#3851) [#3619](#3619) [#3617](#3617) * **tool/mongodb:** Allow collection to be specified at runtime ([#3715](#3715)) ([7626eaf](7626eaf)) ### Bug Fixes * **cloud-storage:** Resolve symlinks when enforcing local path boundaries ([#3810](#3810)) ([c2ada64](c2ada64)) * **config:** Compare env var offsets in rune space when skipping comments ([#3856](#3856)) ([2e76934](2e76934)) * Merge prebuilt tools when reloading custom config ([#3864](#3864)) ([5a6d865](5a6d865)) * Normalize postgres UUIDs to strings ([#3806](#3806)) ([3b02f1d](3b02f1d)) * **postgres:** Filter background processes in postgres-list-active-queries ([#3885](#3885)) ([3d9e62a](3d9e62a)) * **test/alloydbainl:** Use explicit SQL alias prompts to stabilize AI… ([#3877](#3877)) ([50e45ed](50e45ed)) * **tests:** Prevent resource leaks by using context.WithoutCancel ([#3849](#3849)) ([f97a4f9](f97a4f9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <[email protected]>
anubhav756
added a commit
that referenced
this pull request
Sep 1, 2026
…tance concurrency (#3901) ## Overview Fixes intermittent test failures in `list_active_queries` by making the test verify that our test query is present in the results, rather than assuming our test is the only thing running on the shared database. ## Background * In #3872, we added native read-only support for AlloyDB. * To test this, we upgraded our shared test database from PostgreSQL 15 to PostgreSQL 17, which supports read-only session locking. ## What Failure Happened After Upgrade? * In PostgreSQL 17, internal background processes (like data sync and replication helpers) now stay permanently connected and show up as `"active"` in Postgres’s activity monitor (see [`pg_stat_activity`](https://www.postgresql.org/docs/17/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW)). * In PostgreSQL 15, these background helpers were not reported this way. * Because our integration test originally expected the database to have zero running queries when idle, seeing these new Postgres 17 background helpers caused the test to fail. ## Previous Attempt (#3885) * In #3885, we filtered out Postgres's internal helpers by only looking for regular user sessions (`backend_type = 'client backend'`). * **Why it still flaked?** Other CI test runs also connect as regular user sessions (`client backend`). Because multiple CI jobs share the same test database, whenever two tests ran at the same time, the tool caught queries from both tests (2 queries instead of 1), causing the exact count check to flake. ## Solution Instead of requiring the shared database to have only our query and nothing else: * We check that our expected query is included in the returned list. * This is also how other shared tests in this repo work. ## Links * [PostgreSQL 17: `pg_stat_activity` Documentation](https://www.postgresql.org/docs/17/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW) * [PostgreSQL 17 Release Notes](https://www.postgresql.org/docs/17/release-17.html)
debabsah
added a commit
to debabsah/mcp-toolbox
that referenced
this pull request
Sep 10, 2026
sources.Source gained IsReadOnly() bool in googleapis#3872, so the Iceberg source no longer satisfied the interface after merging main. Returns false, as the existing sources do; the Iceberg source declares no native read-only mode. No behavior change.
5 of 6 tasks
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
mcp-toolbox 1.10.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## [1.10.0](googleapis/mcp-toolbox@v1.9.0...v1.10.0) (2026-08-27) ### Features * **falkordb:** Add FalkorDB source and tools ([#3692](googleapis/mcp-toolbox#3692)) ([a94702c](googleapis/mcp-toolbox@a94702c)) * **mcp:** Add Secure Parameters support as Toolbox experimental extension ([#3394](googleapis/mcp-toolbox#3394)) ([9750d2d](googleapis/mcp-toolbox@9750d2d)) * **server/mcp:** Support com.google.cloud/toolbox.v1 extension in v20260728 ([#3801](googleapis/mcp-toolbox#3801)) ([f4f7da6](googleapis/mcp-toolbox@f4f7da6)) * **skill:** Add fix-failing-tests skill for mcp-toolbox ([#3821](googleapis/mcp-toolbox#3821)) ([168e69c](googleapis/mcp-toolbox@168e69c)) * **sources:** Support native read-only mode and dynamic tool annotations ([#3872](googleapis/mcp-toolbox#3872)) ([c257022](googleapis/mcp-toolbox@c257022)), refs [#3615](googleapis/mcp-toolbox#3615) [#3816](googleapis/mcp-toolbox#3816) [#3618](googleapis/mcp-toolbox#3618) [#3851](googleapis/mcp-toolbox#3851) [#3619](googleapis/mcp-toolbox#3619) [#3617](googleapis/mcp-toolbox#3617) * **tools/firestore-mongodb:** Add tools for execute mql and get schema ([#3826](googleapis/mcp-toolbox#3826)) ([4a85d75](googleapis/mcp-toolbox@4a85d75)) * **tool/mongodb:** Allow collection to be specified at runtime ([#3715](googleapis/mcp-toolbox#3715)) ([7626eaf](googleapis/mcp-toolbox@7626eaf)) ### Bug Fixes * **cloud-storage:** Resolve symlinks when enforcing local path boundaries ([#3810](googleapis/mcp-toolbox#3810)) ([c2ada64](googleapis/mcp-toolbox@c2ada64)) * **config:** Compare env var offsets in rune space when skipping comments ([#3856](googleapis/mcp-toolbox#3856)) ([2e76934](googleapis/mcp-toolbox@2e76934)) * Merge prebuilt tools when reloading custom config ([#3864](googleapis/mcp-toolbox#3864)) ([5a6d865](googleapis/mcp-toolbox@5a6d865)) * Normalize postgres UUIDs to strings ([#3806](googleapis/mcp-toolbox#3806)) ([3b02f1d](googleapis/mcp-toolbox@3b02f1d)) * **postgres:** Filter background processes in postgres-list-active-queries ([#3885](googleapis/mcp-toolbox#3885)) ([3d9e62a](googleapis/mcp-toolbox@3d9e62a)) | **OS/Architecture** | **Description** | **SHA256 Hash** | | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- | | [linux/amd64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.10.0/linux/amd64/toolbox) ([Signature](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.10.0/linux/amd64/toolbox.asc)) | For **Linux** systems running on **Intel/AMD 64-bit processors**. | 7e15dba09e6f957f64ce5924a0aa06b12cdf83ab26119813b0fa40edab566dd4 | | [darwin/arm64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.10.0/darwin/arm64/toolbox) | For **macOS** systems running on **Apple Silicon** (M1, M2, M3, etc.) processors. | c994f06781462abba4171cb4844776c45605e391c57dc96adb3e130c81b53825 | | [darwin/amd64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.10.0/darwin/amd64/toolbox) | For **macOS** systems running on **Intel processors**. | 12ebf78d9d05e8f3fe90c5d02ae14f2ccd96cf036f3dfba430bc32e3cfeadfd4 | | [windows/amd64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.10.0/windows/amd64/toolbox.exe) | For **Windows** systems running on **Intel/AMD 64-bit processors**. | 734783941cb5864c0e5d4d78be625f8b12be23b01d94781d7fa7db9b3c25aac6 | | [windows/arm64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.10.0/windows/arm64/toolbox.exe) | For **Windows** systems running on **ARM 64-bit processors**. | d9be7c2ce1d2e29c20f2974cbac4cde857adad836cee565d2584f3fbcc97f096 |</pre> <p>View the full release notes at <a href="https://github.com/googleapis/mcp-toolbox/releases/tag/v1.10.0">https://github.com/googleapis/mcp-toolbox/releases/tag/v1.10.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!17982
1 task done
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces end-to-end Read-Only mode support across Toolbox, spanning core framework tool suppression, source-aware dynamic MCP tool annotations, and protocol/session-level enforcement for database sources.
When a data source is configured in read-only mode:
readOnlyHint: trueanddestructiveHint: falsein MCP tool manifests when connected to read-only sources.PRs Included