GitHub Pages Documentation 标志

GitHub Pages Documentation

社区
tosin2013

DocuMCP is an intelligent Model Context Protocol (MCP) server that revolutionizes documentation deployment for open-source projects. It provides deep repository analysis, intelligent static site generator recommendations, and automated GitHub Pages deployment workflows.

发布者tosin2013
代码仓库documcp
语言TypeScript
复刻数
3
星标数
10
可用工具
51
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    GitHub Pages Documentation 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 51 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 10 个 Star 和 3 个 Fork。

DocuMCP - Intelligent Documentation Deployment MCP Server

CI CodeQL Coverage npm version Ask DeepWiki

DocuMCP is an intelligent Model Context Protocol (MCP) server that revolutionizes documentation deployment for open-source projects. It provides deep repository analysis, intelligent static site generator recommendations, and automated GitHub Pages deployment workflows.

TL;DR

DocuMCP analyzes your repository, recommends the perfect static site generator (Jekyll, Hugo, Docusaurus, MkDocs, or Eleventy), creates professional documentation structure following Diataxis principles, and deploys it automatically to GitHub Pages. Just say "analyze my repository and deploy documentation" to get started.

Features

Core Capabilities

  • 🔍 Repository Analysis: Deep multi-layered analysis of project structure, dependencies, and documentation needs
  • 🎯 SSG Recommendations: Data-driven recommendations for Jekyll, Hugo, Docusaurus, MkDocs, or Eleventy
  • 📚 Diataxis Framework: Automatic creation of well-structured documentation following proven principles
  • 🚀 GitHub Pages Deployment: Automated workflow generation with SSG-specific optimizations
  • ✅ Deployment Verification: Comprehensive checks and troubleshooting for successful deployments

Intelligence & Learning (Phase 2)

  • 🧠 Historical Intelligence: Learns from past deployments to improve recommendations
  • 👤 User Preferences: Personalized recommendations based on your preferences and patterns
  • 📊 Deployment Analytics: Comprehensive insights into deployment patterns and success rates
  • 🎯 Smart Scoring: Intelligent SSG scoring based on success rates from similar projects
  • 📈 Trend Analysis: Identifies deployment trends and provides health scores

Documentation Maintenance (v0.5.2+)

  • 📅 Freshness Tracking: Monitor documentation staleness with configurable thresholds
  • ✅ Freshness Validation: Initialize and update freshness metadata automatically
  • 🗺️ Sitemap Management: Generate, validate, and manage sitemap.xml for SEO
  • 🔗 Knowledge Graph Integration: Track freshness history for intelligent recommendations

AI-Powered Semantic Analysis (v0.6.0+)

  • 🤖 LLM Integration: Optional integration with DeepSeek, OpenAI, Anthropic, or Ollama
  • 🔍 Semantic Code Analysis: Detect behavioral changes beyond syntax using AI
  • 🧪 Example Validation: Simulate code execution to verify documentation examples
  • 🎯 Intelligent Fallback: Graceful degradation to AST-only analysis when LLM unavailable
  • 🔒 Privacy First: Works fully offline with AST analysis, LLM completely optional

Requirements

  • Node.js: 20.0.0 or higher
  • npm: Latest stable version

Installation

Option A — npm global install (recommended):

bash
npm install -g documcp

Option B — build from source (contributors / local dev):

bash
git clone https://github.com/tosin2013/documcp.git
cd documcp
npm install
npm run build

MCP Client Setup

DocuMCP works with any MCP-enabled AI client. Pick the one you use:

Claude Desktop

File location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json
json
{
  "mcpServers": {
    "documcp": {
      "command": "npx",
      "args": ["documcp"]
    }
  }
}

Restart Claude Desktop to load the configuration.

Claude Code (CLI)

bash
# npm global install
claude mcp add documcp -- npx documcp

# local build (replace path as needed)
claude mcp add documcp -- node /path/to/documcp/dist/index.js

Verify with claude mcp list — no restart required.

Cursor

File location: ~/.cursor/mcp.json (or Settings > MCP in the UI)

json
{
  "mcpServers": {
    "documcp": {
      "command": "npx",
      "args": ["documcp"]
    }
  }
}

VS Code (GitHub Copilot)

Add to settings.json (Cmd/Ctrl + Shift + P → Preferences: Open User Settings (JSON)):

json
{
  "mcp.servers": {
    "documcp": {
      "command": "npx",
      "args": ["documcp"]
    }
  }
}

Troubleshooting

  • Ensure npx is available in your PATH
  • To find a global install path: npm list -g documcp
  • To use the full path instead of npx:
    json
    {
      "command": "node",
      "args": ["/usr/local/lib/node_modules/documcp/dist/index.js"]
    }

Quick Start

Once connected to your AI client, use natural language prompts:

Analyze my repository at /path/to/my-project
Recommend a static site generator based on my analysis
Set up a Diataxis documentation structure using Docusaurus
Deploy my documentation to GitHub Pages

DocuMCP provides 30+ tools including repository analysis, intelligent SSG recommendations, content generation, deployment automation with tracking, validation, user preference management, deployment analytics, and memory-enhanced insights. See the complete documentation for detailed tool reference.

Key Tools

Analysis & Recommendations

  • analyze_repository - Deep repository structure and dependency analysis
  • recommend_ssg - Intelligent SSG recommendations with historical data and user preferences
  • detect_gaps - Identify missing documentation sections

Deployment & Tracking

  • deploy_site - Automated deployment to GitHub Pages or Vercel with outcome tracking (deploy_pages still works as a back-compat alias)
  • verify_deployment - Comprehensive deployment validation
  • analyze_deployments - Analytics and insights from deployment history

User Preferences & Learning

  • manage_preferences - Manage user preferences for personalized recommendations
  • View historical success rates and deployment patterns
  • Get recommendations based on similar projects' success

Development

bash
# Run in development mode
npm run dev

# Run tests
npm test

# Lint code
npm run lint

# Type check
npm run typecheck

Architecture

DocuMCP follows a modular, stateless architecture:

  • TypeScript-based implementation using the official MCP SDK
  • Stateless operation for consistency and reliability
  • Modular design with clear separation of concerns
  • Progressive complexity allowing users to start simple

Documentation Structure (Diataxis)

DocuMCP automatically creates documentation following the Diataxis framework:

  • Tutorials: Learning-oriented guides for newcomers
  • How-To Guides: Task-oriented recipes for specific goals
  • Reference: Information-oriented technical descriptions
  • Explanation: Understanding-oriented conceptual discussions

Contributing

We welcome contributions! Please see our Contributing Guide for details.

First Time Contributors

Look for issues labeled "good first issue" to get started with the project. We welcome contributions from developers of all experience levels.

Reporting Issues

Please use our issue templates when reporting bugs or requesting features.

Code of Conduct

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code.

Security

Please see our Security Policy for reporting vulnerabilities and security-related issues.

License

MIT License - see LICENSE for details.

Acknowledgments

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "documcp": {
      "command": "npx",
      "args": [
        "documcp"
      ]
    }
  }
}

