Repository navigation
docs(mcp): Add supported harness tiers and native tool search matrix - #1862
Merged
Merged
Conversation
Define the tier 1 and tier 2 agent harnesses that MCP decisions are based on, and record whether each one defers MCP tool schemas natively. Point the top-level tool lock in surfaces.ts and its ast-grep rule at the doc. Refs #1844 Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Member
|
remove the recommendation, particularly on the anthropic metadata for internal concerns (though thats quite interesting to keep documented, i doubt it maintains support... we'd love to do that for e.g. get_sentry_resource) |
Keep the harness tiers and support matrix as reference only. Note the Claude Code alwaysLoad metadata as a documented capability.
dcramer
enabled auto-merge (squash)
November 3, 2026 17:40
dcramer
added a commit
that referenced
this pull request
Nov 3, 2026
…#1868) We're moving the MCP server away from its own tool search. All tier 1 harnesses (Codex, Claude Code, Cursor) now defer MCP tool schemas behind their own native tool search (#1862, `docs/mcp/harnesses.md`). Our `search_sentry_tools`/`execute_sentry_tool` gateway now does the same job a second time and hides tools from the harness. This PR lists every tool the session is granted directly in `tools/list` and lets the harness handle discovery. Skill, constraint, and capability gating still apply. Fixes #1844. Tools like `create_project` are no longer hidden behind the gateway, so harness search can find them. ## Rollout This change is temporary while we roll it out and confirm that harness tool search behaves the way we expect. The old gateway stays behind a code-level switch (`EXPOSE_ALL_TOOLS` in `tools/exposure.ts`), so we can revert quickly. It's not meant to be a long-term option. We may remove the search/execute concepts entirely later instead of keeping both surfaces. ## What changed to support it - Prompts, hints, plugin agents, evals, and docs now call tools directly instead of going through `execute_sentry_tool`. - Plugin agent `allowedTools` now includes every tool, so tools from optional skills are still callable without the gateway. - Generated skill descriptions only count each skill's own tools, which stops inspect guidance from leaking into other skills. - The metric monitor schemas no longer use nested unions, which some model APIs reject now that those tools are listed directly. - Gateway tests pin the old surface, and new tests cover the direct surface. ## Follow-ups Harness search is only as good as our tool metadata: - Audit tool descriptions for search quality. - Mark core tools with `_meta["anthropic/alwaysLoad"]`. - Hide the deprecated AI conversation aliases, which now show up as near-duplicates. - Decide whether to remove the gateway once the rollout is verified. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC08J1NSPU6S%3A1793727467.701089 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC08J1NSPU6S%3A1793727467.701089) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC08J1NSPU6S%3A1793727467.701089/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
7 tasks done
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.
Adds
docs/mcp/harnesses.md, the list of agent harnesses that MCP decisions are based on from now on, and records whether each one defers MCP tool schemas natively. It is reference material only and does not recommend a change.Tiers
What the research found (2026-11-03)
tool_search. The only gate is the model; GPT-5.4 and later support it.ToolSearchis on by default and always defers. It needs Claude 4 or later. The doc also notes that_meta["anthropic/alwaysLoad"]can keep a tool such asget_sentry_resourceloaded; this key is specific to Claude Code.tools/listpage. We return one unpaginated page, so it doesn't affect us.This PR only changes docs. It also points the comments in
surfaces.tsand theno-expand-top-level-toolsast-grep rule at the new doc. No tool behavior changes.Open questions are listed in the doc: which core version the Codex desktop app bundles, whether Claude Desktop connectors are deferred, whether Cursor's pagination bug is fixed, and how the Claude and Codex harnesses inside VS Code behave. None of the clients were tested hands-on.
Refs #1844
Checks:
docs:checkandoxfmt --checkpass on the changed files. I didn't run the fulltsc/lint/testgate; the only non-docs edits are comment changes.--
View Session [Sentry]