Skip to main content
Glama
@kazuph/mcp-github-pera1

@kazuph/mcp-github-pera1

by kazuph

Pera1 用 GitHub MCP サーバー

GitHubコードをClaude.aiに接続するモデルコンテキストプロトコルサーバー。このサーバーはPera1サービスを利用してGitHubリポジトリからコードを抽出し、Claudeに適切なコンテキストを提供します。

設定

MCP 構成ファイル ( ~/Library/Application Support/Claude/claude_desktop_config.json ) に次の内容を追加します。

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@kazuph/mcp-github-pera1"]
    }
  }
}

これで、Claude に GitHub コード リポジトリについて質問できるようになりました。

パラメータ

  • url : GitHubリポジトリのURL(必須)

  • dir : ディレクトリパス(カンマ区切り)でファイルをフィルタリングする

  • ext : 拡張子でファイルをフィルタリングする(カンマ区切り)

  • mode : 表示モード (例: treeディレクトリ構造と README ファイルのみを表示します)

  • branch : 取得するブランチを指定する

  • file : 取得するファイルを1つ指定する

使用例

クロードに次のような質問をすることができます:

Tell me about the implementation of GitHub repository https://github.com/username/repository

特定のディレクトリの場合:

Explain the components in https://github.com/username/repository?dir=src/components

特定のファイルの場合:

Show me the Button component from https://github.com/username/repository?file=src/components/Button.tsx

README ファイルのみを含むディレクトリ構造の場合:

Show me the structure of https://github.com/username/repository?mode=tree

特定のブランチの場合:

Analyze the develop branch of https://github.com/username/repository?branch=develop

ライセンス

マサチューセッツ工科大学

著者

カズフ( https://x.com/kazuph )

Available Tools

1 tool
github_get_codeA

Retrieves code from a GitHub repository URL and combines it into a single file. The URL must start with "https://".

Query Parameters:

  • dir: Filter files by directory paths (comma-separated) Example: ?dir=src/components,tests/unit

  • ext: Filter files by extensions (comma-separated) Example: ?ext=ts,tsx,js

  • mode: Display mode Example: ?mode=tree (Shows directory structure and README files only)

  • branch: Specify the branch to fetch from (optional) Example: ?branch=feature/new-feature

  • file: Specify a single file to retrieve (optional) Example: ?file=src/components/Button.tsx

Examples:

  1. For GitHub tree URLs with branch: https://github.com/kazuph/pera1/tree/feature/great-branch This URL will be automatically parsed to extract the branch information.

  2. For specific directory in a branch: url: https://github.com/modelcontextprotocol/servers dir: src/fetch branch: develop

  3. For a single file: url: https://github.com/username/repository file: src/components/Button.tsx

  4. For directory structure with README files only: url: https://github.com/username/repository mode: tree

The tool will correctly parse the repository structure and fetch the files from the specified branch.

Inputs: url (required), dir, ext, mode, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no risk of confusion between tools.

    Naming Consistency5/5

    The single tool follows a consistent verb_noun pattern (github_get_code).

    Tool Count2/5

    A single tool for code retrieval is very minimal; users might expect additional GitHub operations, making the server feel incomplete.

    Completeness4/5

    For the stated purpose of retrieving code from a GitHub repository, the tool covers key needs with filtering by directory, extension, branch, and single file, as well as a tree mode. Minor gap: no support for private repos or authentication details in the description.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A Model Context Protocol server that provides comprehensive GitHub integration for Claude Desktop, allowing users to manage repositories, issues, and pull requests. It supports file operations, branch management, and repository searches through natural language commands.
      330 npm
      -