Skip to content

Keep API defaults for opt-in request parameters in MCP tools - #280

Merged
masnwilliams merged 2 commits into
mainfrom
hypeship/agents-opt-in-defaults
Nov 22, 2026
Merged

masnwilliams merged 2 commits into
mainfrom
hypeship/agents-opt-in-defaults

Conversation

@masnwilliams

@masnwilliams masnwilliams commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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 as include_cost on 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.md reports 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.md so SDK coverage agents follow one rule for MCP tools: when the API defaults a costly/latent parameter off (e.g. include_cost on 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.

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mcp Ready Ready Preview Nov 22, 2026 8:42pm UTC

@yummybomb yummybomb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 both get and browser resource reads; merging this doc won't change that.

@masnwilliams
masnwilliams merged commit a4c3fdd into main Nov 22, 2026
10 checks passed
@masnwilliams
masnwilliams deleted the hypeship/agents-opt-in-defaults branch November 22, 2026 20:45

This branch was successfully deployed

1 active deployment
Preview — d5fab4e3 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants