You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the search_repositories tool, the server returns a very large response with all matching repositories at once, without pagination or limiting the results to a manageable amount. This makes it difficult to process and use the data effectively, especially in contexts where the response needs to be displayed or processed in a user-friendly way.
Affected version
server version v0.1.0 (b89336793c5bc9b9abdd5100d876babbc1031f5d) 2025-04-04T15:38:19Z
Steps to reproduce the behavior
Use the search_repositories tool with a somewhat generic query like "MCP Model Context Protocol"
Receive a response with a large number of repositories (30+ in my case)
The entire response is returned at once without pagination, making it difficult to manage
Expected vs actual behavior
Expected behavior:
The server should return a limited number of results (e.g., 10 repositories)
The response should include pagination information (e.g., total count, current page, next page token)
There should be a way to request subsequent pages of results
Actual behavior:
The server returns all matching repositories in a single response
No pagination mechanism is provided
The response can be extremely large and unwieldy for common search terms
Logs
The response included 30+ repositories with full details for each, resulting in a very large JSON payload. The beginning of the response looked like this:
The total_count value is not the actual number of repositories returned to the agent — it’s the total number of repositories matched by the search. The number of repositories actually sent back to the agent is determined by the perPage parameter provided by the tool.
That said, we had a bug that prevented us from setting the default page size, so it was always returning 30. I addressed this in #129.
One issue with this tool is that, even though the number of repositories returned isn't that large (30 max, by default), the API response includes so much data per repository that it’s easy to saturate the context.
There are a few ways to mitigate this:
We should probably trim down the response and return only the useful fields.
Alternatively, you can also ask the agent to return fewer repositories — see:
Describe the bug
When using the
search_repositories
tool, the server returns a very large response with all matching repositories at once, without pagination or limiting the results to a manageable amount. This makes it difficult to process and use the data effectively, especially in contexts where the response needs to be displayed or processed in a user-friendly way.Affected version
Steps to reproduce the behavior
search_repositories
tool with a somewhat generic query like "MCP Model Context Protocol"Expected vs actual behavior
Expected behavior:
Actual behavior:
Logs
The response included 30+ repositories with full details for each, resulting in a very large JSON payload. The beginning of the response looked like this:
Note that while the response includes
"total_count":1746
, it doesn't provide any way to paginate through these results.The text was updated successfully, but these errors were encountered: