modelcontextprotocol / modelcontextprotocol/java-sdk

Server should handle paginated requests

Open
#967 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/server enhancement P3
Dominant language
Java
Stars
3.7k
Forks
1.1k
Avg merge
1d 15h
Merged PRs (30d)
9

Description

Expected Behavior

The server should handle paginated requests per specification.

Current Behavior

Currently, the whole list is returned on list requests.

Context

When a server contains big lists of tools, prompts, etc. the requests may put too much load on the server or take too long.
The code has TODOs at some of the affected places.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked server specification and locating the TODOs in the server code for list requests. Trace how lists of tools, prompts, and other server capabilities are returned, then verify that large lists follow the specification's pagination behavior and no longer return the entire collection at once.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.