GitHub MCP 서버
GitHub API와 상호 작용하기 위한 도구를 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 현재 설명, 주제 및 웹사이트 URL을 사용하여 저장소를 생성할 수 있습니다.
특징
Related MCP server: GitHub MCP Bridge
설치
저장소를 복제합니다
종속성 설치:
지엑스피1
서버를 빌드하세요:
구성
서버에는 저장소 생성 권한이 있는 GitHub 개인 액세스 토큰이 필요합니다. MCP 설정 파일에 다음을 추가하세요.
{
"mcpServers": {
"github": {
"command": "node",
"args": ["path/to/github-server/build/index.js"],
"env": {
"GITHUB_TOKEN": "your-github-token"
}
}
}
}
사용 가능한 도구
리포지토리 생성
자연어 명령을 사용하여 GitHub 저장소를 만들거나 업데이트합니다.
명령 형식
이 도구는 다양한 작업에 대한 자연어 명령을 허용합니다.
저장소 생성:
Create a repository for [description] with tags [tag1 tag2 tag3] website [url]
또는
Make a new repository called [description] tagged with [tag1, tag2, tag3]
저장소 설명 업데이트:
Update [owner/repo] description to [new description]
또는
Change [repo-name] description as [new description]
저장소 태그 업데이트:
Update [owner/repo] tags to [tag1 tag2 tag3]
또는
Set [repo-name] topics as [tag1, tag2, tag3]
저장소 웹사이트 업데이트:
Update [owner/repo] website to [url]
또는
Set [repo-name] homepage as [url]
사용 예
새로운 저장소 만들기:
const result = await use_mcp_tool({
server_name: "github",
tool_name: "create_repo",
arguments: {
command: "Create a repository for my machine learning image classifier with tags python tensorflow computer-vision website https://example.com/docs"
}
});
이렇게 하면:
"my-machine-learning-image-classifier"라는 이름의 저장소를 만듭니다.
설명을 "내 머신 러닝 이미지 분류기"로 설정하세요.
저장소 주제로 "python", "tensorflow" 및 "computer-vision"을 추가합니다.
웹사이트를 " https://example.com/docs "로 설정하세요
README 파일로 초기화
저장소 설명 업데이트:
const result = await use_mcp_tool({
server_name: "github",
tool_name: "create_repo",
arguments: {
command: "Update username/existing-repo description to Updated ML project for image classification"
}
});
저장소 태그 업데이트:
const result = await use_mcp_tool({
server_name: "github",
tool_name: "create_repo",
arguments: {
command: "Update username/existing-repo tags to machine-learning python updated"
}
});
저장소 웹사이트 업데이트:
const result = await use_mcp_tool({
server_name: "github",
tool_name: "create_repo",
arguments: {
command: "Update username/existing-repo website to https://example.com/new-docs"
}
});
이 도구는 다양한 자연어 패턴과 키워드를 이해합니다.
저장소 생성을 위한 Create/make/new
저장소 업데이트를 위한 업데이트/변경/설정/수정
설명 업데이트를 위한 "description to/as"
태그 업데이트를 위한 "태그/주제"
웹사이트 업데이트를 위한 "웹사이트/홈페이지/url to/as"
개발
서버를 수정하거나 확장하려면:
src/index.ts 를 변경하세요
서버를 다시 빌드하세요:
특허
MIT