Title: search_repositories returns unmanageable amount of data without pagination · Issue #105 · github/github-mcp-server · GitHub
Open Graph Title: search_repositories returns unmanageable amount of data without pagination · Issue #105 · github/github-mcp-server
X Title: search_repositories returns unmanageable amount of data without pagination · Issue #105 · github/github-mcp-server
Description: 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 proc...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/github/github-mcp-server/issues/105
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"search_repositories returns unmanageable amount of data without pagination","articleBody":"### Describe the bug\n\nWhen 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.\n\n### Affected version\n\n```\nserver version v0.1.0 (b89336793c5bc9b9abdd5100d876babbc1031f5d) 2025-04-04T15:38:19Z\n```\n\n### Steps to reproduce the behavior\n\n1. Use the `search_repositories` tool with a somewhat generic query like \"MCP Model Context Protocol\"\n2. Receive a response with a large number of repositories (30+ in my case)\n3. The entire response is returned at once without pagination, making it difficult to manage\n\n### Expected vs actual behavior\n\n**Expected behavior:**\n- The server should return a limited number of results (e.g., 10 repositories)\n- The response should include pagination information (e.g., total count, current page, next page token)\n- There should be a way to request subsequent pages of results\n\n**Actual behavior:**\n- The server returns all matching repositories in a single response\n- No pagination mechanism is provided\n- The response can be extremely large and unwieldy for common search terms\n\n### Logs\n\nThe response included 30+ repositories with full details for each, resulting in a very large JSON payload. The beginning of the response looked like this:\n\n```json\n{\"total_count\":1746,\"incomplete_results\":false,\"items\":[{\"id\":905016458,\"node_id\":\"R_kgDONfF0ig\",\"owner\":{\"login\":\"lastmile-ai\",\"id\":123273171,\"node_id\":\"O_kgDOB1j_0w\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/123273171?v=4\",\"html_url\":\"https://github.com/lastmile-ai\",\"gravatar_id\":\"\",\"type\":\"Organization\",\"site_admin\":false,...\n```\n\nNote that while the response includes `\"total_count\":1746`, it doesn't provide any way to paginate through these results.","author":{"url":"https://github.com/aaronsb","@type":"Person","name":"aaronsb"},"datePublished":"2025-04-04T18:43:24Z","url":"https://github.com/github/github-mcp-server/issues/105"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:894e3cc3-3437-0f09-2518-bafdc9b0c736 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9518:1EFD:EFCDB2:14FF7DF:6B06D4BE |
| html-safe-nonce | e52029382907101bdc42a35c0e1e1b98ba30c8dff91f833d2a1ac542fa230a9c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTE4OjFFRkQ6RUZDREIyOjE0RkY3REY6NkIwNkQ0QkUiLCJ2aXNpdG9yX2lkIjoiNjYwMjMxNTQ2NTQxMzI4NTA1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ebd0920abac901c9e2b547181a47b111399ab4107f136229d8024622d63672d5 |
| hovercard-subject-tag | issue:2973126712 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/105/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0bfd9cce68407d8c782efbab39da40cdfb54c6b95e51394e69be70822a6888d9/github/github-mcp-server/issues/105 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0bfd9cce68407d8c782efbab39da40cdfb54c6b95e51394e69be70822a6888d9/github/github-mcp-server/issues/105 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aaronsb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06cadd0061c549662a50be90eb5baba7608f00f521574931eec01db0deb9e636 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6953c712585a8d7406b7695e48fffcb670fd241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width