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

MCP startup discovery ignores tools/list pagination

Đang mở Phù hợp với người mới
#153 3 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.

  • #154 của @Qiyuanqiii — đã đóng, không merge

Đá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
75/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ệ
node.js, typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Lỗi nằm trong packages/coding-agent/src/step/mcp.ts tại hàm connectStepMcpServer khoảng dòng 309. Hãy xem hàm listAllMcpTools hiện có để xem cách phân trang được xử lý. Bản sửa lỗi liên quan đến việc thay thế lệnh gọi listTools đơn lẻ bằng một lệnh gọi đến listAllMcpTools hoặc triển khai logic phân trang tương tự. Chạy các bài kiểm tra hồi quy mới để xác minh bản sửa lỗi hoạt động.

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

Mô tả

untriaged
What happened?

MCP startup only discovers the first tools/list page. A server can connect successfully while tools on later pages are missing. An enabled_tools entry naming only a second-page tool produces an empty catalog.

connectStepMcpServer calls listTools once and ignores nextCursor.

Steps to reproduce
  1. Serve a local HTTP MCP fixture: the first tools/list response contains tool_0 and nextCursor; the next page contains tool_1.
  2. Connect through connectStepMcpServer.
  3. Observe only one tools/list request and tool_0. The existing invokeRemoteMcpTool path correctly follows both pages against the same fixture.

The reproduction calls the production function directly without loading extensions.

Expected behavior

Collect every page before filtering and publishing the tools.

I have a small fix in my fork that reuses listAllMcpTools. Six new regression cases fail before the fix and pass afterwards; 33 focused tests and npm run check pass on Windows. Full Linux validation passed: build:offline, npm run check, and the complete isolated ./test.sh.

I'd like to submit the PR once approved with lgtm.

Version

Step Code 0.1.0, main @ cb5fc1456d49d49c62e072bfed2926220083214e; Node v24.14.0, Windows.

Ngôn ngữ chính
TypeScript
Star
850
Fork
62
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
43

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 stepfun-ai/Step-Code

Tất cả issue của stepfun-ai/Step-Code

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.