Devr.AI icon indicating copy to clipboard operation
Devr.AI copied to clipboard

FEATURE REQUEST: Extend all the GitHub interactions to use GitHub MCP server

Open smokeyScraper opened this issue 1 year ago • 3 comments

Is your feature request related to a problem?

  • [x] Yes, it is related to a problem

Describe the feature you'd like

🌟 Feature Description

Migrate all GitHub interactions throughout the DevRel agent codebase from custom implementations to the official GitHub Model Context Protocol (MCP) Server. This involves replacing the current GitHubToolkit, GitHubUserProfiler, and other GitHub API integrations with standardized MCP-based implementations that leverage GitHub's official MCP server for enhanced reliability, functionality, and maintainability.

🔍 Problem Statement

Current Implementation Challenges

  1. Fragmented GitHub Integration Architecture

    • Custom GitHubToolkit class with limited functionality (many features marked as "Not implemented")
    • Separate GitHubUserProfiler service using direct API calls
    • Manual token management and authentication handling
    • Inconsistent error handling across different GitHub operations
  2. Maintenance Overhead

    • Custom implementations require ongoing maintenance for API changes
    • Manual rate limiting and error handling implementation
    • Duplicate code patterns across multiple GitHub service classes
    • No standardized approach to GitHub authentication and authorization
  3. Limited Functionality

    # Current state in GitHubToolkit
    elif classification == "repo_support":
        result = "Not implemented"
    elif classification == "issue_creation":
        result = "Not implemented"
    elif classification == "documentation_generation":
        result = "Not implemented"
    
  4. Integration Complexity

  5. Scalability Concerns

🎯 Expected Outcome

Post-Migration Architecture Benefits

  1. Standardized GitHub Operations

    • Replace custom GitHubToolkit with GitHub MCP server integration
    • Standardized error handling and rate limiting
    • Access to full GitHub API capabilities through pre-built MCP tools
  2. Enhanced DevRel Agent Capabilities

    # Future state with GitHub MCP
    Available GitHub MCP Tools:
    - Repository management (create, read, update, delete)
    - Issue and PR operations (create, update, comment, close)
    - User and organization management
    - Advanced search across repositories, issues, PRs
    - Webhook management and event processing
    - GitHub Actions integration
    - Security scanning and dependency management
    
  3. Architecture Modernization

    graph TD
        A[DevRel Agent] --> B[GitHub MCP Server]
        B --> C[GitHub API v4 GraphQL]
        B --> D[GitHub API v3 REST]
        B --> E[GitHub Authentication]
        B --> F[Rate Limiting & Retry Logic]
    
        G[Current Implementation] --> H[Custom GitHubToolkit]
        H --> I[Manual aiohttp Sessions]
        H --> J[Custom Authentication]
        H --> K[Manual Error Handling]
    
    
    

This migration represents a significant architectural improvement that will enhance the DevRel agent's GitHub integration capabilities while reducing maintenance overhead and improving reliability.

Record

  • [x] I agree to follow this project's Code of Conduct
  • [ ] I want to work on implementing this feature

smokeyScraper avatar Aug 03 '25 19:08 smokeyScraper

Heyy @smokeyScraper I would like to work on this issue.

DhruvK278 avatar Aug 04 '25 14:08 DhruvK278

may i work on this issue?

harshtiwari2022 avatar Aug 19 '25 19:08 harshtiwari2022

hey @harshtiwari2022, actually it's still under progress as of now.

smokeyScraper avatar Aug 20 '25 06:08 smokeyScraper