Instrument WebMCP tools in the browser SDK

Ouverte
#26,602 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
javascript, typescript, web-dev
Domaine
tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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]

Langage dominant
TypeScript
Étoiles
8.8k
Forks
1.9k
Merge moyen
1 j 8 h
PR mergées (30 j)
744

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de getsentry/sentry-javascript

Toutes les issues de getsentry/sentry-javascript

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.