๐ฆ pr-creator-mcp
April 21, 2025 ยท View on GitHub
GitHub Pull Request ์์ฑ์ ์๋ํํ๋ Cursor, Claude ๋ฑ๊ณผ ์ฐ๋ ๊ฐ๋ฅํ MCP ์๋ฒ์
๋๋ค.
PR ์ ๋ชฉ, ์ค๋ช
, ์ฒดํฌ๋ฆฌ์คํธ, ์ํฅ ๋ฒ์๋ฅผ ์๋์ผ๋ก ์์ฑํ๊ณ GitHub์ ํธ์ํฉ๋๋ค.
๐ ์ค์น ๋ฐฉ๋ฒ
1. ์ ์ฅ์ ํด๋ก ๋ฐ ๋๋ ํ ๋ฆฌ ์ด๋
git clone https://github.com/urijan44/pr_creator_mcp.git
cd pr_creator_mcp
2. ์์กด์ฑ ์ค์น
npm install
3. MCP ๋ฑ๋ก
npm run setup
์ด ์คํฌ๋ฆฝํธ๋
.cursor/mcp.jsonํ์ผ์ ์์ฑํ์ฌ MCP ์๋ฒ๋ฅผ ๋ฑ๋กํ๊ณ , GitHub ํ๊ฒฝ๋ณ์๋ฅผ ํฌํจํ ์คํ ์ค์ ์ ์๋์ผ๋ก ๊ตฌ์ฑํฉ๋๋ค.
โ๏ธ ํ๊ฒฝ ๋ณ์ ์ค์ (.env)
1. .env ํ์ผ ์์ฑ
cp .env.example .env
2. ๋ด์ฉ ์์ฑ
GITHUB_TOKEN=ghp_your_token_here
GITHUB_API_BASE=https://api.github.com
GITHUB_WEB_BASE=https://github.com
GitHub Enterprise๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ
API_BASE์WEB_BASE๋ฅผ ๋ณ๊ฒฝํด ์ฃผ์ธ์.
๐ ์ ๊ณตํ๋ MCP Tools
pr-creator: Git diff, ์ปค๋ฐ ๋ก๊ทธ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก PR ์ ๋ชฉ๊ณผ ์ค๋ช ์๋ ์์ฑpr-submitter: PR์ GitHub์ ์์ฑํ๊ฑฐ๋, ์ด๋ฏธ ์กด์ฌํ๋ฉด ์ ๋ฐ์ดํธget-reviewers: ํ์ฌ ๋ ํฌ์์ ๋ฆฌ๋ทฐ์ด ๊ฐ๋ฅํ ์ฌ์ฉ์ ๋ชฉ๋ก ๊ฐ์ ธ์ค๊ธฐ
๐งช ํ ์คํธ
MCP๊ฐ ์ ์์ ์ผ๋ก ๋ฑ๋ก๋์๋์ง ํ์ธํ๋ ค๋ฉด .cursor/mcp.json ํ์ผ์ ๋ค์๊ณผ ๊ฐ์ ๋ด์ฉ์ด ํฌํจ๋์ด ์์ด์ผ ํฉ๋๋ค:
"mcpServers": {
"pr-write": {
"command": "node",
"args": ["/your/path/to/build/index.js"],
"env": {
"GITHUB_TOKEN": "...",
...
}
}
}
๐ ๋ก๊ทธ ์์น
๋ชจ๋ ๋ก๊ทธ๋ ๋ค์ ๊ฒฝ๋ก์ ์ ์ฅ๋ฉ๋๋ค:
~/.mcp/logs/