Spike: run the CLI SDK on workerd

Đang mở
#1,882 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
cloud, nodejs, sqlite, typescript
Lĩnh vực
backend-api-design, cli

Hướng nghiên cứu

Start with the cli-first-mcp task 6.1 design document linked in the issue, then find where createSentrySDK() and the exposed commands are assembled. Bundle them for workerd with nodejs_compat and the current compatibility date, then try a few read commands with a token and SQLite stubbed out. Record bundle or runtime failures by module and command, compare bundle size with the Workers script limit, and update the design document with findings and any stdio-only commands.

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

Mô tả

CLI MCP

Part of #1357. Plan: cli-first-mcp task 6.1 (design).

Why

The hosted MCP will run commands through createSentrySDK(), one instance per request, with the OAuth grant's token and persistence off. Whether the exposed commands bundle and run under nodejs_compat is unknown until we build it. This can start now; it doesn't depend on the API client move.

Scope

  • Bundle createSentrySDK() with the exposed commands for workerd, under nodejs_compat and a current compatibility date. mcp-cloudflare is on 2025-03-21 today.
  • Run a few read commands with a token and SQLite stubbed out.
  • Record what fails to bundle or run (by module and by command) and the bundle size against the Workers script limit, in the cli-first-mcp design.

Done when

  • The findings are in the design doc, and blocked commands are marked stdio-only (or filed if they look fixable).

via @BYK.

--

View Session in Sentry

Ngôn ngữ chính
TypeScript
Star
961
Fork
179
Merge trung bình
15 giờ 33 phút
Pull request đã merge (30 ngày)
476

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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/toolkit

Tất cả issue của getsentry/toolkit

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.