PD

probelabs/docs-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

92 stars 20 forks 质量 67 趋势 0MIT

probelabs/docs-mcp 是从 https://github.com/probelabs/docs-mcp. 导入的 MCP 服务器候选

概览

probelabs/docs-mcp 是从 https://github.com/probelabs/docs-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一款由Probe驱动的灵活模型上下文协议(MCP)服务器,使任何文档或代码库都能被AI助手搜索。

只需指向一个 git 仓库或文件夹,就可以和代码或文档聊天:

使用场景:

  • 与任何GitHub仓库聊天: 将服务器指向公共或私有的Git仓库,以便对其内容进行自然语言查询。
  • 搜索您的文档: 整合项目文档(来自本地目录或 Git),方便检索。
  • 构建自定义MCP服务器: 将本项目作为模板,创建针对特定文档集甚至代码库定制的官方MCP服务器。

内容源(文档或代码)可以在npm run build步骤中预先内置,或者在运行时通过本地目录或Git仓库动态配置。默认情况下,当使用gitUrl且未启用自动更新时,服务器会下载.tar.gz归档以加快启动速度。只有当autoUpdateInterval大于0时才使用完整Git克隆。

特色

  • 由Probe驱动: 利用Probe搜索引擎获得高效且相关的结果。

本页由 AI 翻译,技术细节请以原文为准。

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)

在 GitHub 查看完整 README

安装

npx -y @probelabs/docs-mcp@latest --gitUrl https://github.com/your-org/your-repo --toolName search_docs --toolDescription Search documentation
新手?先看 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" ] } } }