Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

MCP startup discovery ignores tools/list pagination

オープン 初心者向け
#153 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
api, backend

調査の方向性

バグは packages/coding-agent/src/step/mcp.ts の connectStepMcpServer 関数、309行目付近にあります。既存の listAllMcpTools 関数を見て、ページネーションがどのように処理されているかを確認してください。修正には、単一の listTools 呼び出しを listAllMcpTools への呼び出しに置き換えるか、同様のページネーションロジックを実装することが含まれます。新しい回帰テストを実行して、修正が機能することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
471
フォーク
42
平均マージ
18時間 11分
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stepfun-ai/Step-Code のほかの issue

stepfun-ai/Step-Code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。