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
MCP Server
Cursor IDE에서 사용할 수 있는 GitHub 통합 서버입니다.
설치 방법
- 패키지 설치:
pip install -e .
- 환경 변수 설정:
.env
파일을 생성하고 다음 내용을 추가하세요:
GITHUB_TOKEN=your_github_token
GITHUB_REPO=your_repo_name
서버 실행
python -m mcp_server
Cursor에서 사용하기
- Cursor에서 새로운 Python 파일을 생성합니다.
- 다음 코드를 추가하여 MCP 클라이언트를 사용할 수 있습니다:
from mcp_client import update_file, create_pr, search_code
# 파일 업데이트
result = update_file(
file_path="path/to/file.py",
content="new content",
branch_name="feature/new-feature"
)
# PR 생성
result = create_pr(
title="새로운 기능 추가",
body="변경 사항 설명",
head_branch="feature/new-feature"
)
# 코드 검색
results = search_code("검색어")
기능
- 파일 업데이트
- PR 생성
- 코드 검색
- 자동 코드 검수
- 컴파일 오류 검사