Repo Architecture Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Repo Architecture Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
An MCP (Model Context Protocol) server that analyzes GitHub repositories and automatically generates visual architectural diagrams including dependency graphs, class diagrams, and data flow diagrams.
To preview the generated diagrams, you'll need appropriate tools or extensions depending on the output format:
Mermaid diagrams can be previewed using:
VS Code Extensions:
.md file containing Mermaid code blocks and use the preview paneOnline Tools:
Browser Extensions:
SVG files can be viewed in:
PNG files can be viewed in:
For the best experience, we recommend:
pip install -e .For development:
pip install -e ".[dev]"Test that the server is working:
# Check command is available
repo-architecture-mcp --help
# Test server startup (Ctrl+C to stop)
repo-architecture-mcp --log-level DEBUGRun the server with stdio transport:
repo-architecture-mcpWith debug logging:
repo-architecture-mcp --log-level DEBUGAll tools work with both GitHub URLs and local repository paths:
analyze_repository: Analyze repository structure (GitHub URL or local path)generate_dependency_diagram: Create dependency visualizationgenerate_class_diagram: Create class relationship diagramgenerate_data_flow_diagram: Create data flow visualizationget_repository_summary: Get high-level repository statisticsLocal Path Examples:
"url": ".""url": "./my-project""url": "/home/user/project""url": "~/projects/app"File Saving Feature: All diagram generation tools now support automatic file saving:
save_to_file: Set to true to save diagrams to filesoutput_path: Optional custom file path (auto-generates if not provided)Example with file saving:
{
"tool": "generate_dependency_diagram",
"arguments": {
"url": ".",
"format": "mermaid",
"save_to_file": true,
"output_path": "./diagrams/dependencies.mmd"
}
}Diagram Quality Improvements:
For local repositories, you don't need a GitHub token:
# Analyze current directory
repo-architecture-mcp --analyze-local .
# Analyze specific local path
repo-architecture-mcp --analyze-local /path/to/projectmcp.json to your MCP client configuration directoryexport GITHUB_TOKEN=your_token_hereFor GitHub repositories:
{
"mcpServers": {
"repo-architecture": {
"command": "repo-architecture-mcp",
"args": ["--log-level", "INFO"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
},
"disabled": false,
"autoApprove": ["analyze_repository"]
}
}
}For local repositories (no token needed):
{
"mcpServers": {
"repo-architecture-local": {
"command": "repo-architecture-mcp",
"args": ["--log-level", "INFO"],
"cwd": "${workspaceFolder}",
"disabled": false,
"autoApprove": [
"analyze_repository",
"generate_dependency_diagram"
]
}
}
}Workspace Configuration for Local Analysis (.cursor/settings/mcp.json):
{
"mcpServers": {
"repo-architecture-local": {
"command": "repo-architecture-mcp",
"cwd": "${workspaceFolder}",
"disabled": false,
"autoApprove": [
"analyze_repository",
"generate_dependency_diagram"
]
}
}
}User Configuration for GitHub (~/.cursor/settings/mcp.json):
{
"mcpServers": {
"repo-architecture": {
"command": "repo-architecture-mcp",
"args": ["--max-workers", "4"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
},
"disabled": false,
"autoApprove": ["analyze_repository"]
}
}
}This MCP server integrates seamlessly with GitHub Copilot Chat to provide architectural insights directly in your development workflow. Use the available tools through Copilot's chat interface to analyze repositories and generate diagrams.
analyze_repository: Analyze repository structure and codegenerate_dependency_diagram: Create dependency visualizationsgenerate_class_diagram: Generate UML class diagramsgenerate_data_flow_diagram: Create data flow diagramsget_repository_summary: Get repository statisticsThe server accepts these command-line arguments:
--config PATH: Custom configuration file--log-level LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)--github-token TOKEN: GitHub authentication token--max-workers N: Number of parallel workers (default: 4)--memory-limit MB: Memory limit in megabytes (default: 2048)--cache-ttl HOURS: Cache time-to-live (default: 24)--output-format FORMAT: Default output format (mermaid, svg, png)GITHUB_TOKEN: GitHub personal access tokenLOG_LEVEL: Logging levelREPO_ARCH_CONFIG: Path to configuration fileSee examples/mcp-config-examples.md for more detailed configuration examples and examples/local-repo-config.md for local repository setup.
src/repo_architecture_mcp/
├── __init__.py # Package initialization
├── main.py # Main entry point
└── server.py # Core MCP server implementationpytestblack src/ tests/mypy src/MIT License
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.