Skip to content

MCP feedback tool: framework compatibility tracker #27140

Todo

Description

@logaretm

Tracker for where @sentry/mcp's feedback tool and error hints work across MCP server frameworks, and what would close the gaps. Each framework below was tested with a real server and client.

Supported

Servers built on the MCP SDK's McpServer, where addFeedbackTool registers the tool and every failing tool call gets the hint:

Server Coverage
@modelcontextprotocol/sdk v1 e2e app, nightly canary on @latest
@modelcontextprotocol/server v2 e2e app, nightly canary on main
Cloudflare agents e2e app, nightly canary on @latest
mcp-handler 2.5.0 manual run, real HTTP
@hono/mcp 0.4.0 manual run, real HTTP

Not supported

These keep their own tool registry or tools/call handling, so our hooks never see a tool call. addFeedbackTool warns and leaves the server alone (after #27137). Users can still register createFeedbackTool() through the framework's own tool API, but no tool gets the hint.

Framework Why createFeedbackTool through its API
tmcp 1.20.1 own server, not the MCP SDK works with server.tool()
@mastra/mcp 2.12.0 low-level Server per request, own registry and tools/call needs an adapter, it expects plain output
fastmcp 4.30.5 low-level Server per session, own registry works with addTool
@rekog/mcp-nest 2.2.0 replaces the SDK's tools/call handler, own registry needs an adapter; via serverMutator the tool is hidden
mcp-framework 0.2.22 low-level Server, class-based tools needs hand-written zod 3 schemas
xmcp 1.13.4 bundles its own server, not exposed to users works as a tool file

Open

  • Thrown strings are never captured by the MCP integration: captureHandlerError in packages/core/src/integrations/mcp-server/handlers.ts calls error.message.includes on the string, which throws and is swallowed. Happens on the plain SDK too.
  • Document the supported servers and the createFeedbackTool route for other frameworks in the @sentry/mcp README.
  • registerToolTask tools (SDK v1, experimental) get no hint. Tasks are now the io.modelcontextprotocol/tasks extension in spec 2026-07-28 and SDK v2 has no registerToolTask, so revisit when an SDK ships the extension.

Upstream

SEP-3371 "Consistent SDK extension points" (accepted, not Final yet) requires official SDKs to offer public middleware around JSON-RPC messages. Once the TypeScript SDK ships it, we can move the hint onto a public tools/call middleware instead of wrapping the private server.server._requestHandlers. It could also reach the frameworks that run on the SDK's low-level Server (Mastra, fastmcp, mcp-framework, mcp-nest) if they let users add middleware. tmcp and xmcp wouldn't benefit. Middleware sees the result, not the thrown error, so we'd still record the tool callback's outcome for the 4xx filter. The TypeScript SDK already has this on main as server.use(), not released yet; moving onto it is tracked in #27142.

Related

  • #27132: hints go into the SDK's error result instead of the thrown error
  • #27135: nightly canary e2e against the newest MCP SDKs
  • #27137: only register the feedback tool on an MCP SDK McpServer

Activity

  1. self-assigned this
    on Dec 3, 2026
  2. linear-code commented on Dec 3, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions