MCP Server logo

MCP Server

by fnf-deepHeading

MCP Server is a GitHub integration server for Cursor IDE. It allows you to update files, create pull requests, and search code directly from Cursor.

View on GitHub

Last updated: N/A

What is MCP Server?

MCP Server is a server that integrates with GitHub to provide functionalities like file updates, pull request creation, and code search within the Cursor IDE.

How to use MCP Server?

  1. Install the package using pip install -e .. 2. Set the environment variables GITHUB_TOKEN and GITHUB_REPO in a .env file. 3. Run the server using python -m mcp_server. 4. Use the mcp_client library in Cursor to interact with the server.

Key features of MCP Server

  • File Update

  • PR Creation

  • Code Search

  • Automatic Code Review

  • Compilation Error Check

Use cases of MCP Server

  • Automating code changes in a repository

  • Creating pull requests from within the IDE

  • Searching for specific code snippets across the repository

  • Automated code review process

  • Checking for compilation errors before committing code

FAQ from MCP Server

How do I install the server?

Use pip install -e . to install the required packages.

What environment variables are required?

You need to set GITHUB_TOKEN and GITHUB_REPO in a .env file.

How do I run the server?

Use the command python -m mcp_server.

How do I use the server from Cursor?

Import the mcp_client library and use its functions to interact with the server.

What functionalities does the server provide?

The server provides functionalities like file updates, pull request creation, and code search.