Fix agent-debug-log MCP resource auto-read error#9
Merged
maatheusgois-dd merged 1 commit intoJun 3, 2026
Conversation
Move the parameterized agent-debug-log URI from resources/list to resources/templates/list so clients no longer prefetch a bare URI that requires ?path= and throw -32000. Co-authored-by: Cursor <cursoragent@cursor.com>
maatheusgois-dd
marked this pull request as ready for review
June 3, 2026 17:20
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
30 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.
Summary
agent-debug-logfromresources/listtoresources/templates/listwithuriTemplate: xcodebazel://agent-debug-log?path={path}.xcodebazel://agent-debug-logURI and hitting-32000: agent-debug-log resource requires ?path=<absolute-log-path> query parameter.resources/readwith a full?path=URI still works unchanged.Scope
Validation
npm run lintnpm run typechecknpm test(includes newresources/templates/listand parameterizedresources/readcases insrc/mcp/server.test.ts)npm run buildnpx vitest --run --coveragexcodebazelmcp ...Compatibility
agent-debug-logis no longer returned byresources/list; clients that need it should useresources/templates/listor read with an explicit?path=query. Thebazel_ios_agent_debug_log_readtool is unchanged.Notes For Reviewers
Root cause:
agent-debug-logwas advertised as a static resource but requires apathquery param. Cursor prefetches listed resources on connect, triggering the error toast.After merge, restart the MCP server in Cursor to pick up the change.
Made with Cursor