Tool

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.

GitHub

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

NameTypeDescription
orderenum

Sort order for results

pagenumber

Page number for pagination (min 1)

perPagenumber

Results per page for pagination (min 1, max 100)

queryrequiredstring

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.

sortstring

Sort field ('indexed' only)

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .