Logo de GitHub Pages Documentation

GitHub Pages Documentation

Communauté
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.

Éditeurtosin2013
Dépôtdocumcp
LangueTypeScript
Forks
3
Étoiles
10
Outils disponibles
51
Type de transportstdio
Catégories
LicenceMIT
Liens
  • Connectez des outils à vos workflows IA

    GitHub Pages Documentation propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 51 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    10 étoiles et 3 forks sur le dépôt associé.

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

Installation

TypingMind
Prérequis :

Node.js 18+

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

Outils disponibles

  • 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.

Utilisez le serveur MCP GitHub Pages Documentation avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois GitHub Pages Documentation connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez GitHub Pages Documentation en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP GitHub Pages Documentation.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "github-pages-documentation": {
      "command": "npx",
      "args": [
        "-y",
        "documcp"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de GitHub Pages Documentation, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de GitHub Pages Documentation.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser GitHub Pages Documentation pour m’aider dans cette tâche ?
GitHub Pages Documentation
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec GitHub Pages Documentation.

Foire aux questions

À quoi sert le serveur MCP GitHub Pages Documentation ?

GitHub Pages Documentation est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP GitHub Pages Documentation avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser GitHub Pages Documentation avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP GitHub Pages Documentation avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois GitHub Pages Documentation connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP GitHub Pages Documentation à TypingMind ?

GitHub Pages Documentation fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP GitHub Pages Documentation propose-t-il dans TypingMind ?

GitHub Pages Documentation propose 51 outils MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP GitHub Pages Documentation ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si GitHub Pages Documentation nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