Skip to content

fix(mcp): discover all pages before registering server tools - #154

Closed
Qiyuanqiii wants to merge 10 commits into
stepfun-ai:mainfrom
Qiyuanqiii:fix/mcp-tool-pagination
Closed

Qiyuanqiii wants to merge 10 commits into
stepfun-ai:mainfrom
Qiyuanqiii:fix/mcp-tool-pagination

Conversation

@Qiyuanqiii

Copy link
Copy Markdown

Fixes #153.

When an MCP server paginates tools/list, Step startup currently registers only the first page and silently omits the remaining tools. Reuse the existing listAllMcpTools helper so startup collects the complete catalog before applying allow/deny filters and publishing it once. All pages retain the existing startup abort signal and timeout.

Six new regression cases cover TUI and headless startup, an empty intermediate page, filters on later-page tools, later-page errors, shutdown cancellation, and startup timeout. All six fail on the original code and pass with the fix.

Validation:

  • Windows / Node v24.14.0: 33 focused tests passed; npm run check passed.
  • Linux / Node 22: pnpm run build:offline, npm run check, the complete isolated ./test.sh, and git diff --exit-code all passed in the validation run.

The validation workflow exists only on the fork's CI branch. This PR changes two production modules and their existing startup test file.

AI assistance was used for investigation, implementation, and testing, as disclosed on the issue.

StepCode Contributors and others added 10 commits September 22, 2026 10:05
…ixed-rows

fix: pin list rows to the task and stop per-delta republishes
The two README images were tracked in-repo under images-and-attachments/.
Serve them from static-openapi.stepfun.com instead and drop the local
copies, so cloning the repo no longer pulls a 128 KB screenshot and the
demo can be updated without a commit.

Replace the second image with a GIF showing StepPage publishing, and add
a paragraph above it describing the feature: a local page is published
as a reachable static site with one command, keeping development,
debugging and delivery in the same terminal. Both the English and
Simplified Chinese README carry the same copy.
…e-demo

docs: host README images on the CDN and document StepPage publishing
@ZouR-Ma ZouR-Ma closed this Sep 23, 2026
@Qiyuanqiii
Qiyuanqiii deleted the fix/mcp-tool-pagination branch September 23, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP startup discovery ignores tools/list pagination

3 participants