可用工具

  • analyze_repository

    Analyze repository structure, dependencies, and documentation needs

  • recommend_ssg

    Recommend the best static site generator based on project analysis and user preferences

  • generate_config

    Generate configuration files for the selected static site generator

  • setup_structure

    Create Diataxis-compliant documentation structure

  • deploy_pages

    Set up GitHub Pages deployment workflow with deployment tracking and preference learning

  • verify_deployment

    Verify and troubleshoot GitHub Pages deployment

  • populate_diataxis_content

    Intelligently populate Diataxis documentation with project-specific content

  • update_existing_documentation

    Intelligently analyze and update existing documentation using memory insights and code comparison

  • validate_diataxis_content

    Validate the accuracy, completeness, and compliance of generated Diataxis documentation

  • validate_content

    Validate general content quality: broken links, code syntax, references, and basic accuracy

  • detect_documentation_gaps

    Analyze repository and existing documentation to identify missing content and gaps

  • test_local_deployment

    Test documentation build and local server before deploying to GitHub Pages

  • evaluate_readme_health

    Evaluate README files for community health, accessibility, and onboarding effectiveness

  • readme_best_practices

    Analyze README files against best practices checklist and generate templates for improvement

  • check_documentation_links

    Comprehensive link checking for documentation deployment with external, internal, and anchor link validation

  • generate_readme_template

    Generate standardized README templates for different project types with best practices

  • validate_readme_checklist

    Validate README files against community best practices checklist with detailed scoring

  • analyze_readme

    Comprehensive README analysis with length assessment, structure evaluation, and optimization opportunities

  • optimize_readme

    Optimize README content by restructuring, condensing, and extracting detailed sections to separate documentation

  • memory_recall

    Recall memories about a project or topic

  • memory_intelligent_analysis

    Get intelligent analysis with patterns, predictions, and recommendations

  • memory_enhanced_recommendation

    Get enhanced recommendations using learning and knowledge graph

  • memory_learning_stats

    Get comprehensive learning and knowledge graph statistics

  • memory_knowledge_graph

    Query the knowledge graph for relationships and paths

  • memory_contextual_search

    Perform contextual memory retrieval with intelligent ranking

  • memory_agent_network

    Manage multi-agent memory sharing and collaboration

  • memory_insights

    Get insights and patterns from memory

  • memory_similar

    Find similar projects from memory

  • memory_export

    Export memories to JSON or CSV

  • memory_cleanup

    Clean up old memories

  • memory_pruning

    Intelligent memory pruning and optimization

  • memory_temporal_analysis

    Analyze temporal patterns and trends in memory data

  • memory_visualization

    Generate visual representations of memory data

  • memory_export_advanced

    Advanced memory export with multiple formats and options

  • memory_import_advanced

    Advanced memory import with validation and conflict resolution

  • memory_migration

    Create and execute migration plans between different memory systems

  • memory_optimization_metrics

    Get comprehensive optimization metrics and recommendations

  • setup_playwright_tests

    Generate Playwright E2E test setup for documentation site (containers + CI/CD)

  • manage_preferences

    Manage user preferences for documentation generation and SSG recommendations

  • analyze_deployments

    Analyze deployment patterns and generate insights from historical deployment data

  • read_directory

    List files and directories within allowed roots. Use this to discover files without requiring full absolute paths from the user.

  • sync_code_to_docs

    Automatically synchronize documentation with code changes using AST-based drift detection (Phase 3)

  • change_watcher

    Watch code changes and trigger documentation drift detection in near real-time.

  • generate_contextual_content

    Generate context-aware documentation using AST analysis and knowledge graph insights (Phase 3)

  • simulate_execution

    Simulate code execution using LLM to trace execution paths without running the code. Validates documentation examples by predicting behavior, detecting potential issues (null references, type mismatches, unreachable code), and comparing against expected results. Supports building call graphs for complex execution path analysis.

  • batch_simulate_execution

    Simulate execution of multiple code examples in batch. Useful for validating all examples in a documentation file at once.

  • track_documentation_freshness

    Scan documentation directory for staleness markers and identify files needing updates based on configurable time thresholds (minutes, hours, days)

  • validate_documentation_freshness

    Validate documentation freshness, initialize metadata for files without it, and update timestamps based on code changes

  • manage_sitemap

    Generate, validate, and manage sitemap.xml as the source of truth for documentation links. Sitemap.xml is used for SEO, search engine submission, and deployment tracking.

  • generate_llm_context

    Generate a comprehensive LLM context reference file documenting all tools, memory system, and workflows for easy @ reference

  • cleanup_agent_artifacts

    Detect, classify, and clean up artifacts generated by AI coding agents (e.g., TODO.md, PLAN.md, agent markers, temporary files). Supports scan, clean, and archive operations with configurable patterns.

将 GitHub Pages Documentation MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 GitHub Pages Documentation 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 GitHub Pages Documentation 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 GitHub Pages Documentation MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "github-pages-documentation": {
      "command": "npx",
      "args": [
        "-y",
        "documcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 GitHub Pages Documentation MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 GitHub Pages Documentation MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 GitHub Pages Documentation 帮我完成这项任务吗?
GitHub Pages Documentation
当然。我已阅读。
以下是我使用 GitHub Pages Documentation 得到的结果。

常见问题

GitHub Pages Documentation MCP 服务器有什么用途?

GitHub Pages Documentation 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 GitHub Pages Documentation MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 GitHub Pages Documentation,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 GitHub Pages Documentation MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 GitHub Pages Documentation 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 GitHub Pages Documentation MCP 连接到 TypingMind?

GitHub Pages Documentation 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

GitHub Pages Documentation MCP 在 TypingMind 中提供哪些工具?

GitHub Pages Documentation 提供 51 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 GitHub Pages Documentation MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 GitHub Pages Documentation 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