[PR #11] [CLOSED] test: cover MCP tools/list paginationtest: cover MCP tools list pagination #13

Closed
opened 2026-10-18 21:09:33 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/tests/pull/11
Author: @Vish12345678673
Created: 9/15/2026
Status: ❌ Closed

Base: main ← Head: test/mcp-tools-list-pagination


📝 Commits (1)

  • 0fda7c2 test: cover MCP tools list pagination

📊 Changes

1 file changed (+75 additions, -0 deletions)

View changed files

➕ unit/tools/test_mcp_tools_pagination.py (+75 -0)

📄 Description

Adds regression coverage for MCP tools/list pagination.

Previously, MCPClient.list_tool_specs() only processed the first page returned by the MCP server, ignoring nextCursor and therefore omitting tools from subsequent pages.

The test verifies that:

  • multiple tools/list pages are consumed
  • nextCursor is forwarded to the next request
  • tools from all pages are returned

Verification

The regression test fails against the pre-fix Open WebUI main commit:

0a7c15832

It passes against the upstream dev branch containing the fix:

a096961a3

Test:

py -m pytest -q .\unit\tools\test_mcp_tools_pagination.py

Result:

1 passed


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/tests/pull/11 **Author:** [@Vish12345678673](https://github.com/Vish12345678673) **Created:** 9/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `test/mcp-tools-list-pagination` --- ### 📝 Commits (1) - [`0fda7c2`](https://github.com/open-webui/tests/commit/0fda7c25526ab542acf24d9b8fbebaa376fedd2b) test: cover MCP tools list pagination ### 📊 Changes **1 file changed** (+75 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `unit/tools/test_mcp_tools_pagination.py` (+75 -0) </details> ### 📄 Description Adds regression coverage for MCP `tools/list` pagination. Previously, `MCPClient.list_tool_specs()` only processed the first page returned by the MCP server, ignoring `nextCursor` and therefore omitting tools from subsequent pages. The test verifies that: - multiple `tools/list` pages are consumed - `nextCursor` is forwarded to the next request - tools from all pages are returned ## Verification The regression test fails against the pre-fix Open WebUI `main` commit: `0a7c15832` It passes against the upstream `dev` branch containing the fix: `a096961a3` Test: `py -m pytest -q .\unit\tools\test_mcp_tools_pagination.py` Result: `1 passed` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-18 21:09:33 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/tests#13
No description provided.