Skip to content

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.

Notifications You must be signed in to change notification settings

tosin2013/documcp

Repository files navigation

DocuMCP - Intelligent Documentation Deployment MCP Server

CI CodeQL Coverage npm version

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.

Features

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

Requirements

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

Installation

# Clone the repository
git clone https://github.com/tosin2013/documcp.git
cd documcp

# Install dependencies
npm install

# Build the project
npm run build

Usage

DocuMCP provides six core MCP tools:

1. Analyze Repository

Performs deep analysis of your project to understand its characteristics and documentation needs.

{
  "tool": "analyze_repository",
  "arguments": {
    "path": "/path/to/your/repo",
    "depth": "standard"
  }
}

2. Recommend SSG

Provides intelligent recommendations for the best static site generator based on your project.

{
  "tool": "recommend_ssg",
  "arguments": {
    "analysisId": "analysis_12345",
    "preferences": {
      "priority": "simplicity"
    }
  }
}

3. Generate Config

Creates all necessary configuration files for your chosen static site generator.

{
  "tool": "generate_config",
  "arguments": {
    "ssg": "docusaurus",
    "projectName": "My Project",
    "outputPath": "./docs"
  }
}

4. Setup Structure

Creates a Diataxis-compliant documentation structure with proper categorization.

{
  "tool": "setup_structure",
  "arguments": {
    "path": "./docs",
    "ssg": "docusaurus",
    "includeExamples": true
  }
}

5. Deploy Pages

Sets up GitHub Actions workflows for automated deployment to GitHub Pages.

{
  "tool": "deploy_pages",
  "arguments": {
    "repository": ".",
    "ssg": "docusaurus",
    "branch": "gh-pages"
  }
}

6. Verify Deployment

Checks your setup and provides troubleshooting guidance for successful deployment.

{
  "tool": "verify_deployment",
  "arguments": {
    "repository": ".",
    "url": "https://yourusername.github.io/yourproject"
  }
}

Development

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

License

MIT License - see LICENSE for details.

Acknowledgments

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published