search_code
ActiveTool of github
Search CODE across public GitHub repositories — find where a function/symbol/string is defined or used. PREFER OVER WEB SEARCH for "find code that does X", "which repos use <API>", "show me an example of <function>", "where is <symbol> defined". Supports GitHub code-search qualifiers right in the query: repo:owner/name, org:name, user:name, language:go, filename:Dockerfile, path:src, extension:ts, in:file. Returns matching files with repo, path, and URL. Note: indexes the default branch only, ignores very common terms, and is capped at ~10 searches/minute.
Parameters schema
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Code search query, e.g. \"NewCmdRoot repo:cli/cli\", \"createRoot language:typescript\", \"addEventListener org:facebook\"."
},
"per_page": {
"type": "number",
"description": "Number of results to return (default 10, max 30)."
}
}
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
github
https://github.com/pipeworx-io/mcp-github
1/7 registries