Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Limit Docs MCP request bodies and tool input elements

Đang mở
#1,601 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
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
security

Hướng nghiên cứu

Read apps/docs-mcp/src/mcp.ts and apps/docs-mcp/src/index.ts, starting with the server factory and the /mcp and /internal/docs request handlers. Check how @hono/mcp parses request bodies and how the existing tests exercise these routes. Done means documented tool-element and body-size limits are enforced, oversized inputs return deterministic errors, supported requests keep their response contracts, and the specified cases are tested without model calls.

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

Mô tả

enhancement MCP

Docs MCP inherits missing resource limits from its source repository. Toolkit already resolves @modelcontextprotocol/sdk to 1.32.0; the official advisory additionally requires explicitly configuring limits. Upgrading @modelcontextprotocol/server to 2.3.0 would target a different SDK package.

The server factory omits maxToolInputElements, and the libs/features arrays have no maximum. The HTTP boundary uses @hono/mcp, which parses JSON itself; configuring the SDK's standard transport would not limit this route.

Access is restricted to service-bound/local requests. No denial of service has been reproduced in Workers.

Acceptance criteria:

  • Configure a documented MCP tool-element budget sized for supported inputs.
  • Enforce a body-size budget before JSON parsing on /mcp and /internal/docs, including bodies without Content-Length.
  • Preserve supported requests and existing response contracts; reject oversized input with deterministic errors.
  • Test valid requests, oversized bodies, and excess tool elements without model calls.

Separate follow-up to the Docs MCP port (#1597). Keep this hardening outside the migration PR.

Ngôn ngữ chính
TypeScript
Star
938
Fork
166
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
156

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.