Instrument WebMCP tools in the browser SDK

Aberta
#26,602 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
javascript, typescript, web-dev
Domínio
tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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]

Linguagem predominante
TypeScript
Estrelas
8.8k
Forks
1.9k
Merge médio
1d 8h
PRs com merge (30d)
744

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-javascript

Todas as issues de getsentry/sentry-javascript

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.