GitHub MCP Server

Integrations

  • Provides tools for interacting with GitHub's API, enabling repository creation, pushing content to repositories, and retrieving user information.

GitHub MCP 서버

GitHub 통합을 위한 모델 컨텍스트 프로토콜(MCP) 서버 구현입니다. 이 서버는 MCP 프로토콜을 통해 GitHub API와 상호 작용할 수 있는 도구를 제공합니다.

특징

  • GitHub 저장소 만들기
  • 콘텐츠를 저장소에 푸시합니다
  • 사용자 정보 가져오기
  • 적절한 오류 처리 및 TypeScript 유형 안전성
  • 자동 설치 스크립트

필수 조건

  • Node.js(v18 이상)
  • npm(v8 이상)
  • PowerShell(Windows 설치용)
  • 리포지토리 범위가 있는 GitHub 개인 액세스 토큰

설치

윈도우

  1. 이 저장소를 복제하세요:

지엑스피1

  1. 설치 스크립트를 실행합니다.
.\install.ps1

스크립트는 다음을 수행합니다.

  • 필요한 디렉토리를 생성하세요
  • 종속성 설치
  • TypeScript 코드 작성
  • MCP 설정 구성

수동 설치

  1. MCP 디렉토리를 만듭니다.
mkdir -p "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. 이 저장소를 해당 디렉토리에 복제합니다.
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. 종속성 설치:
cd "$env:APPDATA\Roo-Code\MCP\github-mcp" npm install
  1. TypeScript 코드를 작성합니다.
npm run build
  1. %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json 에 있는 MCP 설정 파일에 서버 구성을 추가하세요.
{ "mcpServers": { "github": { "command": "node", "args": [ "%APPDATA%\Roo-Code\MCP\github-mcp\build\index.js" ], "env": { "GITHUB_TOKEN": "your-github-token-here" }, "disabled": false, "alwaysAllow": [] } } }

사용 가능한 도구

사용자 가져오기

GitHub 사용자 정보를 가져옵니다.

{ "username": "octocat" }

리포지토리 생성

새로운 GitHub 저장소를 만듭니다.

{ "repo_name": "my-new-repo", "description": "A new repository", "private": false }

리포지토리로 푸시

GitHub 저장소에 콘텐츠를 푸시합니다.

{ "repo_name": "my-repo", "file_path": "docs/README.md", "content": "# My Project\nThis is a test file.", "message": "Add README file" }

개발

  1. 저장소를 복제합니다
  2. 종속성 설치: npm install
  3. src/index.ts 를 변경하세요
  4. 빌드: npm run build
  5. 변경 사항을 테스트하세요

기여하다

  1. 저장소를 포크하세요
  2. 기능 브랜치 생성
  3. 변경 사항을 커밋하세요
  4. 지점으로 밀어 넣기
  5. 풀 리퀘스트 만들기

특허

MIT

-
security - not tested
F
license - not found
-
quality - not tested

MCP 프로토콜을 통해 GitHub의 API와 상호 작용할 수 있는 도구를 제공하여 사용자가 저장소를 만들고, 콘텐츠를 푸시하고, 사용자 정보를 검색할 수 있도록 합니다.

  1. Features
    1. Prerequisites
      1. Installation
        1. Windows
        2. Manual Installation
      2. Available Tools
        1. get_user
        2. create_repo
        3. push_to_repo
      3. Development
        1. Contributing
          1. License
            ID: 0fmo8dc0be