docscope-mcp

mgrandau/docscope-mcp

3.2

If you are the rightful owner of docscope-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Model Context Protocol (MCP) server is designed to analyze codebases to evaluate the quality of documentation and prioritize areas for improvement.

docscope-mcp

GitHub release CI Python 3.13+ Type: mypy Security: bandit Code style: ruff

Model Context Protocol (MCP) server that analyzes code to assess documentation quality and prioritize doc improvements.

Installation

pip install git+https://github.com/mgrandau/docscope-mcp.git

Then configure VS Code to use the MCP server:

docscope-mcp install

This adds the server to .vscode/mcp.json in your current workspace. Reload VS Code to activate.

Workspace installs also copy:

  • Prompts.github/prompts/ (AI prompt templates for code analysis)
  • Utilsutils/ (batch analysis scripts)

Global Install (Optional)

To install globally for all VS Code workspaces:

# VS Code (stable)
docscope-mcp install --global

# VS Code Insiders
docscope-mcp install --global --insiders

Usage

MCP Server (VS Code Copilot)

Once installed, the analyze_functions MCP tool is available in VS Code Copilot and other MCP-compatible clients.

CLI Analysis

Analyze source files directly from the command line, useful for CI/CD pipelines, scripts, and terminal-based workflows:

# Analyze a single file
docscope-mcp analyze src/main.py

# Analyze multiple files
docscope-mcp analyze src/*.py

# JSON output for pipelines
docscope-mcp analyze src/main.py --format json

# Analyze inline code (requires --language)
docscope-mcp analyze --code "def foo(): pass" --language python

# Short flags
docscope-mcp analyze -c "def foo(): pass" -l python -f json

Supported languages: python, csharp, vb, vb6, c_cpp

Uninstall

# Workspace
docscope-mcp uninstall

# Global (stable)
docscope-mcp uninstall --global

# Global (Insiders)
docscope-mcp uninstall --global --insiders

Architecture Documentation

For AI-readable architectural contracts and detailed component documentation:

DocPurpose
Core package architecture (server, analyzers, models)
Test suite architecture, MockFilesystemAdapter
Batch analysis utilities

💬 Community

💬 Join the Discord community