Socket
Book a DemoInstallSign in
Socket

documcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

documcp

Intelligent MCP server for GitHub Pages documentation deployment

0.2.4
latest
Source
npmnpm
Version published
Weekly downloads
20
-90.78%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

mcp

FAQs

Package last updated on 24 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.