Skip to content

Add GitHub and PostgreSQL MCP servers#2

Merged
jayhack merged 1 commit intomainfrom
codegen-cg-18914-add-common-mcp-packages
Jul 5, 2025
Merged

Add GitHub and PostgreSQL MCP servers#2
jayhack merged 1 commit intomainfrom
codegen-cg-18914-add-common-mcp-packages

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Jul 5, 2025

This PR adds two common MCP packages to the CLICP project as requested in CG-18914:

🚀 New MCP Servers Added

GitHub Server (@modelcontextprotocol/server-github)

  • File Operations: Create/update files, get file contents
  • Issue Management: Create issues, list/update issues, add comments
  • Pull Request Management: Create PRs, list PRs, manage reviews
  • Repository Operations: Search repositories, create repositories, fork repositories
  • Search Capabilities: Search code, issues, and users

PostgreSQL Server (@modelcontextprotocol/server-postgres)

  • Database Queries: Execute read-only SQL queries
  • Schema Inspection: Access table schemas and metadata
  • Safe Operations: All queries run in READ ONLY transactions

🔧 Configuration

Both servers support environment variable configuration:

  • GitHub: Set GITHUB_PERSONAL_ACCESS_TOKEN for API access
  • PostgreSQL: Set POSTGRES_CONNECTION_STRING (defaults to postgresql://localhost/postgres)

✅ Testing

  • All existing tests pass
  • Added comprehensive tests for new server integrations
  • CLI commands work correctly:
    • clicp list shows all 4 servers
    • clicp github list shows GitHub tools
    • clicp postgres list shows PostgreSQL tools

📚 Documentation

  • Updated README with new server documentation
  • Added usage examples and configuration notes
  • Updated feature list to include new servers

🎯 Implementation Details

  • Follows existing MCPService patterns for consistency
  • Maintains backward compatibility
  • Uses official @modelcontextprotocol packages for reliability
  • Proper error handling and validation

Resolves CG-18914


💻 View my workAbout Codegen

- Add @modelcontextprotocol/server-github with file operations, issue/PR management, and repository search
- Add @modelcontextprotocol/server-postgres with read-only SQL query capabilities
- Update MCPService to include new server configurations and tool definitions
- Update README with documentation for new servers and their tools
- Add comprehensive tests for new server integrations
- Support environment variables for GitHub token and PostgreSQL connection string

Resolves CG-18914
@jayhack jayhack merged commit 891624c into main Jul 5, 2025
0 of 4 checks passed
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