Repository navigation
Description
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:
captureHandlerErrorinpackages/core/src/integrations/mcp-server/handlers.tscallserror.message.includeson the string, which throws and is swallowed. Happens on the plain SDK too. - Document the supported servers and the
createFeedbackToolroute for other frameworks in the@sentry/mcpREADME. -
registerToolTasktools (SDK v1, experimental) get no hint. Tasks are now theio.modelcontextprotocol/tasksextension in spec 2026-07-28 and SDK v2 has noregisterToolTask, 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.
Activity
linear-code commentedon Dec 3, 2026
JS-4223