Model Context Protocol (MCP) sunucusu: Cursor ve benzeri istemcilerden GitHub REST API’ye (Octokit) güvenli köprü. Tek bir depo (GITHUB_OWNER / GITHUB_REPO) için issue, milestone, proje ve label işlemlerini MCP tool olarak sunar.
- Issue: listele, getir, oluştur, güncelle
- Milestone: listele, oluştur, güncelle
- Project ve label listeleri
- stdio transport — Cursor MCP yapılandırması ile yerel
node dist/index.jsçalıştırılır
- Node.js 18+ (TypeScript 5.x ile derleme)
- GitHub Personal Access Token (klasik veya fine-grained; repo/issue/project izinleri ihtiyaca göre)
git clone https://github.com/eemredemirci/github-mcp-server.git
cd github-mcp-server
npm install
npm run buildProje kökünde .env:
GITHUB_TOKEN=ghp_xxxxxxxx
GITHUB_OWNER=eemredemirci
GITHUB_REPO=your-repo-name
GITHUB_TOKEN asla depoya commit edilmemelidir.
npm startBu komut dist/index.js dosyasını çalıştırır (package.json → "start": "node dist/index.js").
- Cursor → Settings → MCP (veya proje
.cursor/mcp.json) - stdio sunucusu:
node+ tam yol...\github-mcp-server\dist\index.js - Ortam değişkenlerini Cursor MCP tanımında veya
.envile sağlayın (Cursor sürümüne göre değişir).
| Tool | Açıklama |
|---|---|
github_list_issues |
Filtrelerle issue listesi |
github_get_issue |
Tek issue detayı |
github_create_issue |
Yeni issue |
github_update_issue |
Issue güncelle |
github_list_milestones |
Milestone listesi |
github_create_milestone |
Milestone oluştur |
github_update_milestone |
Milestone güncelle |
github_list_projects |
Repodaki projeler |
github_create_project |
Proje oluştur |
github_list_labels |
Etiket listesi |
- TypeScript, ES modules
- Octokit (GitHub REST)
- @modelcontextprotocol/sdk
- Zod şema doğrulama
- dotenv
{
"mcpServers": {
"github": {
"command": "node",
"args": ["${workspaceFolder}/dist/index.js"],
"env": {
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}",
"GITHUB_OWNER": "your-org-or-user",
"GITHUB_REPO": "your-repo"
}
}
}
}Yolları kendi makinenize göre düzenleyin.
ISC — package.json ile uyumlu.
- GitHub: @eemredemirci