Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(github): Add GitHub Search to Github MCP #103

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0xRaduan
Copy link

Description

Added comprehensive search functionality to the GitHub MCP Server, enabling users to search for code, issues/PRs, and users across GitHub. This enhancement brings powerful GitHub search capabilities directly to MCP clients.

Server Details

  • Server: github
  • Changes to: tools (added search functionality), schemas (added search schemas), documentation

Motivation and Context

GitHub's search functionality is a crucial feature for developers and AI assistants working with codebases. This addition allows MCP clients to:

  • Search code across repositories with language and path filters
  • Find relevant issues and pull requests
  • Discover users and organizations
  • Use GitHub's advanced search syntax
  • Sort and paginate results efficiently

How Has This Been Tested?

  • Tested with Claude Desktop client
    CleanShot 2024-11-28 at 09 56 24@2x
  • Verified search functionality works through stdio interface
  • Tested various search scenarios:
    • Code search with language and path filters
    • Issues search with labels and state filters
    • User search with location and follower filters

Breaking Changes

No breaking changes. Users can continue using existing functionality without modification. The new search features are purely additive.

Types of changes

  • New MCP Server
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Protocol Documentation
  • My server follows MCP security best practices
  • I have updated the server's README accordingly
  • I have tested this with an LLM client
  • My code follows the repository's style guidelines
  • New and existing tests pass locally(there are no tests)
  • I have added appropriate error handling
  • I have documented all environment variables and configuration options

Additional context

  • Added comprehensive documentation for search query syntax in README
  • Included detailed schema descriptions and JSDoc comments
  • Implemented proper type safety with Zod schemas
  • Version bumped from 0.5.1 to 0.6.0 for new feature addition

@0xRaduan 0xRaduan changed the title Add GitHub Search to Github MCP feat(github): Add GitHub Search to Github MCP Nov 28, 2024
@0xRaduan
Copy link
Author

@maheshmurag / @jspahrsummers - please let me know if anything else is needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant