Repository navigation
Keep API defaults for opt-in request parameters in MCP tools - #280
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
yummybomb
approved these changes
Nov 22, 2026
yummybomb
left a comment
Contributor
There was a problem hiding this comment.
lgtm, two small things:
AGENTS.md:90–92— limit this rule to unshipped opt-ins so the sdk updater preserves intentional defaults like the 24-hour expiry on control live-view urls.AGENTS.md:90— fix #279 before it ships. it still requests cost by default for bothgetand browser resource reads; merging this doc won't change that.
This branch was successfully deployed
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
Adds a short Opt-in request parameters section to
AGENTS.md. When the SDK adds a request parameter that the API defaults off because it adds work or latency, such asinclude_coston browser get, the tool defaults it off and sends it only when the caller asks. Resources never send it. The rule also covers such a parameter that an unmerged coverage update already turned on. Existing intentional MCP defaults, such as the 24-hour expiry on control live-view URLs, are kept.The SDK coverage workflow tells its agent to read this file, so this is how the next coverage run picks up the rule.
Validation
Documentation only. Prettier on
AGENTS.mdreports style warnings both with and without this change; I didn't reformat the rest of the file.Note
Low Risk
Documentation-only change to AGENTS.md with no runtime or API behavior impact.
Overview
Adds an Opt-in request parameters subsection under Code Quality in
AGENTS.mdso SDK coverage agents follow one rule for MCP tools: when the API defaults a costly/latent parameter off (e.g.include_coston browser get), the tool must default it off too, forward it only when the caller supplies it, and document that default in.describe(); resources never send it. The doc also says to undo cases where unmerged coverage already turned such flags on, and to keep deliberate MCP defaults like the 24-hour control live-view URL expiry.Reviewed by Cursor Bugbot for commit d5fab4e. Bugbot is set up for automated code reviews on this repo. Configure here.