Логотип 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
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    GitHub Pages Documentation надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 51

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 10, форки: 3 — у пов’язаному репозиторії.

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.

Використовуйте MCP GitHub Pages Documentation з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення GitHub Pages Documentation ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте GitHub Pages Documentation як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP GitHub Pages Documentation.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "github-pages-documentation": {
      "command": "npx",
      "args": [
        "-y",
        "documcp"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для GitHub Pages Documentation, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для GitHub Pages Documentation.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через GitHub Pages Documentation?
GitHub Pages Documentation
Звісно. Я це прочитав.
Ось що я знайшов за допомогою GitHub Pages Documentation.

Поширені запитання

Для чого використовується сервер MCP GitHub Pages Documentation?

GitHub Pages Documentation — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP GitHub Pages Documentation з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати GitHub Pages Documentation з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP GitHub Pages Documentation із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши GitHub Pages Documentation, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP GitHub Pages Documentation до TypingMind?

GitHub Pages Documentation працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP GitHub Pages Documentation у TypingMind?

GitHub Pages Documentation надає інструменти MCP (51), які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP GitHub Pages Documentation?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо GitHub Pages Documentation потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