GitHub
메타데이터
설정 스니펫
{
"mcpServers": {
"github": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}
제공 도구
| 도구명 | 설명 | Claude Code 호출 |
|---|
create_issue | 이슈 생성 | mcp__github__create_issue |
list_issues | 이슈 목록 | mcp__github__list_issues |
create_pull_request | PR 생성 | mcp__github__create_pull_request |
search_repositories | 레포 검색 | mcp__github__search_repositories |
get_file_contents | 파일 내용 조회 | mcp__github__get_file_contents |
push_files | 파일 푸시 | mcp__github__push_files |
사용 사례
- 이슈/PR 관리 자동화
- 외부 레포지토리 코드 참조
- CI/CD 상태 확인
- 크로스 레포지토리 작업
주의사항
gh CLI가 이미 설치되어 있으면 중복 가능 (Claude Code는 기본적으로 gh 사용)
- Token 권한:
repo, read:org 필요
- 프라이빗 레포 접근 시 추가 권한 필요