PC

pipe-cd/docs-mcp-server

开发工具

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

7 stars 5 forks 质量 78 趋势 23Apache-2.0

A local MCP server for searching official PipeCD docs.

概览

A local MCP server for searching official PipeCD docs. This server clones the official PipeCD docs from GitHub and provides simple full-text search and document retrieval APIs via the MCP protocol. Documentation is cloned into a temporary directory, and Markdown files are indexed by extracting their titles and content. 1. Create a PAT with read:packages scope. Details 2. Add the following config to your .npmrc file. For Cursor users, you can install the MCP server with a single click using the deeplink below: This will automatically configure the MCP server in your Cursor settings. After clicking the link, Cursor will prompt you to install the server. Add the following config to your mcp.json. Executes a full-text search on PipeCD docs.

README

以下为原文 README 节选,完整内容请查看原文。

PipeCD Docs MCP Server

A local MCP server for searching official PipeCD docs.

Overview

This server clones the official PipeCD docs from GitHub and provides simple full-text search and document retrieval APIs via the MCP protocol.
Documentation is cloned into a temporary directory, and Markdown files are indexed by extracting their titles and content.

Usage

Prerequisites

  1. Create a PAT with read:packages scope. Details

  2. Add the following config to your .npmrc file.

@pipe-cd:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_TOKEN

Cursor

For Cursor users, you can install the MCP server with a single click using the deeplink below:

This will automatically configure the MCP server in your Cursor settings. After clicking the link, Cursor will prompt you to install the server.

Install Using npx

Add the following config to your mcp.json.

{
  "mcpServers": {
    "pipe-cd.docs-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@pipe-cd/docs-mcp-server@latest"
      ], 
    }
  }
}

Tools

search_docs

Executes a full-text search on PipeCD docs.

  • Parameters:
    • query: Search keywords (space-separated, AND search)
    • offset: Start position for results
    • limit: Number of results to return (default: 20)

read_docs

Returns the content of the specified page.

  • Parameters:
    • path: Relative path of the document (after “docs/content/en/”)

Implementation Notes

  • Uses sparse-checkout to minimize clone size and speed up the process.
  • Titles are extracted from the Markdown front matter.
  • The search logic of search_docs is so simple for now.

Contributing

Code of Conduct

PipeCD follows the CNCF Code of Conduct. Please read it to understand which actions are acceptable and which are not.

Get Involved

  • Slack: #pipecd channel on CNCF Slack for discussions related to PipeCD development.
  • Community Meeting: Every other Wednesdays. Search here.

Improvements

  • Bug:
    • Please open an Issue and describe the problem. Or, open a PR with if it’s easy one.
  • Enhancement / Feature Request:
    • For small changes including docs or adding tests, please open a PR.
在 GitHub 查看完整 README

安装

npx @pipe-cd/docs-mcp-server@latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "pipe-cd.docs-mcp-server": { "type": "stdio", "command": "npx", "args": [ "@pipe-cd/docs-mcp-server@latest" ], } } }