Gitingest-MCP

Gitingest-MCPは、GitHubリポジトリから情報を迅速に抽出するためのMCPサーバーです。ユーザーは、リポジトリの概要、プロジェクトのディレクトリ構造、ファイル内容などを取得できます。このツールは、Claude DesktopやCline、CursorなどのMCPクライアントと連携して動作します。

GitHubスター

117

ユーザー評価

未評価

お気に入り

0

閲覧数

13

フォーク

23

イシュー

3

インストール方法
難易度
中級
推定所要時間
10-20
必要な環境
Node.js: 18.0.0以上
npm: 8.0.0以上
+1 more

インストール方法

インストール方法

前提条件

必要なソフトウェアとバージョンを明記してください。
Node.js: 18.0.0以上
npm: 8.0.0以上
Claude Desktop: 最新版

インストール手順

1. Smitheryを使用してインストール

bash
npx -y @smithery/cli@latest install @puravparab/gitingest-mcp --client claude --config "{}" # Claude
npx -y @smithery/cli@latest run @puravparab/gitingest-mcp --client cursor --config "{}" # Cursor

2. GitHubからインストール

1MCPクライアントの設定ファイルに以下を追加します。
json
{
  "mcpServers": {
    "gitingest-mcp": {
      "command": "/uvx",
      "args": [
        "--from",
        "git+https://github.com/puravparab/gitingest-mcp",
        "gitingest-mcp"
      ]
    }
  }
}

3. リポジトリを手動でインストール

1リポジトリをクローンします。
bash
git clone https://github.com/puravparab/Gitingest-MCP
cd Gitingest-MCP
2依存関係をインストールします。
bash
uv sync
3MCPクライアントの設定ファイルに以下を追加します。
json
{
  "mcpServers": {
    "gitingest": {
      "command": "/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with-editable",
        "/gitingest_mcp",
        "mcp",
        "run",
        "/gitingest-mcp/src/gitingest_mcp/server.py"
      ]
    }
  }
}

4. トラブルシューティング

問題が発生した場合は、[MCPサーバーのドキュメント](https://modelcontextprotocol.io/quickstart/server)を参照してください。

設定方法

設定方法

基本設定

Claude Desktop設定

~/.config/claude-desktop/claude_desktop_config.json(macOS/Linux)または %APPDATA%\Claude\claude_desktop_config.json(Windows)を編集:
json
{
  "mcpServers": {
    "gitingest-mcp": {
      "command": "/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with-editable",
        "/gitingest_mcp",
        "mcp",
        "run",
        "/gitingest-mcp/src/gitingest_mcp/server.py"
      ]
    }
  }
}

環境変数

必要に応じて以下の環境変数を設定:
bash
export API_KEY="your-api-key"
export DEBUG="true"

詳細設定

セキュリティ設定

APIキーは環境変数または安全な設定ファイルに保存
ファイルアクセス権限の適切な設定
ログレベルの調整

パフォーマンス調整

タイムアウト値の設定
同時実行数の制限
キャッシュ設定

設定例

基本的な設定

json
{
  "mcpServers": {
    "gitingest-mcp": {
      "command": "/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with-editable",
        "/gitingest_mcp",
        "mcp",
        "run",
        "/gitingest-mcp/src/gitingest_mcp/server.py"
      ]
    }
  }
}

高度な設定

json
{
  "mcpServers": {
    "gitingest-mcp": {
      "command": "python",
      "args": ["-m", "server"],
      "cwd": "/path/to/server",
      "env": {
        "PYTHONPATH": "/path/to/modules",
        "CONFIG_FILE": "/path/to/config.json"
      }
    }
  }
}

使用例

使用例

基本的な使用方法

MCPサーバーの基本的な使用方法を以下に示します:

Claude Desktopでの使用

1MCPサーバーの起動確認
Claude Desktopを開き、設定が正しく読み込まれていることを確認してください。
2基本コマンドの実行

   Available tools from this MCP server:
   - tool1: Description of tool1
   - tool2: Description of tool2
   

プログラムでの使用

javascript
// JavaScript例(Node.js)
const { MCPClient } = require('@modelcontextprotocol/client');

const client = new MCPClient();
await client.connect();

// ツールの実行
const result = await client.callTool('toolName', {
  parameter1: 'value1',
  parameter2: 'value2'
});

console.log(result);

応用例

自動化スクリプト

bash
#!/bin/bash

バッチ処理の例

for file in *.txt; do mcp-tool process "$file" done

API統合

python

Python例

import requests import json def call_mcp_tool(tool_name, params): response = requests.post( 'http://localhost:3000/mcp/call', json={ 'tool': tool_name, 'parameters': params } ) return response.json()

使用例

result = call_mcp_tool('analyze', { 'input': 'sample data', 'options': {'format': 'json'} })

使用ケース

GitHubリポジトリの概要を確認するために使用する。
プロジェクトのディレクトリ構造を視覚化するために利用する。
特定のファイルの内容を迅速に取得するために使用する。
AIツールと連携して、リポジトリ情報を自動的に解析する。
開発チーム内での情報共有のために、リポジトリの要約を生成する。