Instrument WebMCP tools in the browser SDK

Offen
#26,602 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, typescript, web-dev
Bereich
tooling

Rechercherichtung

Start by reading the WebMCP proposal and the existing MCP instrumentation in packages/core/src/integrations/mcp-server/; the issue says that wrapper targets server-side MCP and may not apply to browser tools. Check how browser integrations are exported from @sentry/browser and review Angular’s provideWebMcpTools as a possible entry point. The issue frames implementation as work for when the proposal matures, so done would require an agreed browser instrumentation approach and tests covering registered WebMCP tools.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Feature Package: browser

WebMCP lets web pages expose tools to AI agents directly in the browser through navigator.modelContext. We instrument MCP servers today, but the browser SDK has no WebMCP support. Tracking this so we can pick it up once the proposal matures.

Raised by @JPeer264.

  • MCP instrumentation (wrapMcpServerWithSentry, packages/core/src/integrations/mcp-server/) is server-only. It is re-exported from server runtimes, not from @sentry/browser.
  • The existing wrapper hooks an McpServer instance and its JSON-RPC transport. With WebMCP, the page registers tools on navigator.modelContext and the browser handles the agent side, so the server wrapper likely doesn't carry over as-is.
  • Angular 22 added provideWebMcpTools, which the framework-updates digest flagged for possible instrumentation (getsentry/sentry-javascript@9fcf2f0d7a).
  • The spec is still early. WebKit's position is oppose (WebKit/standards-positions#670).

via @msonnb.

--

View Session [Sentry]

Vorherrschende Sprache
TypeScript
Sterne
8.8k
Forks
1.9k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
744

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-javascript

Alle Issues in getsentry/sentry-javascript

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.