Skip to content

fix(client): support prompt pagination and implement listAllPrompts - #2461

Open
rohith500 wants to merge 4 commits into
mcp-use:mainfrom
rohith500:fix/typescript/prompt-pagination-list-all
Open

fix(client): support prompt pagination and implement listAllPrompts#2461
rohith500 wants to merge 4 commits into
mcp-use:mainfrom
rohith500:fix/typescript/prompt-pagination-list-all

Conversation

@rohith500

@rohith500 rohith500 commented Sep 5, 2026

Copy link
Copy Markdown

Fixes #2460

Summary of Changes

  1. BaseConnector (packages/client/src/transport/base.ts):
    • Extended listPrompts(cursor?: string, options?: RequestOptions) to accept pagination cursors and request options (mirroring listResources).
    • Implemented listAllPrompts(options?: RequestOptions) with auto-pagination over nextCursor, transport disconnect protection across page iterations, and defensive repeated-cursor cycle detection.
  2. MCPSession (packages/client/src/core/session.ts):
    • Updated listPrompts(cursor?: string, options?: RequestOptions) to forward pagination parameters to the connector.
    • Added listAllPrompts(options?: RequestOptions) delegating to this.connector.listAllPrompts(options).
  3. React Hooks (useMcp.ts & useMcp-operations.ts):
    • Updated initial prompt discovery and refresh routines to use listAllPrompts, ensuring servers with multiple prompt pages have their entire catalog loaded rather than silently truncating prompts on page 2+.
  4. Agent & Server Proxy Integration:
    • Updated @mcp-use/agent loadPromptsForConnector to use listAllPrompts when available, matching resource loading.
    • Updated @mcp-use/server mcp-proxy upstream prompt introspection to check connection.listAllPrompts when available.
  5. Unit Tests:
    • Added packages/client/tests/unit/client/list-all-prompts.test.ts (11 new unit tests) covering cursor forwarding, options forwarding, multi-page auto-pagination, cycle detection, disconnect handling, and MCPSession delegation.
    • Added unit test in useMcp-connection-metadata.test.tsx verifying React hook inventory loading via listAllPrompts.

Summary by cubic

Fixes #2460 so servers with multi-page prompts load their entire catalog instead of silently truncating prompts past page 2+.

Bug Fixes

  • Prompt discovery, refresh, and proxy introspection now use complete pagination via listAllPrompts when available, with a fallback to listPrompts for older connectors.

New Features

  • listPrompts on BaseConnector and MCPSession now accept an optional cursor and request options.
  • New listAllPrompts auto-paginates with repeated-cursor detection and transport disconnect protection.
  • @mcp-use/agent adapter, @mcp-use/server mcp-proxy, and React hooks prefer listAllPrompts when present.
  • 16 tests cover cursor forwarding, multi-page pagination, cycle detection, disconnect handling, listPrompts fallback, and delegation.

Written for commit 4db6a84. Summary will update on new commits.

Review in cubic

- Extend BaseConnector.listPrompts and MCPSession.listPrompts to accept cursor and request options
- Implement listAllPrompts on BaseConnector and MCPSession with auto-pagination and cycle detection
- Update useMcp and useMcpOperations to fetch complete prompt inventories via listAllPrompts
- Update packages/agent and packages/server mcp-proxy to introspect complete paginated prompt lists
- Add unit tests for listPrompts, listAllPrompts, MCPSession delegation, and useMcp inventory loading
@pkg-pr-new

pkg-pr-new Bot commented Sep 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

@mcp-use/agent

npm i https://pkg.pr.new/@mcp-use/agent@2461

@mcp-use/cli

npm i https://pkg.pr.new/@mcp-use/cli@2461

@mcp-use/client

npm i https://pkg.pr.new/@mcp-use/client@2461

create-mcp-use-app

npm i https://pkg.pr.new/create-mcp-use-app@2461

@mcp-use/inspector

npm i https://pkg.pr.new/@mcp-use/inspector@2461

mcp-use

npm i https://pkg.pr.new/mcp-use@2461

@mcp-use/tunnel

npm i https://pkg.pr.new/@mcp-use/tunnel@2461

commit: 4db6a84

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

TypeScript Conformance (current head)

Runner: @modelcontextprotocol/conformance@0.2.0-alpha.10
Spec versions: 2025-11-25 2026-07-28

