search_code

Pack: github · Endpoint: https://gateway.pipeworx.io/github/mcp

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 ”, “show me an example of ”, “where is 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

NameTypeRequiredDescription
querystringyesCode search query, e.g. “NewCmdRoot repo:cli/cli”, “createRoot language:typescript”, “addEventListener org:facebook”.
per_pagenumbernoNumber of results to return (default 10, max 30).

Example call

curl -X POST https://gateway.pipeworx.io/github/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_code","arguments":{}}}'

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "github": {
      "url": "https://gateway.pipeworx.io/github/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 24, 2026