Instrument WebMCP tools in the browser SDK

Aperta
#26,602 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, typescript, web-dev
Ambito
tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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]

Lingua principale
TypeScript
Stelle
8.8k
Fork
1.9k
Merge medio
1g 8h
PR unite (30g)
744

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-javascript

Tutte le issue di getsentry/sentry-javascript

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.