Score: 2006/2012 passed (6 expected failures, 0 unexpected failures, 4 expected warnings, 0 unexpected warnings)

Suite Score Expected failures Unexpected failures Expected warnings Unexpected warnings
2025-11-25/client-browser/auth/basic-cimd-2026-09-06T01-42-11-142Z 12/12 0 0 0 0
2025-11-25/client-browser/auth/metadata-default-2026-09-06T01-42-11-141Z 12/12 0 0 0 0
2025-11-25/client-browser/auth/metadata-var1-2026-09-06T01-42-11-141Z 12/12 0 0 0 0
2025-11-25/client-browser/auth/metadata-var2-2026-09-06T01-42-11-142Z 12/12 0 0 0 0
2025-11-25/client-browser/auth/metadata-var3-2026-09-06T01-42-11-142Z 12/12 0 0 0 0
2025-11-25/client-browser/auth/pre-registration-2026-09-06T01-42-11-142Z 12/12 0 0 0 0
2025-11-25/client-browser/auth/scope-from-scopes-supported-2026-09-06T01-42-11-142Z 13/13 0 0 0 0
2025-11-25/client-browser/auth/scope-from-www-authenticate-2026-09-06T01-42-11-142Z 13/13 0 0 0 0
2025-11-25/client-browser/auth/scope-omitted-when-undefined-2026-09-06T01-42-11-142Z 13/13 0 0 0 0
2025-11-25/client-browser/auth/scope-retry-limit-2026-09-06T01-42-11-142Z 22/22 0 0 0 0
2025-11-25/client-browser/auth/scope-step-up-2026-09-06T01-42-11-142Z 21/21 0 0 0 0
2025-11-25/client-browser/auth/token-endpoint-auth-basic-2026-09-06T01-42-11-142Z 17/17 0 0 0 0
2025-11-25/client-browser/auth/token-endpoint-auth-none-2026-09-06T01-42-11-142Z 17/17 0 0 0 0
2025-11-25/client-browser/auth/token-endpoint-auth-post-2026-09-06T01-42-11-142Z 17/17 0 0 0 0
2025-11-25/client-browser/elicitation-sep1034-client-defaults-2026-09-06T01-42-11-141Z 5/5 0 0 0 0
2025-11-25/client-browser/initialize-2026-09-06T01-42-11-141Z 1/1 0 0 0 0
2025-11-25/client-browser/sse-retry-2026-09-06T01-42-11-141Z 3/3 0 0 0 0
2025-11-25/client-browser/tools_call-2026-09-06T01-42-11-141Z 1/1 0 0 0 0
2025-11-25/client-node/auth/basic-cimd-2026-09-06T01-41-54-582Z 12/12 0 0 0 0
2025-11-25/client-node/auth/metadata-default-2026-09-06T01-41-54-582Z 12/12 0 0 0 0
2025-11-25/client-node/auth/metadata-var1-2026-09-06T01-41-54-582Z 12/12 0 0 0 0
2025-11-25/client-node/auth/metadata-var2-2026-09-06T01-41-54-582Z 12/12 0 0 0 0
2025-11-25/client-node/auth/metadata-var3-2026-09-06T01-41-54-582Z 12/12 0 0 0 0
2025-11-25/client-node/auth/pre-registration-2026-09-06T01-41-54-582Z 12/12 0 0 0 0
2025-11-25/client-node/auth/scope-from-scopes-supported-2026-09-06T01-41-54-582Z 13/13 0 0 0 0
2025-11-25/client-node/auth/scope-from-www-authenticate-2026-09-06T01-41-54-582Z 13/13 0 0 0 0
2025-11-25/client-node/auth/scope-omitted-when-undefined-2026-09-06T01-41-54-582Z 13/13 0 0 0 0
2025-11-25/client-node/auth/scope-retry-limit-2026-09-06T01-41-54-582Z 22/22 0 0 0 0
2025-11-25/client-node/auth/scope-step-up-2026-09-06T01-41-54-582Z 21/21 0 0 0 0
2025-11-25/client-node/auth/token-endpoint-auth-basic-2026-09-06T01-41-54-582Z 17/17 0 0 0 0
2025-11-25/client-node/auth/token-endpoint-auth-none-2026-09-06T01-41-54-582Z 17/17 0 0 0 0
2025-11-25/client-node/auth/token-endpoint-auth-post-2026-09-06T01-41-54-582Z 17/17 0 0 0 0
2025-11-25/client-node/elicitation-sep1034-client-defaults-2026-09-06T01-41-54-582Z 5/5 0 0 0 0
2025-11-25/client-node/initialize-2026-09-06T01-41-54-581Z 1/1 0 0 0 0
2025-11-25/client-node/sse-retry-2026-09-06T01-41-54-582Z 3/3 0 0 0 0
2025-11-25/client-node/tools_call-2026-09-06T01-41-54-582Z 1/1 0 0 0 0
2025-11-25/client-react/auth/basic-cimd-2026-09-06T01-42-26-215Z 16/16 0 0 0 0
2025-11-25/client-react/auth/metadata-default-2026-09-06T01-42-26-215Z 15/15 0 0 0 0
2025-11-25/client-react/auth/metadata-var1-2026-09-06T01-42-26-215Z 15/15 0 0 0 0
2025-11-25/client-react/auth/metadata-var2-2026-09-06T01-42-26-215Z 15/15 0 0 0 0
2025-11-25/client-react/auth/metadata-var3-2026-09-06T01-42-26-215Z 12/12 0 0 0 0
2025-11-25/client-react/auth/pre-registration-2026-09-06T01-42-26-216Z 15/15 0 0 0 0
2025-11-25/client-react/auth/scope-from-scopes-supported-2026-09-06T01-42-26-215Z 17/17 0 0 0 0
2025-11-25/client-react/auth/scope-from-www-authenticate-2026-09-06T01-42-26-215Z 14/14 0 0 0 0
2025-11-25/client-react/auth/scope-omitted-when-undefined-2026-09-06T01-42-26-215Z 17/17 0 0 0 0
2025-11-25/client-react/auth/scope-retry-limit-2026-09-06T01-42-26-215Z 23/23 0 0 0 0
2025-11-25/client-react/auth/scope-step-up-2026-09-06T01-42-26-215Z 21/21 0 0 0 0
2025-11-25/client-react/auth/token-endpoint-auth-basic-2026-09-06T01-42-26-215Z 20/20 0 0 0 0
2025-11-25/client-react/auth/token-endpoint-auth-none-2026-09-06T01-42-26-216Z 20/20 0 0 0 0
2025-11-25/client-react/auth/token-endpoint-auth-post-2026-09-06T01-42-26-216Z 20/20 0 0 0 0
2025-11-25/client-react/elicitation-sep1034-client-defaults-2026-09-06T01-42-26-215Z 5/5 0 0 0 0
2025-11-25/client-react/initialize-2026-09-06T01-42-26-215Z 1/1 0 0 0 0
2025-11-25/client-react/sse-retry-2026-09-06T01-42-26-215Z 3/3 0 0 0 0
2025-11-25/client-react/tools_call-2026-09-06T01-42-26-215Z 1/1 0 0 0 0
2025-11-25/server/server-completion-complete-2026-09-06T01-41-53-022Z 1/1 0 0 0 0
2025-11-25/server/server-dns-rebinding-protection-2026-09-06T01-41-53-803Z 2/2 0 0 0 0
2025-11-25/server/server-elicitation-sep1034-defaults-2026-09-06T01-41-53-598Z 0/1 1 0 0 0
2025-11-25/server/server-elicitation-sep1330-enums-2026-09-06T01-41-53-635Z 0/1 1 0 0 0
2025-11-25/server/server-json-schema-2020-12-2026-09-06T01-41-53-584Z 7/7 0 0 0 0
2025-11-25/server/server-logging-set-level-2026-09-06T01-41-52-972Z 1/1 0 0 0 0
2025-11-25/server/server-ping-2026-09-06T01-41-52-998Z 1/1 0 0 0 0
2025-11-25/server/server-prompts-get-embedded-resource-2026-09-06T01-41-53-773Z 1/1 0 0 0 0
2025-11-25/server/server-prompts-get-simple-2026-09-06T01-41-53-746Z 1/1 0 0 0 0
2025-11-25/server/server-prompts-get-with-args-2026-09-06T01-41-53-757Z 1/1 0 0 0 0
2025-11-25/server/server-prompts-get-with-image-2026-09-06T01-41-53-790Z 1/1 0 0 0 0
2025-11-25/server/server-prompts-list-2026-09-06T01-41-53-730Z 1/1 0 0 0 0
2025-11-25/server/server-resources-list-2026-09-06T01-41-53-651Z 1/1 0 0 0 0
2025-11-25/server/server-resources-read-binary-2026-09-06T01-41-53-680Z 1/1 0 0 0 0
2025-11-25/server/server-resources-read-text-2026-09-06T01-41-53-665Z 1/1 0 0 0 0
2025-11-25/server/server-resources-subscribe-2026-09-06T01-41-53-705Z 0/1 1 0 0 0
2025-11-25/server/server-resources-templates-read-2026-09-06T01-41-53-692Z 1/1 0 0 0 0
2025-11-25/server/server-resources-unsubscribe-2026-09-06T01-41-53-717Z 0/1 1 0 0 0
2025-11-25/server/server-server-initialize-2026-09-06T01-41-52-877Z 1/1 0 0 0 0
2025-11-25/server/server-server-sse-multiple-streams-2026-09-06T01-41-53-628Z 0/0 0 0 1 0
2025-11-25/server/server-server-sse-polling-2026-09-06T01-41-53-614Z 0/0 0 0 3 0
2025-11-25/server/server-tools-call-audio-2026-09-06T01-41-53-095Z 1/1 0 0 0 0
2025-11-25/server/server-tools-call-elicitation-2026-09-06T01-41-53-567Z 0/1 1 0 0 0
2025-11-25/server/server-tools-call-embedded-resource-2026-09-06T01-41-53-110Z 1/1 0 0 0 0
2025-11-25/server/server-tools-call-error-2026-09-06T01-41-53-465Z 1/1 0 0 0 0
2025-11-25/server/server-tools-call-image-2026-09-06T01-41-53-080Z 1/1 0 0 0 0
2025-11-25/server/server-tools-call-mixed-content-2026-09-06T01-41-53-126Z 1/1 0 0 0 0
2025-11-25/server/server-tools-call-sampling-2026-09-06T01-41-53-548Z 0/1 1 0 0 0
2025-11-25/server/server-tools-call-simple-text-2026-09-06T01-41-53-062Z 1/1 0 0 0 0
2025-11-25/server/server-tools-call-with-logging-2026-09-06T01-41-53-141Z 1/1 0 0 0 0
2025-11-25/server/server-tools-call-with-progress-2026-09-06T01-41-53-480Z 1/1 0 0 0 0
2025-11-25/server/server-tools-list-2026-09-06T01-41-53-042Z 2/2 0 0 0 0
2026-07-28/client-browser/auth/authorization-server-migration-2026-09-06T01-43-09-692Z 26/26 0 0 0 0
2026-07-28/client-browser/auth/basic-cimd-2026-09-06T01-43-09-692Z 11/11 0 0 0 0
2026-07-28/client-browser/auth/iss-normalized-2026-09-06T01-43-09-692Z 8/8 0 0 0 0
2026-07-28/client-browser/auth/iss-not-advertised-2026-09-06T01-43-09-692Z 13/13 0 0 0 0
2026-07-28/client-browser/auth/iss-supported-2026-09-06T01-43-09-692Z 13/13 0 0 0 0
2026-07-28/client-browser/auth/iss-supported-missing-2026-09-06T01-43-09-692Z 8/8 0 0 0 0
2026-07-28/client-browser/auth/iss-unexpected-2026-09-06T01-43-09-692Z 8/8 0 0 0 0
2026-07-28/client-browser/auth/iss-wrong-issuer-2026-09-06T01-43-09-692Z 8/8 0 0 0 0
2026-07-28/client-browser/auth/metadata-default-2026-09-06T01-43-09-692Z 12/12 0 0 0 0
2026-07-28/client-browser/auth/metadata-issuer-mismatch-2026-09-06T01-43-09-692Z 3/3 0 0 0 0
2026-07-28/client-browser/auth/metadata-var1-2026-09-06T01-43-09-692Z 12/12 0 0 0 0
2026-07-28/client-browser/auth/metadata-var2-2026-09-06T01-43-09-692Z 12/12 0 0 0 0
2026-07-28/client-browser/auth/metadata-var3-2026-09-06T01-43-09-692Z 12/12 0 0 0 0
2026-07-28/client-browser/auth/offline-access-not-supported-2026-09-06T01-43-09-692Z 13/13 0 0 0 0
2026-07-28/client-browser/auth/offline-access-scope-2026-09-06T01-43-09-692Z 11/11 0 0 0 0
2026-07-28/client-browser/auth/pre-registration-2026-09-06T01-43-09-692Z 11/11 0 0 0 0
2026-07-28/client-browser/auth/resource-mismatch-2026-09-06T01-43-09-692Z 3/3 0 0 0 0
2026-07-28/client-browser/auth/scope-from-scopes-supported-2026-09-06T01-43-09-692Z 13/13 0 0 0 0
2026-07-28/client-browser/auth/scope-from-www-authenticate-2026-09-06T01-43-09-692Z 13/13 0 0 0 0
2026-07-28/client-browser/auth/scope-omitted-when-undefined-2026-09-06T01-43-09-692Z 13/13 0 0 0 0
2026-07-28/client-browser/auth/scope-retry-limit-2026-09-06T01-43-09-692Z 23/23 0 0 0 0
2026-07-28/client-browser/auth/scope-step-up-2026-09-06T01-43-09-692Z 24/24 0 0 0 0
2026-07-28/client-browser/auth/token-endpoint-auth-basic-2026-09-06T01-43-09-692Z 17/17 0 0 0 0
2026-07-28/client-browser/auth/token-endpoint-auth-none-2026-09-06T01-43-09-692Z 17/17 0 0 0 0
2026-07-28/client-browser/auth/token-endpoint-auth-post-2026-09-06T01-43-09-692Z 17/17 0 0 0 0
2026-07-28/client-browser/http-custom-headers-2026-09-06T01-43-09-692Z 18/18 0 0 0 0
2026-07-28/client-browser/http-invalid-tool-headers-2026-09-06T01-43-09-692Z 11/11 0 0 0 0
2026-07-28/client-browser/http-standard-headers-2026-09-06T01-43-09-692Z 9/9 0 0 0 0
2026-07-28/client-browser/json-schema-ref-no-deref-2026-09-06T01-43-09-692Z 1/1 0 0 0 0
2026-07-28/client-browser/request-metadata-2026-09-06T01-43-09-692Z 8/8 0 0 0 0
2026-07-28/client-browser/sep-2322-client-request-state-2026-09-06T01-43-09-692Z 5/5 0 0 0 0
2026-07-28/client-browser/tools_call-2026-09-06T01-43-09-691Z 1/1 0 0 0 0
2026-07-28/client-node/auth/authorization-server-migration-2026-09-06T01-42-52-772Z 26/26 0 0 0 0
2026-07-28/client-node/auth/basic-cimd-2026-09-06T01-42-52-772Z 11/11 0 0 0 0
2026-07-28/client-node/auth/iss-normalized-2026-09-06T01-42-52-773Z 8/8 0 0 0 0
2026-07-28/client-node/auth/iss-not-advertised-2026-09-06T01-42-52-773Z 13/13 0 0 0 0
2026-07-28/client-node/auth/iss-supported-2026-09-06T01-42-52-772Z 13/13 0 0 0 0
2026-07-28/client-node/auth/iss-supported-missing-2026-09-06T01-42-52-773Z 8/8 0 0 0 0
2026-07-28/client-node/auth/iss-unexpected-2026-09-06T01-42-52-773Z 8/8 0 0 0 0
2026-07-28/client-node/auth/iss-wrong-issuer-2026-09-06T01-42-52-773Z 8/8 0 0 0 0
2026-07-28/client-node/auth/metadata-default-2026-09-06T01-42-52-772Z 12/12 0 0 0 0
2026-07-28/client-node/auth/metadata-issuer-mismatch-2026-09-06T01-42-52-773Z 3/3 0 0 0 0
2026-07-28/client-node/auth/metadata-var1-2026-09-06T01-42-52-772Z 12/12 0 0 0 0
2026-07-28/client-node/auth/metadata-var2-2026-09-06T01-42-52-772Z 12/12 0 0 0 0
2026-07-28/client-node/auth/metadata-var3-2026-09-06T01-42-52-772Z 12/12 0 0 0 0
2026-07-28/client-node/auth/offline-access-not-supported-2026-09-06T01-42-52-772Z 13/13 0 0 0 0
2026-07-28/client-node/auth/offline-access-scope-2026-09-06T01-42-52-772Z 11/11 0 0 0 0
2026-07-28/client-node/auth/pre-registration-2026-09-06T01-42-52-772Z 11/11 0 0 0 0
2026-07-28/client-node/auth/resource-mismatch-2026-09-06T01-42-52-772Z 3/3 0 0 0 0
2026-07-28/client-node/auth/scope-from-scopes-supported-2026-09-06T01-42-52-772Z 13/13 0 0 0 0
2026-07-28/client-node/auth/scope-from-www-authenticate-2026-09-06T01-42-52-772Z 13/13 0 0 0 0
2026-07-28/client-node/auth/scope-omitted-when-undefined-2026-09-06T01-42-52-772Z 13/13 0 0 0 0
2026-07-28/client-node/auth/scope-retry-limit-2026-09-06T01-42-52-772Z 23/23 0 0 0 0
2026-07-28/client-node/auth/scope-step-up-2026-09-06T01-42-52-772Z 24/24 0 0 0 0
2026-07-28/client-node/auth/token-endpoint-auth-basic-2026-09-06T01-42-52-772Z 17/17 0 0 0 0
2026-07-28/client-node/auth/token-endpoint-auth-none-2026-09-06T01-42-52-772Z 17/17 0 0 0 0
2026-07-28/client-node/auth/token-endpoint-auth-post-2026-09-06T01-42-52-772Z 17/17 0 0 0 0
2026-07-28/client-node/http-custom-headers-2026-09-06T01-42-52-773Z 18/18 0 0 0 0
2026-07-28/client-node/http-invalid-tool-headers-2026-09-06T01-42-52-773Z 11/11 0 0 0 0
2026-07-28/client-node/http-standard-headers-2026-09-06T01-42-52-773Z 9/9 0 0 0 0
2026-07-28/client-node/json-schema-ref-no-deref-2026-09-06T01-42-52-773Z 1/1 0 0 0 0
2026-07-28/client-node/request-metadata-2026-09-06T01-42-52-772Z 8/8 0 0 0 0
2026-07-28/client-node/sep-2322-client-request-state-2026-09-06T01-42-52-773Z 5/5 0 0 0 0
2026-07-28/client-node/tools_call-2026-09-06T01-42-52-772Z 1/1 0 0 0 0
2026-07-28/client-react/auth/authorization-server-migration-2026-09-06T01-43-26-525Z 27/27 0 0 0 0
2026-07-28/client-react/auth/basic-cimd-2026-09-06T01-43-26-525Z 15/15 0 0 0 0
2026-07-28/client-react/auth/iss-normalized-2026-09-06T01-43-26-525Z 11/11 0 0 0 0
2026-07-28/client-react/auth/iss-not-advertised-2026-09-06T01-43-26-525Z 16/16 0 0 0 0
2026-07-28/client-react/auth/iss-supported-2026-09-06T01-43-26-525Z 16/16 0 0 0 0
2026-07-28/client-react/auth/iss-supported-missing-2026-09-06T01-43-26-525Z 11/11 0 0 0 0
2026-07-28/client-react/auth/iss-unexpected-2026-09-06T01-43-26-525Z 11/11 0 0 0 0
2026-07-28/client-react/auth/iss-wrong-issuer-2026-09-06T01-43-26-525Z 11/11 0 0 0 0
2026-07-28/client-react/auth/metadata-default-2026-09-06T01-43-26-524Z 15/15 0 0 0 0
2026-07-28/client-react/auth/metadata-issuer-mismatch-2026-09-06T01-43-26-525Z 3/3 0 0 0 0
2026-07-28/client-react/auth/metadata-var1-2026-09-06T01-43-26-525Z 15/15 0 0 0 0
2026-07-28/client-react/auth/metadata-var2-2026-09-06T01-43-26-525Z 15/15 0 0 0 0
2026-07-28/client-react/auth/metadata-var3-2026-09-06T01-43-26-525Z 12/12 0 0 0 0
2026-07-28/client-react/auth/offline-access-not-supported-2026-09-06T01-43-26-525Z 17/17 0 0 0 0
2026-07-28/client-react/auth/offline-access-scope-2026-09-06T01-43-26-525Z 15/15 0 0 0 0
2026-07-28/client-react/auth/pre-registration-2026-09-06T01-43-26-525Z 14/14 0 0 0 0
2026-07-28/client-react/auth/resource-mismatch-2026-09-06T01-43-26-525Z 3/3 0 0 0 0
2026-07-28/client-react/auth/scope-from-scopes-supported-2026-09-06T01-43-26-525Z 17/17 0 0 0 0
2026-07-28/client-react/auth/scope-from-www-authenticate-2026-09-06T01-43-26-525Z 14/14 0 0 0 0
2026-07-28/client-react/auth/scope-omitted-when-undefined-2026-09-06T01-43-26-525Z 17/17 0 0 0 0
2026-07-28/client-react/auth/scope-retry-limit-2026-09-06T01-43-26-525Z 23/23 0 0 0 0
2026-07-28/client-react/auth/scope-step-up-2026-09-06T01-43-26-525Z 24/24 0 0 0 0
2026-07-28/client-react/auth/token-endpoint-auth-basic-2026-09-06T01-43-26-525Z 20/20 0 0 0 0
2026-07-28/client-react/auth/token-endpoint-auth-none-2026-09-06T01-43-26-525Z 20/20 0 0 0 0
2026-07-28/client-react/auth/token-endpoint-auth-post-2026-09-06T01-43-26-525Z 20/20 0 0 0 0
2026-07-28/client-react/http-custom-headers-2026-09-06T01-43-26-525Z 18/18 0 0 0 0
2026-07-28/client-react/http-invalid-tool-headers-2026-09-06T01-43-26-525Z 11/11 0 0 0 0
2026-07-28/client-react/http-standard-headers-2026-09-06T01-43-26-525Z 6/6 0 0 0 0
2026-07-28/client-react/json-schema-ref-no-deref-2026-09-06T01-43-26-525Z 1/1 0 0 0 0
2026-07-28/client-react/request-metadata-2026-09-06T01-43-26-524Z 8/8 0 0 0 0
2026-07-28/client-react/sep-2322-client-request-state-2026-09-06T01-43-26-525Z 5/5 0 0 0 0
2026-07-28/client-react/tools_call-2026-09-06T01-43-26-524Z 1/1 0 0 0 0
2026-07-28/server/server-caching-2026-09-06T01-42-51-849Z 7/7 0 0 0 0
2026-07-28/server/server-completion-complete-2026-09-06T01-42-51-667Z 1/1 0 0 0 0
2026-07-28/server/server-dns-rebinding-protection-2026-09-06T01-42-51-838Z 2/2 0 0 0 0
2026-07-28/server/server-http-custom-header-server-validation-2026-09-06T01-42-51-901Z 9/9 0 0 0 0
2026-07-28/server/server-http-header-validation-2026-09-06T01-42-51-871Z 13/13 0 0 0 0
2026-07-28/server/server-input-required-result-basic-elicitation-2026-09-06T01-42-51-921Z 2/2 0 0 0 0
2026-07-28/server/server-input-required-result-basic-list-roots-2026-09-06T01-42-51-938Z 2/2 0 0 0 0
2026-07-28/server/server-input-required-result-basic-sampling-2026-09-06T01-42-51-931Z 2/2 0 0 0 0
2026-07-28/server/server-input-required-result-capability-check-2026-09-06T01-42-52-023Z 1/1 0 0 0 0
2026-07-28/server/server-input-required-result-ignore-extra-params-2026-09-06T01-42-52-028Z 1/1 0 0 0 0
2026-07-28/server/server-input-required-result-missing-input-response-2026-09-06T01-42-51-980Z 1/1 0 0 0 0
2026-07-28/server/server-input-required-result-multi-round-2026-09-06T01-42-51-967Z 3/3 0 0 0 0
2026-07-28/server/server-input-required-result-multiple-input-requests-2026-09-06T01-42-51-958Z 2/2 0 0 0 0
2026-07-28/server/server-input-required-result-non-tool-request-2026-09-06T01-42-51-986Z 2/2 0 0 0 0
2026-07-28/server/server-input-required-result-request-state-2026-09-06T01-42-51-947Z 2/2 0 0 0 0
2026-07-28/server/server-input-required-result-result-type-2026-09-06T01-42-51-997Z 1/1 0 0 0 0
2026-07-28/server/server-input-required-result-tampered-state-2026-09-06T01-42-52-014Z 1/1 0 0 0 0
2026-07-28/server/server-input-required-result-unsupported-methods-2026-09-06T01-42-52-002Z 1/1 0 0 0 0
2026-07-28/server/server-input-required-result-validate-input-2026-09-06T01-42-52-033Z 2/2 0 0 0 0
2026-07-28/server/server-json-schema-2020-12-2026-09-06T01-42-51-772Z 7/7 0 0 0 0
2026-07-28/server/server-prompts-get-embedded-resource-2026-09-06T01-42-51-829Z 1/1 0 0 0 0
2026-07-28/server/server-prompts-get-simple-2026-09-06T01-42-51-818Z 1/1 0 0 0 0
2026-07-28/server/server-prompts-get-with-args-2026-09-06T01-42-51-823Z 1/1 0 0 0 0
2026-07-28/server/server-prompts-get-with-image-2026-09-06T01-42-51-834Z 1/1 0 0 0 0
2026-07-28/server/server-prompts-list-2026-09-06T01-42-51-813Z 1/1 0 0 0 0
2026-07-28/server/server-resources-list-2026-09-06T01-42-51-789Z 1/1 0 0 0 0
2026-07-28/server/server-resources-read-binary-2026-09-06T01-42-51-800Z 1/1 0 0 0 0
2026-07-28/server/server-resources-read-text-2026-09-06T01-42-51-795Z 1/1 0 0 0 0
2026-07-28/server/server-resources-templates-read-2026-09-06T01-42-51-804Z 1/1 0 0 0 0
2026-07-28/server/server-sep-2164-resource-not-found-2026-09-06T01-42-51-809Z 3/3 0 0 0 0
2026-07-28/server/server-server-sse-multiple-streams-2026-09-06T01-42-51-777Z 1/1 0 0 0 0
2026-07-28/server/server-server-stateless-2026-09-06T01-42-49-971Z 30/30 0 0 0 0
2026-07-28/server/server-tools-call-audio-2026-09-06T01-42-51-695Z 1/1 0 0 0 0
2026-07-28/server/server-tools-call-embedded-resource-2026-09-06T01-42-51-700Z 1/1 0 0 0 0
2026-07-28/server/server-tools-call-error-2026-09-06T01-42-51-709Z 1/1 0 0 0 0
2026-07-28/server/server-tools-call-image-2026-09-06T01-42-51-690Z 1/1 0 0 0 0
2026-07-28/server/server-tools-call-mixed-content-2026-09-06T01-42-51-705Z 1/1 0 0 0 0
2026-07-28/server/server-tools-call-simple-text-2026-09-06T01-42-51-685Z 1/1 0 0 0 0
2026-07-28/server/server-tools-call-with-progress-2026-09-06T01-42-51-714Z 1/1 0 0 0 0
2026-07-28/server/server-tools-list-2026-09-06T01-42-51-675Z 2/2 0 0 0 0

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread libraries/typescript/packages/client/src/transport/base.ts Outdated
Comment thread libraries/typescript/packages/agent/src/adapters/base.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="libraries/typescript/packages/server/src/mcp-proxy.ts">

