Instrument WebMCP tools in the browser SDK

Đang mở
#26,602 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, typescript, web-dev
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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]

Ngôn ngữ chính
TypeScript
Star
8.8k
Fork
1.9k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
744

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-javascript

Tất cả issue của getsentry/sentry-javascript

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.