Skip to main content
Glama
GitHub Mapper MCP Server

GitHub Mapper MCP Server

by dazeb

GitHub Mapper MCP-сервер

значок кузнеца

GitHub Mapper — это сервер Model Context Protocol (MCP), который предоставляет инструменты для сопоставления и анализа репозиториев GitHub. Он позволяет пользователям устанавливать токен персонального доступа GitHub и получать подробную информацию об указанном репозитории, включая его структуру и сводную статистику.

Функции

  • Установите GitHub Personal Access Token для аутентификации

  • Сопоставьте и проанализируйте структуру репозитория GitHub

  • Получить сводную информацию о репозитории (звезды, ветки, язык и т. д.)

  • Предоставьте подробную структуру файла репозитория

Related MCP server: GitHub MCP Server

Предпосылки

  • Node.js (рекомендуется версия 18.0.0 или более поздняя)

  • npm (входит в состав Node.js)

  • Персональный токен доступа GitHub с соответствующими разрешениями

Установка

Установка через Smithery

Чтобы автоматически установить GitHub Mapper для Claude Desktop через Smithery :

npx -y @smithery/cli install github-mapper-mcp-server --client claude

Ручная установка

  1. Клонируйте репозиторий:

    git clone https://github.com/your-username/github-mapper-mcp-server.git
    cd github-mapper-mcp-server
  2. Установить зависимости:

    npm install
  3. Создайте проект:

    npm run build

Использование

  1. Запустите сервер:

    npm start
  2. Сервер будет работать на stdio, что позволит ему взаимодействовать с клиентами MCP.

Доступные инструменты

1. set-github-token

Устанавливает персональный токен доступа GitHub для аутентификации.

  • Создайте свой персональный токен доступа здесь . Выберите токены (классические). Области действия: repo изображение

Пример в вашей IDE или Claude Desktop:

Please set-github-token to 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

2. map-github-repo

Отображает структуру репозитория GitHub и предоставляет сводную информацию.

Пример:

Please map-github-repo https://github.com/dazeb/MCP-Github-Mapper

Ручная установка в Cline или Roo-Cline MCP Client:

{
  "mcpServers": {
    "github-mapper": {
      "command": "node",
      "args": ["/home/user/Documents/Cline/MCP/github-mapper/build/index.js"]
    }
  }
}

Пример вывода

Repository Analysis Summary:

Name: Hello-World
Description: My first repository on GitHub!
Stars: 1234
Forks: 567
Primary Language: JavaScript
Created: 2023-01-01
Last Updated: 2023-06-15

Repository Structure:

{
  "src": {
    "components": {
      "Header.js": null,
      "Footer.js": null
    },
    "pages": {
      "index.js": null,
      "about.js": null
    },
    "styles": {
      "global.css": null
    }
  },
  "public": {
    "images": {
      "logo.png": null
    },
    "favicon.ico": null
  },
  "package.json": null,
  "README.md": null
}

Изображения

изображение

Запуск оценок

Пакет evals загружает клиент mcp, который затем запускает файл index.ts, поэтому нет необходимости перестраиваться между тестами. Вы можете загрузить переменные среды, указав префикс команды npx. Полную документацию можно найти здесь .

OPENAI_API_KEY=your-key  npx mcp-eval src/evals/evals.ts src/index.ts

Обработка ошибок

  • Если токен GitHub не установлен, вы получите сообщение об ошибке с предложением сначала использовать инструмент set-github-token .

  • Неверные URL-адреса GitHub или пути к репозиториям приведут к появлению соответствующих сообщений об ошибках.

Внося вклад

Вклады приветствуются! Пожалуйста, не стесняйтесь отправлять запрос на включение.

Лицензия

Данный проект лицензирован по лицензии MIT.

Available Tools

2 tools
map-github-repoC

Map a GitHub repository structure and provide summary information

Inputs: repoUrl (required).

set-github-tokenC

Set the GitHub Personal Access Token for authentication

Inputs: token (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have completely distinct purposes: one maps repository structures, while the other handles authentication. There is no overlap or ambiguity between them, making it easy for an agent to select the correct tool based on the task.

    Naming Consistency3/5

    The tools use a mixed naming convention: 'map-github-repo' follows a verb-noun pattern with hyphens, while 'set-github-token' uses a verb-noun pattern but with a different structure. This inconsistency in style (hyphenated vs. standard verb_noun) reduces predictability, though both are readable.

    Tool Count2/5

    With only 2 tools, the server feels thin for a GitHub-related domain, which typically involves operations like creating, updating, or deleting repositories, issues, or pull requests. The limited scope may hinder comprehensive agent workflows, as core functionalities are missing.

    Completeness2/5

    The server covers authentication and repository mapping but lacks essential GitHub operations such as CRUD for repositories, issues, or pull requests. This creates significant gaps that will likely cause agent failures when attempting common tasks like creating an issue or fetching repository details beyond structure.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to analyze GitHub repository structures and read file contents with features like directory traversal, file type analysis, syntax highlighting, and code pattern detection. Supports both public and private repositories through GitHub API integration.
      8 npm
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables access to GitHub repositories and data through the GitHub API. Supports retrieving repositories, issues, pull requests, and searching code across GitHub with authentication via personal access tokens.
      -