<violation number="1">
P1: When an upstream has paginated prompts, proxy introspection calls only `listPrompts()` and permanently omits every page after the first. Detect and call the concrete connection’s `listAllPrompts()` before falling back to `listPrompts()`, while keeping the public interface unchanged if required.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

Comment thread libraries/typescript/packages/agent/src/adapters/base.ts Outdated
@rohith500

Copy link
Copy Markdown
Author

All review items from Cubic have been addressed:

  1. Empty-string cursor termination (packages/client/src/transport/base.ts): Updated the auto-pagination loop termination condition to while (cursor !== undefined) so empty-string next cursors are followed without premature truncation. Added unit test in list-all-prompts.test.ts.
  2. Upstream prompt pagination in proxy introspection (packages/server/src/mcp-proxy.ts): Added runtime duck-typing detection of listAllPrompts on upstream connections before falling back to connection.listPrompts(). This keeps the public ProxyConnection interface unchanged to satisfy strict TypeDoc requirements while ensuring paginated upstream prompts are fully introspected. Added unit test in proxy.test.ts.
  3. Connector backward compatibility in agent (packages/agent/src/adapters/base.ts): Maintained backward compatibility by checking for listAllPrompts with a fallback to listPrompts() when interacting with older connectors. Added unit tests in adapter-prompts.test.ts.

All 34 CI checks and the Cubic AI review have passed with 0 issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

client: prompts/list pagination ignored and listAllPrompts missing across connectors and useMcp

1 participant