PD

probelabs/docs-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

92 stars 20 forks Качество 67 Тренд 15MIT

probelabs/docs-mcp - кандидат на сервер MCP, импортированный из https://github.com/probelabs/docs-mcp.

Обзор

probelabs/docs-mcp - кандидат на сервер MCP, импортированный из https://github.com/probelabs/docs-mcp.

Обзор (машинный перевод)

Гибкий сервер Model Context Protocol (MCP), работающий на Probe, который делает любую документацию или кодовую базу доступной для поиска помощниками ИИ.

Пообщайтесь с кодом или документами, просто указав на git repo или папку:

**Использовать: **

*Общайтесь с любым репозиторием GitHub: Отправьте сервер в публичное или частное хранилище Git, чтобы включить запросы на естественном языке о его содержимом. **Поищите документы: ** Интегрируйте документацию вашего проекта (из локального каталога или Git) для простого поиска. ** Создание пользовательских MCP-серверов: ** Используйте этот проект в качестве шаблона для создания собственных официальных серверов MCP, адаптированных к конкретным наборам документации или даже кодовым базам.

Источник контента (документация или код) может быть ** предварительно встроен** в пакет на этапе npm run build или настроен ** динамически** во время выполнения с использованием локальных каталогов или репозиториев Git. По умолчанию при использовании gitUrl без возможности автоматического обновления сервер загружает архив .tar.gz для более быстрого запуска. Полный Клонирование используется только тогда, когда [Т3] больше 0.

Особенности

**Используется поисковой системой Probe для эффективных и релевантных результатов.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Docs MCP Server

A flexible Model Context Protocol (MCP) server powered by Probe that makes any documentation or codebase searchable by AI assistants.

Chat with code or your docs by simply pointing to a git repo or folder:

npx -y @probelabs/docs-mcp@latest --gitUrl https://github.com/probelabs/probe

Use Cases:

  • Chat with any GitHub Repository: Point the server to a public or private Git repository to enable natural language queries about its contents.
  • Search Your Documentation: Integrate your project’s documentation (from a local directory or Git) for easy searching.
  • Build Custom MCP Servers: Use this project as a template to create your own official MCP servers tailored to specific documentation sets or even codebases.

The content source (documentation or code) can be pre-built into the package during the npm run build step, or configured dynamically at runtime using local directories or Git repositories. By default, when using a gitUrl without enabling auto-updates, the server downloads a .tar.gz archive for faster startup. Full Git cloning is used only when autoUpdateInterval is greater than 0.

Features

  • Powered by Probe: Leverages the Probe search engine for efficient and relevant results.
  • Flexible Content Sources: Include a specific local directory or clone a Git repository.
  • Pre-build Content: Optionally bundle documentation/code content directly into the package.
  • Dynamic Configuration: Configure content sources, Git settings, and MCP tool details via config file, CLI arguments, or environment variables.
  • Automatic Git Updates: Keep content fresh by automatically pulling changes from a Git repository at a configurable interval.
  • Customizable MCP Tool: Define the name and description of the search tool exposed to AI assistants.
  • AI Integration: Seamlessly integrates with AI assistants supporting the Model Context Protocol (MCP).

Installation

Quick Start with Claude Desktop

Add to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "docs-search": {
      "command": "npx",
      "args": [
        "-y",
        "@probelabs/docs-mcp@latest",
        "--gitUrl",
        "https://github.com/your-org/your-repo",
        "--toolName",
        "search_docs",
        "--toolDescription",
        "Search documentation"
      ]
    }
  }
}

MCP Client Integration

You can configure your MCP client to launch this server using npx. Here are examples of how you might configure a client (syntax may vary based on the specific client):

Example 1: Dynamically Searching a Git Repository (Tyk Docs)

Открыть полный README на GitHub

Установка

npx -y @probelabs/docs-mcp@latest --gitUrl https://github.com/your-org/your-repo --toolName search_docs --toolDescription Search documentation
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "docs-search": { "command": "npx", "args": [ "-y", "@probelabs/docs-mcp@latest", "--gitUrl", "https://github.com/your-org/your-repo", "--toolName", "search_docs", "--toolDescription", "Search documentation" ] } } }