milad665/AicesPllusOne
If you are the rightful owner of AicesPllusOne 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 C4 Architecture Agent with MCP Server is an intelligent AI tool designed to automatically generate and maintain C4 architecture diagrams from your codebase, providing architectural context for AI coding agents.
Aices Plus One: Complete Architecture Intelligence System
An intelligent AI-powered MCP service that automatically generates and provides detailed architectural context for Coding AI Agents, enabling them to understand the "choreographed symphony of services" they are modifying.
🏗️ System Overview
This project consists of three main components working together to provide complete architectural intelligence:
- 🔍 Code Analyzer Service (
AicesPlusOne/) - A comprehensive Git repository manager that extracts project metadata using Tree-sitter. - 🤖 Architecture Agent (
AicesPlusOneAgent/) - An AI agent powered by Gemini 2.5 that generates architecture diagrams and exposes data via:- Model Context Protocol (MCP) for AI tools.
- REST API for the Web UI and VS Code extension.
- 🖥️ Visual Interfaces
- Web UI: A split-pane dashboard to view and edit C4 diagrams.
- VS Code Extension: A sidebar that shows architectural context for your active file.

🎯 What It Does
Architecture Agent
This agent analyzes your code repositories and automatically generates comprehensive architecture diagrams at three levels:
- Context View - Shows your system in its environment with users and external systems.
- Container View - Details the applications, services, and data stores.
- Component View - Breaks down the internal structure of containers.
All diagrams are generated in structured JSON format with PlantUML scripts for visualization.
Storage & Persistence
The system now supports decoupled storage backends:
- Local Storage (Default): Stores architecture in
AicesPlusOneAgent/data/memory.json. - Google Cloud Storage (GCS): Stores architecture in a GCS Bucket. Set
STORAGE_TYPE=gcsandGCS_BUCKET_NAME=my-bucket.
🚀 Quick Start (Local Development)
1. Start the Code Analyzer Service
The analyzer runs in the background to keep code metadata fresh.
# Navigate to the analyzer service
cd AicesPlusOne
# Quick setup and start
python setup.py
python dev_server.py
The service will be available at http://localhost:8000 with API docs at /docs.
2. Start the Agent & Web UI
The Agent now includes a start_ui.sh script to launch both the API backend and the React UI.
# Navigate to the agent
cd AicesPlusOneAgent
# Install dependencies (First time only)
pip install -r requirements.txt
cd ui && npm install && cd ..
# Configure
echo "GOOGLE_API_KEY=your-gemini-api-key" > .env
echo "CODE_ANALYSIS_API_URL=http://localhost:8000" >> .env
# Start API + UI
./start_ui.sh
- Web UI: Open
http://localhost:5173to view diagrams and regenerate architecture. - Agent API: Running at
http://localhost:8001.
3. Running the VS Code Extension
See architectural context directly in your editor.
- Navigate to
AicesPlusOneVSCode. - Install dependencies:
npm install. - Open the folder in VS Code.
- Press F5 to verify the extension in the Extension Development Host.
- Open any source file in the host window to see its "Component" or "Container" context in the Architecture sidebar. (Note: The Agent API must be running for this to work).
Supported Languages & Capabilities
| Language | Entry Points | Dependencies | Project Type Detection | Frameworks Detected |
|---|---|---|---|---|
| Python | ✅ Functions, Classes, APIs | ✅ requirements.txt, pyproject.toml | ✅ API, CLI, Library | FastAPI, Flask, Django |
| JavaScript | ✅ Functions, Classes | ✅ package.json | ✅ Web, API | Express, React, Vue, Node |
| TypeScript | ✅ Functions, Classes | ✅ package.json | ✅ Web, API | Angular, Next.js, NestJS |
| C# (.NET) | ✅ Methods, APIs, MVC Actions | ✅ .csproj, packages.config | ✅ API, MVC, Blazor, Desktop, Mobile | ASP.NET Core, MVC, Razor, WPF, WinForms, Maui |
| Java | ✅ Methods, Classes | ✅ pom.xml | ✅ Library, API | Spring Boot, Maven |
| Go | ✅ Main, Public Funcs | ✅ go.mod | ✅ CLI, API | Standard Lib, Gin, Echo |
| Rust | ⏳ Coming Soon | ✅ Cargo.toml | ✅ CLI, Library | Actix, Rocket |
| C++ | ⏳ Coming Soon | ⏳ CMakeLists.txt | ✅ CLI |
🛠️ MCP Tools
1. get_stored_c4_architecture
Get the latest C4 architecture diagram from storage in JSON format. This is a fast, read-only operation.
2. generate_new_c4_architecture
Force a fresh code analysis and AI generation of the C4 architecture. This is an expensive operation.
3. update_c4_architecture_with_plantuml
Update the stored C4 architecture by parsing a modified PlantUML script.
🔌 Integration Examples
Claude Desktop Integration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"c4-architecture": {
"command": "python3",
"args": ["/path/to/AicesPlusOneAgent/src/server.py"],
"env": {
"GOOGLE_API_KEY": "your-api-key-here"
}
}
}
}
🎪 The Vision
Modern software is a choreographed symphony of services. AI coding agents are flying blind without architectural context. Aices Plus One provides that context, enabling AI to write production-ready code that fits your system design.
🚀 Future Roadmap
🎨 IDE Extensions for Interactive C4 Manipulation
- Visually manipulate C4 diagrams directly in development environment
- Real-time sync between diagram changes and code structure
- Interactive architecture exploration with zoom levels
📚 Extensive Project Documentation Store
- Store detailed project descriptions, business context, and domain models
- Track architectural evolution over time with version history
- Cross-reference between code changes and architectural impacts
🤖 MCP Tool for Agent Memory Integration
- Auto-capture important project details during development sessions
- Build institutional knowledge that persists across development teams
- Enable AI agents to make architecturally-aware code suggestions
🐛 Bug History and Solution Database
- Maintain a searchable database of past bugs and their solutions
- AI-powered bug pattern recognition and prevention suggestions
📚 Documentation
- - Detailed service documentation
- - Agent setup and MCP configuration
- - Enterprise mTLS deployment architecture
- - Detailed setup and configuration
- - MCP server examples
🧪 Testing
# Test the code analyzer service
cd AicesPlusOne
python -m pytest tests/ -v
# Test the C4 agent
cd AicesPlusOneAgent
python -m pytest tests/ -v
python quickstart.py
🤝 Contributing
We welcome contributions! Areas for improvement:
- Additional language support for Tree-sitter analysis
- Enhanced PlantUML parsing and generation
- More sophisticated AI prompting strategies
- Diagram visualization tools
- Integration with more development tools
📄 License
MIT License - See LICENSE file for details.
🙏 Acknowledgments
- Built with Google's Generative AI
- Uses Model Context Protocol
- Implements Architecture patterns
- Powered by Tree-sitter for code analysis
- UI powered by React & Vite