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.
- 🔍 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
- Node.js: 20.0.0 or higher
- npm: Latest stable version
# Clone the repository
git clone https://github.com/tosin2013/documcp.git
cd documcp
# Install dependencies
npm install
# Build the project
npm run build
DocuMCP provides six core MCP tools:
Performs deep analysis of your project to understand its characteristics and documentation needs.
{
"tool": "analyze_repository",
"arguments": {
"path": "/path/to/your/repo",
"depth": "standard"
}
}
Provides intelligent recommendations for the best static site generator based on your project.
{
"tool": "recommend_ssg",
"arguments": {
"analysisId": "analysis_12345",
"preferences": {
"priority": "simplicity"
}
}
}
Creates all necessary configuration files for your chosen static site generator.
{
"tool": "generate_config",
"arguments": {
"ssg": "docusaurus",
"projectName": "My Project",
"outputPath": "./docs"
}
}
Creates a Diataxis-compliant documentation structure with proper categorization.
{
"tool": "setup_structure",
"arguments": {
"path": "./docs",
"ssg": "docusaurus",
"includeExamples": true
}
}
Sets up GitHub Actions workflows for automated deployment to GitHub Pages.
{
"tool": "deploy_pages",
"arguments": {
"repository": ".",
"ssg": "docusaurus",
"branch": "gh-pages"
}
}
Checks your setup and provides troubleshooting guidance for successful deployment.
{
"tool": "verify_deployment",
"arguments": {
"repository": ".",
"url": "https://yourusername.github.io/yourproject"
}
}
# Run in development mode
npm run dev
# Run tests
npm test
# Lint code
npm run lint
# Type check
npm run typecheck
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
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
We welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE for details.
- Built on the Model Context Protocol
- Follows the Diataxis Framework
- Inspired by the need for better documentation in open-source projects