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.
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?
- Install the package using
pip install -e .
. 2. Set the environment variablesGITHUB_TOKEN
andGITHUB_REPO
in a.env
file. 3. Run the server usingpython -m mcp_server
. 4. Use themcp_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?
How do I install the server?
Use pip install -e .
to install the required packages.
What environment variables are required?
What environment variables are required?
You need to set GITHUB_TOKEN
and GITHUB_REPO
in a .env
file.
How do I run the server?
How do I run the server?
Use the command python -m mcp_server
.
How do I use the server from Cursor?
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?
What functionalities does the server provide?
The server provides functionalities like file updates, pull request creation, and code search.