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

everything: misleading names in get-resource-links (isOdd) and copy-pasted JSDoc tool names

Đang mở Phù hợp với người mới
#5,210 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/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
devtools, documentation

Hướng nghiên cứu

Đọc src/everything/tools/get-resource-links.ts, src/everything/tools/trigger-long-running-operation.ts và docs/features.md; các PR trước đây #4503 và #4769 được mô tả là nguyên mẫu cho mã đã tái cấu trúc. Đổi tên flag gây hiểu lầm, ghi lại ánh xạ ID chẵn/lẻ và sửa từng tên công cụ trong JSDoc. Hoàn tất khi flag khớp với hành vi của nó, ánh xạ được ghi lại và cả hai phần đầu đều khớp với các công cụ mà tệp tương ứng đăng ký.

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

Mô tả

chore server-everything v2
Problem

Two small naming slips in the everything server, which people read to learn the protocol:

  • In src/everything/tools/get-resource-links.ts, the flag isOdd is computed as resourceId % 2 === 0, so it is true for even IDs (which get Text resources). The behavior is right; the name says the opposite, and docs/features.md doesn't say which IDs map to which resource type.
  • The JSDoc header in src/everything/tools/get-resource-links.ts names the get-resource-reference tool (copied from its neighbor), and the one in src/everything/tools/trigger-long-running-operation.ts misspells its tool's name.
Expected

Rename the flag (for example to isText), document the even/odd mapping, and have each JSDoc header name the tool its file registers.

Prior work
  • #4503 by @Joosboy
  • #4769 by @simpleqt

The PR(s) above targeted the pre-refactor code and are closed as part of the backlog triage in #4875; this issue is where the work continues, with the PR(s) as a prototype. Thank you to their authors.

Ngôn ngữ chính
TypeScript
Star
91.4k
Fork
11.8k
Merge trung bình
7 giờ 36 phút
Pull request đã merge (30 ngày)
126

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 modelcontextprotocol/servers

Tất cả issue của modelcontextprotocol/servers

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.