RAG MCP Server
The RAG MCP Server is a Model Context Protocol server that combines knowledge graphs with Retrieval-Augmented Generation for intelligent code indexing, semantic search, and project management.
Core Capabilities:
Automated RAG Pipeline - Complete project analysis and injection into both knowledge graph (Phase 0) and RAG system with automatic LLM-powered intelligent analysis
Knowledge Graph Management - Create, read, update, and delete entities, relations, and observations with automatic knowledge enrichment during indexing
Semantic Code Search - Advanced semantic searches across indexed codebases with configurable similarity thresholds and project filtering
Incremental Updates - Re-index projects with configurable chunking and embeddings without full reprocessing
Project Management - List and view statistics for indexed projects
Advanced Features:
Intelligent LLM Analysis - Leverage Ollama for content summarization, keyword extraction, structure suggestion, entity detection, and complexity classification
Optimized Performance - Batch processing for LLM calls with intelligent caching (configurable TTL) for improved efficiency
Centralized Configuration - Unified configuration system (
rag-config.json) with validation, limits, and support for multiple embedding providers (fake, ollama, sentence-transformers) and LLM providersFlexible File Filtering - Exclude files from indexing using
.ragignorepatterns and customizable file patternsExtensible Architecture - Tool Registry system for automatic discovery, centralized management, and unified execution with backward compatibility
MCP Integration - Works with Model Context Protocol clients like Cline through standardized configuration
Supports Ollama as an embedding provider for semantic search and code indexing, allowing the use of models like nomic-embed-text for RAG functionality.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RAG MCP Serversearch for authentication middleware in our user service project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RAG MCP Server v2.0
Un serveur MCP (Model Context Protocol) avec architecture v2.0 simplifiée : 2 outils principaux pour l'indexation automatique et la recherche sémantique de code.
🚀 Nouvelle Architecture v2.0
📋 Outils Principaux (Simplifiés)
Outil | Description | Remplace |
| Outil maître pour l'indexation automatique |
|
| Outil de recherche avancée |
|
🎯 Avantages de v2.0
Simplification radicale : 2 outils au lieu de 6
Automatisation complète : Détection VS Code + file watcher intégrés
Intelligence native : Chunking intelligent par type de contenu
Rétrocompatibilité totale : Les anciens outils fonctionnent toujours (masqués)
Pipeline automatisé : Phase 0 → scan → analyse → chunking → embeddings → injection
Related MCP server: Code Graph Knowledge System
🏗️ Architecture Technique
Pipeline activated_rag
activated_rag
├── Phase 0 : Détection projet VS Code
├── Scan fichiers & changements
├── Analyse statique multi-langage
├── Chunking intelligent
│ ├── Code : 1 fonction = 1 chunk
│ ├── Classes : N chunks
│ └── Documentation : par paragraphes
├── Calcul embeddings
│ ├── Code : nomic-embed-code
│ └── Texte : nomic-embed-text
└── Injection RAGFonctionnalités recherche_rag
Recherche hybride : Combinaison similarité sémantique + recherche textuelle
Filtres avancés : Par type de contenu, langage, extension, score
Re-ranking : Classement basé sur métadonnées (fraîcheur, taille, type)
Seuil dynamique : Adaptation automatique du seuil de similarité
📦 Installation
# Cloner le dépôt
git clone <repository-url>
cd rag-mcp-server
# Installer les dépendances
npm install
# Construire le projet
npm run build🚀 Utilisation Rapide
Indexation Automatique
// Utilisation simple avec activated_rag
const result = await toolRegistry.execute('activated_rag', {
project_path: '/chemin/vers/mon/projet',
enable_phase0: true // Détection automatique VS Code
});Recherche Avancée
// Recherche avec filtres
const results = await toolRegistry.execute('recherche_rag', {
query: 'comment implémenter l\'authentification',
scope: 'project',
top_k: 5,
filters: {
content_type: ['code', 'doc'],
language: ['typescript', 'javascript']
}
});🔧 Configuration v2.0
Configuration Principale
{
"version": "2.0.0",
"description": "Configuration RAG v2.0",
"system": {
"legacy_mode": true,
"exposed_tools": ["activated_rag", "recherche_rag"],
"legacy_tools": ["injection_rag", "index_project", "update_project", "search_code", "manage_projects"]
},
"defaults": {
"embedding_provider": "ollama",
"embedding_model": "nomic-embed-text",
"chunk_size": 1000,
"chunk_overlap": 200
},
"providers": {
"ollama": {
"description": "Ollama embeddings",
"models": {
"code": "nomic-embed-code",
"text": "nomic-embed-text"
}
}
}
}Migration depuis v1.0
# Migration automatique
npm run migrate-v2
# Vérification
npm run test-retrocompatibility🧪 Tests
Tests v2.0
# Tests de rétrocompatibilité
npm run test:retrocompatibility
# Tests de performance
npm run test:performance
# Tous les tests
npm testTests Spécifiques
Tests de migration : Vérification de la rétrocompatibilité
Tests de performance : Benchmark nouveau vs ancien système
Tests d'intégration : Validation du pipeline complet
Tests de qualité : Validation des embeddings séparés
🛠️ Structure du Projet v2.0
rag-mcp-server/
├── src/
│ ├── config/
│ │ └── rag-config.ts # Gestionnaire de configuration v2.0
│ ├── core/
│ │ ├── tool-registry.ts # Système central d'enregistrement
│ │ ├── registry.ts # Enregistrement automatique v1.0
│ │ └── registry-v2.ts # Enregistrement automatique v2.0
│ ├── tools/
│ │ ├── graph/ # Outils de graphe de connaissances (9 outils)
│ │ └── rag/ # Outils RAG v2.0
│ │ ├── activated-rag.ts # Outil maître v2.0
│ │ ├── recherche-rag.ts # Recherche avancée v2.0
│ │ └── legacy/ # Outils legacy (masqués)
│ │ ├── injection-rag.ts
│ │ ├── index-project.ts
│ │ ├── update-project.ts
│ │ ├── search-code.ts
│ │ └── manage-projects.ts
│ ├── rag/ # Composants RAG avancés
│ │ ├── indexer.ts # Indexation avec chunking intelligent
│ │ ├── searcher.ts # Recherche sémantique avancée
│ │ ├── vector-store.ts # Stockage vectoriel v2.0
│ │ ├── vector-store-refactored.ts # Refactorisation embeddings par type
│ │ ├── phase0/ # Phase 0 : Détection automatique
│ │ │ ├── workspace-detector.ts
│ │ │ ├── file-watcher.ts
│ │ │ ├── event-logger.ts
│ │ │ ├── chunker-integration.ts
│ │ │ └── llm-enrichment/ # Enrichissement LLM
│ │ └── ai-segmenter.ts # Segmentation intelligente
│ └── index.ts # Point d'entrée principal
├── config/
│ ├── rag-config.json # Configuration v1.0 (rétrocompatible)
│ └── rag-config-v2.json # Configuration v2.0
├── docs/
│ ├── CONFIGURATION.md # Guide de configuration
│ ├── PHASE0_3_README.md # Documentation Phase 0
│ └── API_REFERENCE.md # Référence API
├── test/
│ ├── retrocompatibility-v2.test.ts # Tests rétrocompatibilité
│ └── phase0-llm-enrichment/ # Tests Phase 0
├── scripts/
│ ├── migrate-config-v2.js # Migration v1.0 → v2.0
│ └── migrate-rag-store.js # Migration données
└── package.json📊 Métriques v2.0
Outils Visibles
2 outils principaux :
activated_rag,recherche_rag9 outils graph : Graphe de connaissances (inchangés)
Total visible : 11 outils
Outils Masqués (Rétrocompatibilité)
5 outils legacy :
injection_rag,index_project,update_project,search_code,manage_projectsAccessibles : Via appel direct (rétrocompatibilité)
Performances
Initialisation : < 500ms
Indexation : 30-50% plus rapide avec chunking intelligent
Recherche : 20-40% plus précise avec embeddings séparés
Mémoire : Réduction de 25% avec cache optimisé
🔍 Dépannage
Problèmes Courants
Q : Les anciens outils ne fonctionnent plus ?
R : Activez legacy_mode: true dans la configuration.
Q : activated_rag ne détecte pas les changements ?
R : Vérifiez enable_phase0: true et les permissions du file watcher.
Q : Recherche avec scores bas ?
R : Ajustez filters.min_score ou utilisez le modèle approprié pour le type de contenu.
Q : Performances lentes ?
R : Réduisez chunk_size, utilisez embedding_provider: 'fake' pour les tests, désactivez enable_watcher.
📈 Monitoring
Logs Disponibles
logs/activated-rag.log: Indexation automatiquelogs/recherche-rag.log: Recherches avancéeslogs/phase0-events.log: Événements Phase 0logs/performance.log: Métriques de performance
Métriques Clés
const metrics = {
indexation: {
files_processed: number,
chunks_created: number,
embedding_time_ms: number,
total_time_ms: number
},
recherche: {
query_time_ms: number,
results_count: number,
avg_score: number,
cache_hit_rate: number
},
phase0: {
files_watched: number,
change_events: number,
auto_index_count: number
}
};🔮 Roadmap
v2.1 (Prochainement)
Intégration Tree-sitter : Analyse AST native
Cache distribué : Partage d'embeddings entre projets
API REST : Interface HTTP pour les outils
Plugins : Extensions personnalisables
v3.0 (Future)
Apprentissage automatique : Adaptation des paramètres
Collaboration : Partage d'index entre utilisateurs
Intégration CI/CD : Pipeline d'indexation automatisé
Dashboard : Interface web de monitoring
📚 Documentation Complète
GUIDE-NOUVEAUX-OUTILS-V2.md : Guide détaillé v2.0
CONFIGURATION.md : Guide de configuration
PHASE0_3_README.md : Documentation Phase 0
API_REFERENCE.md : Référence API
🤝 Contribution
Fork le projet
Créer une branche (
git checkout -b feature/amazing-feature)Commit les changements (
git commit -m 'Add amazing feature')Push vers la branche (
git push origin feature/amazing-feature)Ouvrir une Pull Request
📄 Licence
Ce projet est sous licence MIT. Voir le fichier LICENSE pour plus de détails.
🙏 Remerciements
Model Context Protocol pour le framework MCP
L'équipe de développement pour les contributions
La communauté open source pour les outils et bibliothèques utilisés
Dernière mise à jour : 13/01/2026
Version : 2.0.0
Statut : Production Ready avec Architecture Simplifiée 🚀
Compatibilité : Rétrocompatible avec v1.0.0
Changelog v2.0.0
Nouveau : Architecture simplifiée avec 2 outils principaux
Nouveau :
activated_rag- Outil maître pour indexation automatiqueNouveau :
recherche_rag- Recherche avancée avec filtresNouveau : Phase 0 intégrée (détection VS Code + file watcher)
Nouveau : Chunking intelligent par type de contenu
Nouveau : Embeddings séparés (code vs texte)
Nouveau : Système de registre v2.0 avec outils masqués
Nouveau : Tests de rétrocompatibilité complets
Nouveau : Scripts de migration v1.0 → v2.0
Nouveau : Documentation v2.0 complète
Amélioration : Performances 30-50% plus rapides
Amélioration : Précision de recherche 20-40% meilleure
Amélioration : Réduction mémoire de 25%
Rétrocompatibilité : Tous les outils v1.0 fonctionnent (masqués)
Changelog v1.5.0
Nouveau : Analyse LLM intelligente avec intégration Ollama
Nouveau : Service LLM (
LlmService) pour appels à l'API OllamaNouveau : Cache LLM (
LlmCache) pour optimisation des performancesNouveau : Configuration LLM dans
rag-config.jsonavec fournisseurs et préparationNouveau : Tâches intelligentes : résumé, extraction de mots-clés, suggestion de structure, détection d'entités, classification de complexité
Nouveau : Intégration dans
ai-segmenter.tspour segmentation intelligenteNouveau : Intégration dans
indexer.tsavec cache LLMNouveau : Tests de configuration LLM (
test-llm-config.js)Nouveau : Tests d'intégration Ollama (
test-ollama-integration.js)Amélioration : Support de multiples modèles Ollama configurables
Amélioration : Batch processing pour optimisation des appels LLM
Amélioration : Cache intelligent avec TTL configurable
Amélioration : Documentation complète des fonctionnalités LLM
Available Tools
13 toolsadd_observationsB
Add new observations to existing entities in the knowledge graph
| Name | Required | Description | Default |
|---|---|---|---|
| observations | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must disclose behavioral traits on its own. It only states that it adds observations, without detailing whether observations are appended or replaced, what happens if the entity does not exist (e.g., error or auto-creation), or any other side effects. The tool is clearly a write operation, but critical safety and behavior information is missing.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that immediately conveys the tool's core function. There is no fluff or redundant phrasing, and the primary verb and object are front-loaded. It earns a high score for efficiency.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that there are no annotations and no output schema, the description must provide comprehensive context on its own. However, it only gives a high-level statement and lacks necessary details about input requirements, validation, error handling, or effect on existing data. This leaves significant gaps in the agent's understanding of the tool's full behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has zero coverage for the top-level parameter, and the description does not compensate by explaining the parameter structure. Although the nested schema properties describe entityName and contents, the description adds no semantic value beyond the schema, and the agent must rely solely on the schema to understand that observations is an array of objects with those fields. This is insufficient given the low schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Add' and identifies the resource 'observations' and the target 'existing entities' within the knowledge graph. This clearly distinguishes it from sibling tools like create_entities (which creates entities) and delete_observations (which removes observations), making the tool's purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies that this tool is used when adding observations to existing entities, but it does not explicitly state when to use it over alternatives or provide any comparison with sibling tools. There is no mention of constraints such as 'only for existing entities' or guidance about creating entities first. Thus, the usage context is implied rather than explicitly outlined.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
create_entitiesB
Create multiple new entities in the knowledge graph
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It only states that it creates entities, but does not mention potential duplicate handling, overwrite behavior, validation rules, or whether the operation is atomic—information an agent would need for a mutating tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence that communicates the core purpose with no filler. It is appropriately concise for a simple tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the absence of annotations, an output schema, and limited schema coverage, the description should offer more context about usage, side effects, or return behavior. It does not, leaving significant gaps for an agent to make assumptions about how the tool behaves.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema's top-level 'entities' parameter has no description (coverage 0%), and the tool description does not explain what constitutes an entity (name, type, observations). The description adds no value beyond the bare phrase 'multiple new entities,' failing to compensate for the schema gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Create') and a specific resource ('multiple new entities in the knowledge graph'), clearly distinguishing this from sibling tools like create_relations and add_observations. It is explicit and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It does not mention create_relations, add_observations, or any exclusions, leaving the agent to infer selection based solely on the name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
create_relationsB
Create multiple new relations between entities in the knowledge graph. Relations should be in active voice
| Name | Required | Description | Default |
|---|---|---|---|
| relations | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It only states 'create' and offers an active-voice guideline, but does not mention idempotency, validation of from/to entities, behavior on duplicates, or error handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with a brief second clause. Every word earns its place and the main purpose is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations or output schema, the description is too sparse. It omits critical details such as whether from/to entities must already exist, how duplicates are handled, and whether creation is atomic for the batch.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% at the top level, so the description needed to compensate. It adds the active-voice guideline but does not explain the structure of the relations array or the meaning of from/to/relationType, which the schema already partially covers.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (create), the object (multiple new relations), and the context (knowledge graph). It distinguishes from siblings like delete_relations and create_entities.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies this tool is for creating relations, but it does not explicitly state when to use it versus alternatives or mention any prerequisites. The active-voice guideline is a style note, not usage guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_entitiesA
Delete multiple entities and their associated relations from the knowledge graph
| Name | Required | Description | Default |
|---|---|---|---|
| entityNames | Yes | An array of entity names to delete |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It does disclose that associated relations are deleted as part of the operation, which is a useful behavioral detail. However, it does not mention irreversibility, permissions, or whether observations are affected, leaving gaps in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence that front-loads the action and scope with no unnecessary words. Every word contributes to understanding the tool's purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter destructive tool with no output schema, the description conveys the core purpose but omits behavioral details such as error handling, atomicity, and return values. Given the lack of annotations, it is moderately complete but has room for improvement.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% coverage of the parameter 'entityNames' with a description, so the baseline is 3. The tool description does not add any additional parameter semantics beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool deletes multiple entities and their associated relations, using a specific verb ('Delete') and resource ('entities' and 'relations'). It distinguishes itself from sibling tools like delete_relations, which only handle relations, and delete_observations, which handles observations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as delete_relations or delete_observations. It does not state any exclusions, prerequisites, or scenarios where another tool would be more appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_observationsB
Delete specific observations from entities in the knowledge graph
| Name | Required | Description | Default |
|---|---|---|---|
| deletions | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must disclose behavioral traits. It only states the action without mentioning permanence, side effects, required permissions, or return format. As a mutation tool, this is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that directly conveys the core action, with no unnecessary words. It is well-structured and front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has a non-trivial parameter schema and no output schema or annotations. The description is too minimal to fully inform usage, lacking details on how to specify deletions and what to expect in response.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description does not explain the 'deletions' parameter structure. Schema coverage is 0% for the top-level parameter, and the description adds no semantic meaning beyond the schema's nested field descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the function: deleting specific observations from entities in a knowledge graph. It distinguishes itself from sibling tools like delete_entities and add_observations by specifying the granularity ('specific observations').
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives such as delete_entities or when not to use it. The description lacks any context or conditions for usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_relationsA
Delete multiple relations from the knowledge graph
| Name | Required | Description | Default |
|---|---|---|---|
| relations | Yes | An array of relations to delete |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must convey behavioral traits, but it only says 'Delete' without mentioning consequences such as irreversibility, partial failure handling, or permissions. For a mutating operation, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that is direct and front-loaded. Every word earns its place, and there is no redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple with one well-specified parameter and no output schema, so the core purpose is covered. However, behavioral details like error handling, atomicity, or effects on related entities are absent, which leaves some ambiguity for an agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema fully describes the 'relations' parameter and its nested properties (from, to, relationType), so the description adds little beyond what is already structured. The phrase 'multiple' aligns with the array type but does not provide extra meaning.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific action ('Delete') on a specific resource ('relations'), and the plural 'multiple relations' distinguishes this from sibling tools like delete_entities and delete_observations. It is concise and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for deleting one or more relations, but it does not explicitly state when to prefer this over alternatives, nor does it mention any exclusions or prerequisites. It provides only minimal contextual guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
injection_ragC
Analyse du projet complet + prépare et injecte les données automatiquement (Phase 0 → RAG)
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Chemin absolu vers le projet à analyser et injecter | |
| file_patterns | No | Patterns de fichiers à inclure (ex: ['**/*.py', '**/*.js']) | |
| recursive | No | Parcourir les sous-dossiers récursivement | |
| log_level | No | Niveau de logs (INFO, DEBUG, ERROR) | INFO |
| enable_graph_integration | No | Activer l'intégration automatique avec le graphe de connaissances |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions analyzing, preparing, and injecting data automatically, but doesn't specify what 'injecte' entails (e.g., where data is stored, if it's destructive, authentication needs, or rate limits). The phrase 'automatiquement' hints at automation but lacks operational details.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core action. It could be slightly more structured (e.g., separating analysis from injection phases), but it avoids redundancy and wastes no words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a complex tool with 5 parameters, no annotations, and no output schema, the description is incomplete. It doesn't explain what 'RAG' means, what data is injected where, or the expected outcomes. Given the lack of structured fields, more behavioral and contextual details are needed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all 5 parameters. The description adds no parameter-specific information beyond what's in the schema, such as explaining how 'file_patterns' relate to analysis or what 'enable_graph_integration' does in practice. Baseline 3 is appropriate when schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Analyse du projet complet + prépare et injecte les données automatiquement (Phase 0 → RAG)'. It specifies the verb (analyze, prepare, inject) and resource (project data), though it doesn't explicitly differentiate from sibling tools like 'manage_projects' or 'update_project'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It mentions 'Phase 0 → RAG' but doesn't explain what this phase entails or how it relates to other tools like 'search_code' or 'read_graph'. No exclusions or prerequisites are stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
manage_projectsC
Gérer et lister les projets indexés
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Action à effectuer | list |
| project_path | No | Chemin du projet pour les statistiques (requis pour 'stats') |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool can 'manage' projects, implying potential write operations, but doesn't specify what management entails (e.g., creation, deletion, modification) or any behavioral traits like permissions, side effects, or response format. This leaves significant gaps in understanding how the tool behaves beyond basic parameter handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient French phrase ('Gérer et lister les projets indexés') that is front-loaded and wastes no words. It could be slightly more structured by separating the two functions, but it remains appropriately concise without unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (managing and listing projects with two parameters) and the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'manage' involves, how results are returned, or any prerequisites, leaving the agent with insufficient context to use the tool effectively beyond basic parameter passing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, clearly documenting both parameters with enums and defaults. The description adds no additional meaning beyond the schema, such as explaining the context of 'indexed projects' or detailing the 'stats' action. Since the schema does the heavy lifting, the baseline score of 3 is appropriate, but no extra value is contributed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Gérer et lister les projets indexés' states the tool manages and lists indexed projects, which provides a general purpose but lacks specificity. It mentions two actions (manage and list) but doesn't clarify what 'manage' entails or how it differs from sibling tools like 'update_project'. The purpose is somewhat vague rather than clearly distinguishing this tool's unique function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. The description doesn't indicate scenarios for choosing 'manage_projects' over sibling tools such as 'update_project' for modifications or 'read_graph' for data retrieval. Without any context on usage timing or exclusions, the agent must infer from the tool name and parameters alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
open_nodesC
Open specific nodes in the knowledge graph by their names
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | An array of entity names to retrieve |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of disclosing behavior. It only says 'open', which implies read-only retrieval, but does not explicitly state that it is non-mutating, what it returns, or how missing names are handled. This leaves significant ambiguity.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficiently worded sentence that directly states the action and resource. It contains no filler or redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has no output schema and the description does not clarify what 'open' returns (e.g., node attributes, observations, relations). For an agent to invoke the tool and interpret results correctly, this missing information is a notable gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% coverage, already describing 'names' as 'An array of entity names to retrieve'. The tool description merely restates 'by their names', adding no extra semantic detail beyond the schema, so the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses the specific verb 'Open' and identifies the resource 'nodes in the knowledge graph', scoped by 'names', making it clear this is a direct retrieval by exact names. It implicitly differentiates from search_nodes (searching) and read_graph (full graph), but does not explicitly name alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given on when to use this tool versus siblings. The description does not state that it should be used when exact node names are known, nor does it exclude using search_nodes for lookup or read_graph for broader context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_graphC
Read the entire knowledge graph
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states 'read' implies a safe operation, but doesn't clarify performance aspects (e.g., is this a heavy operation that might time out?), data format (structured graph? raw text?), or side effects (does it cache data?). For a tool with zero annotation coverage, this leaves significant gaps in understanding how it behaves.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly. Every word contributes to understanding the tool's function.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a knowledge graph tool with no annotations and no output schema, the description is insufficient. It doesn't explain what 'read' returns (e.g., nodes, edges, metadata) or handle potential issues like large graph sizes. For a tool that likely interacts with structured data, more context on output and behavior is needed to be complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0 parameters with 100% coverage, meaning no parameters are documented in the schema. The description doesn't mention any parameters, which is appropriate since none exist. It implies the tool reads the graph without inputs, adding value by clarifying the scope ('entire'), though it could specify if filters or options are implicitly applied.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Read the entire knowledge graph' clearly states the action (read) and resource (knowledge graph), making the purpose understandable. However, it lacks specificity about what 'entire' means (all nodes/relations? all data without filtering?) and doesn't distinguish this from sibling tools like 'search_nodes' or 'open_nodes', which might also read graph data with different scopes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. With siblings like 'search_nodes' (likely for filtered queries) and 'open_nodes' (possibly for specific nodes), there's no indication that this tool is for bulk retrieval versus targeted access. No prerequisites, exclusions, or comparative context are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_codeC
Recherche sémantique dans le code indexé avec options RAG
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Requête de recherche sémantique | |
| project_filter | No | Filtrer par chemin de projet spécifique |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It mentions 'semantic search' and 'RAG options' but doesn't disclose critical behavioral traits: whether this is read-only or has side effects, what the output format looks like, if there are rate limits, authentication needs, or how results are returned (e.g., pagination). The description is too vague to inform safe and effective use.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence in French that directly states the tool's purpose. It's appropriately sized and front-loaded with key information. However, it could be slightly more structured by separating the core function from the RAG feature.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a search tool with RAG options, no annotations, and no output schema, the description is incomplete. It lacks details on behavioral traits, output format, and usage guidelines. For a tool that likely returns complex results, more context is needed to ensure the agent can interpret and use it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters ('query' and 'project_filter') with descriptions. The tool description adds no additional meaning beyond what's in the schema—it doesn't explain parameter interactions, default behaviors, or examples. Baseline 3 is appropriate when schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool performs 'semantic search in indexed code with RAG options', which specifies the verb (search), resource (indexed code), and method (semantic with RAG). It distinguishes from siblings like 'search_nodes' by focusing on code rather than general nodes. However, it doesn't explicitly differentiate from other search tools beyond the resource type.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'search_nodes' or 'injection_rag'. It mentions RAG options but doesn't explain when semantic search with RAG is preferred over other methods. No exclusions, prerequisites, or contextual advice are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_nodesC
Search for nodes in the knowledge graph based on a query
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query to match against entity names, types, and observation content |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It describes the action as 'search' but does not disclose key behaviors such as case sensitivity, partial matching, result limits, ordering, or whether it searches across all entity fields or just specific ones.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no wasted words, but it is vague and lacks structure. It could be improved by adding brief details or examples without increasing length significantly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter tool without an output schema, the description is minimally adequate. However, given the presence of sibling tools with overlapping functionality, more context (e.g., search scope, result format) would make it complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema covers 100% of the parameter with a description that explains what the query matches against. The tool description restates 'based on a query' but adds no additional semantics beyond the schema, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool searches for nodes in the knowledge graph based on a query, which is specific enough to distinguish from siblings like 'traverse_graph' or 'query_by_time'. However, it could be more precise (e.g., specifying it's a full-text search).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives (e.g., 'query_by_time', 'traverse_graph', 'read_graph'). No exclusions or context for selection are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
update_projectC
Mettre à jour l'indexation d'un projet (indexation incrémentale) avec options RAG
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Chemin absolu vers le projet à mettre à jour | |
| file_patterns | No | Patterns de fichiers à inclure | |
| recursive | No | Parcourir les sous-dossiers récursivement | |
| embedding_provider | No | Fournisseur d'embeddings (fake, ollama, sentence-transformers) | fake |
| embedding_model | No | Modèle d'embeddings (pour Ollama: 'nomic-embed-text', 'all-minilm', etc.) | nomic-embed-text |
| chunk_size | No | Taille des chunks pour le découpage (en tokens) | |
| chunk_overlap | No | Chevauchement entre les chunks (en tokens) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden but offers minimal behavioral insight. 'Mettre à jour' implies a mutation operation, but it doesn't disclose whether this requires specific permissions, what 'indexation incrémentale' entails practically, how long it might take, whether it's idempotent, or what happens on failure. The mention of RAG options is vague without explaining their impact.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that states the core purpose. There's no fluff or redundancy. However, it could be more front-loaded with critical behavioral context given the mutation nature and lack of annotations.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with 7 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain what 'indexation incrémentale' means operationally, what RAG options do, what the tool returns, or error conditions. The agent lacks sufficient context to use this tool confidently without trial and error.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all 7 parameters. The description adds no parameter-specific information beyond what's in the schema—it doesn't explain relationships between parameters (e.g., how 'embedding_provider' interacts with 'embedding_model') or provide usage examples. Baseline 3 is appropriate when the schema does all the work.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Mettre à jour l'indexation d'un projet') and specifies it's incremental indexing with RAG options. It distinguishes from siblings like 'manage_projects' or 'search_code' by focusing on indexing rather than general management or search. However, it doesn't explicitly differentiate from potential similar indexing tools if they existed.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, when incremental indexing is appropriate, or how it differs from other project-related tools like 'manage_projects' or 'injection_rag'. The agent must infer usage from the name and parameters alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v1.0.0- Removed
index_project - Added
injection_rag - Changed
search_code5 fields changed- removed
Input schema / properties / embedding_modelRemoved value: -{ - "default": "nomic-embed-text", - "description": "Modèle d'embeddings (pour Ollama: 'nomic-embed-text', 'all-minilm', etc.)", - "type": "string" -} - removed
Input schema / properties / embedding_providerRemoved value: -{ - "default": "fake", - "description": "Fournisseur d'embeddings pour la recherche (fake, ollama, sentence-transformers)", - "enum": [ - "fake", - "ollama", - "sentence-transformers" - ], - "type": "string" -} - removed
Input schema / properties / format_outputRemoved value: -{ - "default": true, - "description": "Formater la sortie pour l'affichage", - "type": "boolean" -} - removed
Input schema / properties / limitRemoved value: -{ - "default": 10, - "description": "Nombre maximum de résultats", - "maximum": 50, - "minimum": 1, - "type": "number" -} - removed
Input schema / properties / thresholdRemoved value: -{ - "default": 0, - "description": "Seuil de similarité (0.0 à 1.0)", - "maximum": 1, - "minimum": 0, - "type": "number" -}
13 tool updates
- First observed
add_observations - First observed
create_entities - First observed
create_relations - First observed
delete_entities - First observed
delete_observations - First observed
delete_relations - First observed
index_project - First observed
manage_projects - First observed
open_nodes - First observed
read_graph - First observed
search_code - First observed
search_nodes - First observed
update_project
TDQS
Scored across 13 tools
Most tools have distinct purposes centered around knowledge graph operations, but there is some overlap between 'search_nodes' and 'search_code' that could cause confusion. Additionally, 'injection_rag' and 'update_project' both involve RAG indexing but differ in scope, which might lead to misselection if not carefully described.
The naming is inconsistent with a mix of snake_case English verbs (e.g., 'add_observations', 'create_entities') and French terms (e.g., 'injection_rag', 'manage_projects'), and some tools use different verb styles like 'open_nodes' vs. 'read_graph'. This lack of a predictable pattern reduces clarity and usability.
With 13 tools, the count is reasonable for a RAG and knowledge graph server, covering core operations like CRUD for entities, relations, and observations, as well as project management and search. It's slightly on the higher side but still well-scoped for the domain.
The tool set provides good coverage for knowledge graph management and RAG operations, including create, read, update, and delete functions for entities, relations, and observations. Minor gaps exist, such as no explicit tool for updating entities or relations, but agents can likely work around this using deletion and recreation.
Maintenance
Related MCP Connectors
Company brain for AI agents — temporal knowledge graph search, exploration, and durable memory.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Persistent knowledge graph for AI-augmented teams. Store decisions, findings, and standing rules across agent sessions with semantic search and typed connections. Includes cross-session memory, audit trail, workspace isolation, and secret detection. Built for teams running agents that need to remember. Free until launch with team tier as default, anon trial available.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using AST-aware chunking and relationship tracking. Supports local LLM embeddings, real-time indexing, and cross-codebase dependency analysis through vector and graph databases.3MIT
- FlicenseNot gradedqualityCmaintenanceTransforms code repositories and development documentation into a queryable Neo4j knowledge graph, enabling AI assistants to perform intelligent code analysis, dependency mapping, impact assessment, and automated documentation generation across 15+ programming languages.7-
- AlicenseNot gradedqualityCmaintenanceProvides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.MIT
- AlicenseAqualityDmaintenanceEnables creating and querying semantic knowledge graphs to model business logic, code relationships, and project structure across multiple projects.111MIT