Search code
Search_code is a powerful AI-driven tool that enables fast and precise code search across all GitHub repositories. Utilizing GitHub's native search engine, it excels at finding exact symbols, functions, classes, or specific code patterns with ease.
Features
- Supports complex search queries using GitHub's powerful code search syntax.
- Allows filtering by programming language, repository, file path, and more.
- Provides options for sorting and paginating search results for efficient browsing.
- Integrates seamlessly with GitHub MCP provider for real-time, comprehensive code indexing.
- Ideal for developers seeking precise code snippets, symbols, or understanding large codebases quickly.
Benefits
- Speeds up code discovery and reuse, enhancing developer productivity.
- Enables accurate identification of functions, classes, and symbols across millions of repositories.
- Helps in rapid troubleshooting by locating exact code patterns and implementations.
- Supports advanced query syntax for tailored and efficient searches.
- Facilitates better understanding of open-source projects by providing deep code visibility.
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.
Parameters
5 parameters
| Name | Type | Description |
|---|---|---|
| order | enum | Sort order for results |
| page | number | Page number for pagination (min 1) |
| perPage | number | Results per page for pagination (min 1, max 100) |
| queryrequired | string | Search query using GitHub's powerful code search syntax. Examples: 'content language org', 'NOT is language OR language', 'repo/github-mcp-server'. Supports exact matching, language filters, path filters, and more. |
| sort | string | Sort field ('indexed' only) |