Skip to content

fix: paginate listTools/resources/prompts in probe - #47

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-probe-listtools-pagination-b4d4
Sep 12, 2026
Merged

fix: paginate listTools/resources/prompts in probe#47
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-probe-listtools-pagination-b4d4

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

probe now follows nextCursor for tools, resources, and prompts via listAllPages(), so paginated MCP servers are fully audited instead of only the first page.

Test plan

  • npm test — mocked multi-page listTools
  • npm run typecheck

Fixes #31

Add a regression test with a mocked two-page listTools response, then aggregate all pages (and the same for resources/prompts) via nextCursor so audits cover the full server surface.

Fixes AgentPostmortem#31
@royalpinto007
royalpinto007 merged commit 660c2c8 into AgentPostmortem:main Sep 12, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

Nice work @sharadvc, this is merged.

MCP-audit gets better every time someone outside the repo digs in like this.

If you find MCP-audit useful, consider dropping a star. It helps more people find it.

Happy to see more from you whenever you have the time.

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.

probe ignores paginated listTools cursor, audits only the first page

2 participants