Skip to main content
Glama

DocGen MCP 服务器

文档生成器 MCP 服务器用于从源文件自动创建文档。

概述

DocGen MCP 服务器通过从源文件中提取信息并应用模板来自动创建标准化文档。它与其他 MCP 服务器(Google Drive、GitHub、Perplexity)无缝集成,提供全面的解决方案。

Related MCP server: RAG Documentation MCP Server

特征

  • 从 GitHub 存储库和 Google Drive 文件中提取信息

  • 处理多种源类型(脚本、演示文稿、代码、参考文档)

  • 基于模板的文档生成

  • 文档历史追踪

  • 通过 Perplexity 集成实现 AI 增强内容生成

安装

先决条件

  • Node.js 16+

  • npm 或 yarn

  • 访问 Google Drive API(用于 Google Drive 源提取)

  • 访问 GitHub API(用于 GitHub 源提取)

步骤

  1. 克隆存储库:

    git clone https://github.com/rjadhav/docgen-mcp.git
    cd docgen-mcp
  2. 安装依赖项:

    npm install
  3. 构建项目:

    npm run build
  4. 添加到您的 MCP 设置文件:

对于克劳德桌面

编辑~/Library/Application Support/Claude/claude_desktop_config.json :

{
  "mcpServers": {
    "docgen-mcp": {
      "command": "node",
      "args": ["/path/to/docgen-mcp/build/index.js"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

对于 VSCode Cline

编辑 VSCode Claude Dev 扩展的 MCP 设置文件:

{
  "mcpServers": {
    "docgen-mcp": {
      "command": "node",
      "args": ["/path/to/docgen-mcp/build/index.js"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

用法

DocGen MCP 服务器公开以下工具:

创建文档

使用模板从源文件生成文档。

列表模板

列出可用的文档模板。

查看文档历史记录

查看以前生成的文档的历史记录。

模板

模板存储在templates目录中,并使用简单的标记系统来生成内容:

  • glama-ai - 替换为项目标识符

  • {{date}} - 当前日期

  • {{section:NAME}} - 替换为指定部分的生成内容

可以通过在模板目录中创建新的.template文件来添加自定义模板。

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

Available Tools

3 tools
create_documentationC

Create documentation from source files using a template

Inputs: project_id (required), sources (required), template_type (required), output_path.

list_templatesC

List available documentation templates

Inputs: category.

view_document_historyB

View history of previously generated documents

Inputs: limit, project_id.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: create_documentation generates new docs, list_templates shows available templates, and view_document_history accesses past outputs. There is no overlap or ambiguity between these functions.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (create_documentation, list_templates, view_document_history) with snake_case throughout. The naming is predictable and readable.

    Tool Count3/5

    With only 3 tools, the set feels thin for a documentation generation server. While it covers core operations, more tools might be expected for tasks like updating templates, deleting documents, or customizing generation parameters.

    Completeness3/5

    The tools cover creation, template listing, and history viewing, but there are notable gaps: no update or delete operations for documents or templates, and no way to customize generation beyond templates. This could limit agent workflows.

    Related MCP Connectors

    Related MCP Servers