MCP Project Assistant Framework
Generates project features (HTML pages, backend APIs) from prompts and project-specific business rules stored as resources, with support for interchangeable LLM providers (local Ollama or cloud Gemini).
README
Principe central : aucune règle métier n'est codée en dur dans le framework — tout vit dans les fichiers .md de generated_projects/{projet}/resources/. Changer de projet = changer ces fichiers, jamais le code du framework.
Preuve du Dependency Inversion Principle : le framework supporte déjà 2 LLM interchangeables (Qwen local via Ollama, Gemini via API) — basculer de l'un à l'autre ne demande de changer qu'une variable d'environnement (ACTIVE_LLM_PROVIDER), aucune modification de core/, services/, ni agents/.
État d'avancement (mise à jour au 18/07/2026)
- ✅ Core (entities, value objects, ports) — testé
- ✅ Lecture réelle de Resources .md — testée
- ✅ Chaîne Prompt → LLM → Résultat — testée
- ✅ Serveur MCP avec 4 tools fonctionnels — testé via inspecteur MCP officiel
- ✅ Deux LLM interchangeables : Qwen local (Ollama) et Gemini (API cloud)
- ✅ Écriture réelle de fichiers sur disque (
create_file) - ✅ 3 Prompts opérationnels :
generate_login,generate_dashboard,generate_navbar - ✅ 3 Resources pour AegisAI :
business_rules.md,project_context.md,coding_guidelines.md - ✅ Consigne de rendu HTML autonome, stricte (interdiction d'imports externes)
- ✅ 24 tests automatisés (pytest), tous passants
- ⏳ Prompts supplémentaires (backend, tests, documentation)
- ⏳ Interface visuelle (React) — prévue une fois le cœur du framework stabilisé
Installation
python -m venv .venv
.venv\Scripts\Activate.ps1 # Windows
pip install mcp requests pytest google-genai
Option A — LLM local (Qwen via Ollama)
ollama pull qwen2.5-coder:1.5b
Option B — LLM cloud (Gemini, gratuit)
Récupérer une clé sur aistudio.google.com/apikey.
Lancer les tests
python -m pytest tests/ -v
→ 24 tests, exécutés en moins d'une seconde.
Lancer le serveur MCP
Avec Qwen local :
$env:ACTIVE_LLM_PROVIDER = "ollama_qwen"
$env:OLLAMA_MODEL = "qwen2.5-coder:1.5b"
python server.py
Avec Gemini :
$env:ACTIVE_LLM_PROVIDER = "gemini"
$env:GEMINI_API_KEY = "ta-clé"
python server.py
Pour tester avec l'inspecteur officiel :
$env:DANGEROUSLY_OMIT_AUTH = "true"
npx @modelcontextprotocol/inspector python server.py
Tools disponibles
read_project_resource(project_name, resource_name)— lit une Resourcelist_project_resources(project_name)— liste les Resources d'un projetlist_available_prompts()— liste les Prompts disponiblesgenerate_feature(project_name, prompt_name, page_name, output_path)— génère du code et l'écrit sur disque
Lancer la démo "vibe coding" (avec affichage live)
python demo_vibe_coding.py aegisai generate_login "Login"
python demo_vibe_coding.py aegisai generate_dashboard "Dashboard"
python demo_vibe_coding.py aegisai generate_navbar "Navbar"
Le fichier généré apparaît automatiquement dans generated_projects/aegisai/src/... — visible en direct dans l'explorateur de fichiers VS Code pendant l'exécution.
Structure du projet démonstrateur (AegisAI)
- ✅ Prompt
generate_backend— génère une vraie API FastAPI avec logique métier exécutable - ✅ Backend testé en direct via Swagger (
/docs) : 3 scénarios de budget validés (OK, alerte 80%, blocage 100%)
Lancer le backend généré
pip install fastapi uvicorn
uvicorn generated_projects.aegisai.src.backend.budgetcheck:app --reload
Ouvre http://localhost:8000/docs pour tester l'API en direct (Swagger). Le backend applique réellement les règles de business_rules.md (alerte à 80%, blocage à 100%), avec les bons codes HTTP (200, 403, 404).
generated_projects/aegisai/
├── resources/
│ ├── business_rules.md
│ ├── project_context.md
│ └── coding_guidelines.md
└── src/
├── pages/
│ ├── login.html
│ ├── dashboard.html
│ └── navbar.html
└── backend/
└── budgetcheck.py
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.