Skip to content

docs(mcp): Add supported harness tiers and native tool search matrix - #1862

Merged
dcramer merged 2 commits into
mainfrom
docs/mcp-harness-tiers
Nov 3, 2026
Merged

dcramer merged 2 commits into
mainfrom
docs/mcp-harness-tiers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Tier 1 (must work): Codex, Claude Code, and Cursor. Each one's desktop app and TUI/CLI count as separate surfaces.
  • Tier 2 (should not break; gaps are written down): OpenCode, Pi, and VS Code + Copilot Chat.

What the research found (2026-11-03)

  • Codex (CLI and desktop): since 0.143.0, every MCP tool is deferred behind the Responses API tool_search. The only gate is the model; GPT-5.4 and later support it.
  • Claude Code (CLI and desktop): ToolSearch is 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 as get_sentry_resource loaded; this key is specific to Claude Code.
  • Cursor (IDE and CLI): the IDE has used dynamic context discovery since 2.4. A staff forum post says the CLI has loaded tools lazily since about 2026-09. The IDE has a known bug where it reads only the first tools/list page. We return one unpaginated page, so it doesn't affect us.
  • OpenCode and Pi: MCP tools go through Code Mode by default. Their schemas stay out of context, but the model calls them from generated JS.
  • VS Code + Copilot: partial. Tool search works only with Claude newer than 4.5 and GPT-5.4+. Other models load every schema up front, with a 128-tool cap.

This PR only changes docs. It also points the comments in surfaces.ts and the no-expand-top-level-tools ast-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:check and oxfmt --check pass on the changed files. I didn't run the full tsc/lint/test gate; the only non-docs edits are comment changes.

--

View Session [Sentry]

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]>
@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-local Ready Ready Preview Nov 3, 2026 5:41pm UTC

Request Review

@dcramer

dcramer commented Nov 3, 2026

Copy link
Copy Markdown
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
dcramer enabled auto-merge (squash) November 3, 2026 17:40
@dcramer
dcramer merged commit d44f702 into main Nov 3, 2026
40 of 41 checks passed
@dcramer
dcramer deleted the docs/mcp-harness-tiers branch November 3, 2026 17:53
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]>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview — dd710f63 Deployed Nov 3, 2026 by vercel[bot]
Actions — dd710f63 Deployed Nov 3, 2026 by sentry-junior[bot] via eval #1523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant