github_search_repo
Search across code, issues, and pull requests in a single GitHub repository query. Supports GitHub search syntax and state filters.
Instructions
Search a GitHub repository across code, issues, and pull requests in one call. Code search uses /search/code (requires the repo to be indexed by GitHub). Issues and PRs use /search/issues. Works without a token (anonymous rate limits apply — set GITHUB_TOKEN for higher limits).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>",
"query": "<query>"
},
"name": "github_search_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What to search. 'all' fans out across code, issues, and PRs in parallel. Default 'all'. | |
| repo | Yes | GitHub repository in the form 'owner/repo' | |
| query | Yes | Search query. GitHub search syntax is supported (e.g. 'auth token', 'bug in login', 'TODO refactor', 'label:bug'). | |
| state | No | Filter for issues/PRs only. Ignored for code. Default 'all'. | |
| maxResults | No | Max results per kind. Default 5 (so 'all' returns up to 15 total). |