Files
github--github-mcp-server/pkg/github/__toolsnaps__/search_code.snap
T
Lulu 9e40d53acc Migrate 4 Search Tools to Go SDK (#1468)
* migrate search.go

* add toolsnap for search_orgs

* re-add 4 search tools

* Dedupe test args

---------

Co-authored-by: Adam Holt <me@adamholt.co.uk>
2025-11-24 13:43:03 +01:00

43 lines
1.3 KiB
Plaintext

{
"annotations": {
"readOnlyHint": true,
"title": "Search code"
},
"description": "Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"order": {
"type": "string",
"description": "Sort order for results",
"enum": [
"asc",
"desc"
]
},
"page": {
"type": "number",
"description": "Page number for pagination (min 1)",
"minimum": 1
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"minimum": 1,
"maximum": 100
},
"query": {
"type": "string",
"description": "Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go', 'repo:github/github-mcp-server'. Supports exact matching, language filters, path filters, and more."
},
"sort": {
"type": "string",
"description": "Sort field ('indexed' only)"
}
}
},
"name": "search_code"
}