Repository navigation
fix(mcp): mark the tools that write local state not read-only - #4942
Merged
Merged
Conversation
Owner
Author
Test recordFail-to-pass, The three audit tests pass on base because they test the audit function that this change adds to the test module. The repository test fails on base with the six local writers that the table marked read-only. Local checks on the final code, after the rebase onto main:
Notes
|
dan-petty
marked this pull request as ready for review
November 12, 2026 06:10
dan-petty
pushed a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.117.0](v0.116.2...v0.117.0) (2026-11-12) ### Features * **git:** refuse a push that does not hold origin/main ([#4879](#4879)) ([f55a20b](f55a20b)), closes [#4670](#4670) ### Bug Fixes * **k8s:** replace the SearXNG worker before its memory limit ([#4951](#4951)) ([95abe10](95abe10)) * **mcp:** mark the tools that write local state not read-only ([#4942](#4942)) ([6d93d77](6d93d77)) --- 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: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
Six MCP tools write local state or a file, but CONST_MCP_EXPOSURE_TABLE marked them read-only: ai_quiesce, ai_resume, ai_failover, ai_gateway_failover, review_export_feedback and ai_ingest_library. A role server, a client and the run tool of the stage planner choose commands by this flag, so a model could make a write that the flag hid. The requirement mcp-read-only-hint-agrees-with-no-external-request now says that the no-external-request class names external requests only: the tool of such a command is read-only only when the command writes no local state and no file. The ratchet test names the local writers in CONST_MCP_LOCAL_WRITERS and fails on a flag that disagrees, and on a stale entry. The six rows and docs/MCP_TOOLS.md now show the tools as not read-only.
Closes #3642
Change:
openspec/changes/archive/2026-11-12-3642-tools-that-write-local-state-are/