mcp-server
3.5
This project is a Model Context Protocol server designed to integrate with the GitHub API. It provides various operations such as searching for repositories, accessing repository contents, and creating or updating files in a repository.
My MCP Server
A Model Context Protocol server implementation with GitHub API integration.
Setup
- Clone this repository
- Copy
.env.example
to.env
and fill in your GitHub token - Install dependencies:
npm install
- Build the project:
npm run build
- Start the server:
npm start
Development
For development with auto-reloading:
npm run dev
Available Functions
This MCP server exposes the following GitHub operations:
searchRepositories
: Search for GitHub repositoriesgetRepoContents
: Get contents of a repositorycreateOrUpdateFile
: Create or update a file in a repository
Adding New Functions
To add new GitHub operations, extend the githubFunctions
object in src/index.ts
.