MCP-server
0
The GitHub MCP Server is a FastAPI server designed to facilitate interactions with GitHub through the Model Context Protocol. It offers endpoints for repository and issue management while ensuring comprehensive error handling and type hinting support for maintainability.
GitHub MCP Server
A FastAPI server implementing the Model Context Protocol for GitHub interactions.
Setup
- Clone the repository
- Create a virtual environment
- Install dependencies
- Create a
.env
file with your GitHub Personal Access Token
Usage
Start the server
API Endpoints
- Get Repository Details
- List Issues
- Create Issue
- Create Comment
Error Handling
The server implements comprehensive error handling for all GitHub API interactions. Errors are logged and appropriate HTTP status codes are returned.
Type Hints
The codebase uses type hints for better maintainability and IDE support.