Skip to main content
Glama

MCP Git Repo Browser

MCP Git リポジトリ ブラウザ (Node.js)

モデル コンテキスト プロトコル (MCP) を使用した Git リポジトリ ブラウザーの Node.js 実装。

構成

MCP 設定構成ファイルに以下を追加します。

{ "mcpServers": { "mcp-git-repo-browser": { "command": "node", "args": ["/path/to/mcp-git-repo-browser/src/index.js"] } } }

特徴

サーバーは主に 2 つのツールを提供します。

  1. git_directory_structure : リポジトリのディレクトリ構造のツリー状の表現を返します
    • 入力: リポジトリ URL
    • 出力: リポジトリ構造のASCIIツリー表現
  2. git_read_important_files : リポジトリ内の指定されたファイルの内容を読み取り、返します。
    • 入力: リポジトリのURLとファイルパスのリスト
    • 出力: ファイルパスとその内容をマッピングする辞書

実装の詳細

  • コア機能には Node.js ネイティブ モジュール (crypto、path、os) を使用します
  • 強化されたファイル操作のために fs-extra を活用
  • Gitリポジトリ操作にはsimple-gitを使用します
  • クリーンなエラー処理とリソースのクリーンアップを実装します
  • リポジトリの URL ハッシュに基づいて決定論的な一時ディレクトリを作成します。
  • 効率性を高めるために、可能な場合はクローンリポジトリを再利用します。

要件

  • Node.js 14.x 以上
  • システムにGitがインストールされている

インストール

git clone <repository-url> cd mcp-git-repo-browser npm install

使用法

サーバーを起動します。

node src/index.js

サーバーは stdio 上で実行されるため、MCP クライアントと互換性があります。

ライセンス

MIT ライセンス - 詳細についてはLICENSEファイルを参照してください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP を介して Git リポジトリを参照できる Node.js サーバー。ディレクトリ構造を表示したり、リポジトリから重要なファイルを読み取ったりするツールを提供します。

  1. 構成
    1. 特徴
      1. 実装の詳細
        1. 要件
          1. インストール
            1. 使用法
              1. ライセンス

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  MCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.
                  Last updated -
                  18
                  4
                  3
                  TypeScript
                  • Linux
                  • Apple
                • A
                  security
                  F
                  license
                  A
                  quality
                  MCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.
                  Last updated -
                  6
                  Python
                • A
                  security
                  A
                  license
                  A
                  quality
                  An MCP server for gitingest. It allows MCP clients like Claude Desktop, Cursor, Cline etc to quickly extract information about Github repositories including repository summaries, project directory structure, file contents, etc
                  Last updated -
                  3
                  8
                  Python
                  MIT License
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Node.js implementation that enables browsing Git repositories through the Model Context Protocol, providing features like displaying directory structures, reading files, searching code, comparing branches, and viewing commit history.
                  Last updated -
                  10
                  JavaScript
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/razorback16/mcp-git-repo-browser'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server