mcp-codebase-oracle
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., "@mcp-codebase-oracle Analyze impact of changing processOrder function in orders.py"
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.
🔮 MCP Codebase Oracle
"Bu kodu kim yazdı, ne yapıyor anlamıyorum" sorusunu tarihe gömüyoruz.
MCP Codebase Oracle, herhangi bir yazılım projesini analiz eden, mimari yapıyı çıkaran ve kod değişikliklerinin etkisini önceden gösteren bir Model Context Protocol (MCP) sunucusudur.
✨ Özellikler
Özellik | Açıklama |
🏗️ Mimari Tespit | MVC, Layered, Hexagonal, Clean Architecture ve diğer pattern'leri otomatik tespit |
🕸️ Bağımlılık Grafı | Modüller, sınıflar ve fonksiyonlar arası ilişki haritası |
💥 Etki Analizi | "Bu kodu değiştirirsem ne bozulur?" sorusuna kesin cevap |
📊 Karmaşıklık Metrikleri | Cyclomatic, cognitive complexity ve maintainability index |
🔍 Sembol Arama | Fonksiyon, sınıf, değişken arama ve detay görüntüleme |
📖 Kod Açıklama | Dosya ve fonksiyon bazlı insan tarafından anlaşılır açıklamalar |
🎯 Dead Code Tespiti | Kullanılmayan kod parçalarını bulma |
🌊 Görselleştirme | Mermaid diyagramları ile grafik çıktılar |
Related MCP server: GID MCP Server
🚀 Kurulum
uv ile (önerilen)
# Projeyi klonla
git clone https://github.com/iamseyhmus7/mcp-codebase-oracle.git
cd mcp-codebase-oracle
# Bağımlılıkları kur
uv sync
# Çalıştır
uv run mcp-codebase-oraclepip ile
pip install mcp-codebase-oracleDocker ile
docker build -t mcp-codebase-oracle .
docker run -v /path/to/project:/project:ro mcp-codebase-oracle⚡ MCP İstemci Konfigürasyonu
Claude Desktop
claude_desktop_config.json dosyasına ekle:
{
"mcpServers": {
"codebase-oracle": {
"command": "uv",
"args": [
"--directory", "/path/to/mcp-codebase-oracle",
"run", "mcp-codebase-oracle"
]
}
}
}VS Code (Copilot / Continue)
{
"mcp.servers": {
"codebase-oracle": {
"command": "mcp-codebase-oracle",
"args": []
}
}
}🔧 Kullanılabilir Tool'lar
Tarama & İndeksleme
scan_project— Proje tarama ve indekslemerescan_project— Incremental güncellemeget_project_summary— Proje özeti
Sorgulama
find_symbol— Fonksiyon/sınıf/değişken aramaget_symbol_detail— Sembol detaylarısearch_code— Kod içi aramaget_file_overview— Dosya yapı özeti
Graf Analizi
get_dependency_graph— Bağımlılık grafıget_call_graph— Fonksiyon çağrı grafıget_class_hierarchy— Sınıf hiyerarşisifind_circular_dependencies— Döngüsel bağımlılık tespiti
Etki Analizi
analyze_impact— Değişiklik etki analiziwhat_if_delete— Silme senaryosuwhat_if_rename— Yeniden adlandırma senaryosufind_dead_code— Kullanılmayan kod tespiti
Mimari
detect_architecture— Mimari pattern tespitiget_module_coupling— Modül bağlılık metrikleridetect_code_smells— Kod kokusu tespiti
Açıklama & Görselleştirme
explain_file— Dosya açıklamaexplain_function— Fonksiyon açıklamagenerate_onboarding_guide— Onboarding rehberigenerate_architecture_diagram— Mimari diyagramgenerate_dependency_matrix— Bağımlılık matrisigenerate_hotspot_map— Hotspot haritası
🗣️ Desteklenen Diller
Dil | Parser | Durum |
Python |
| ✅ Tam destek |
JavaScript/TypeScript | tree-sitter | 🔜 Yakında |
Java | tree-sitter | 🔜 Yakında |
Go | tree-sitter | 🔜 Yakında |
Rust | tree-sitter | 🔜 Yakında |
C# | tree-sitter | 🔜 Yakında |
Diğerleri | regex (generic) | ⚡ Temel destek |
🛠️ Geliştirme
# Dev bağımlılıklarını kur
uv sync --extra dev
# Testleri çalıştır
uv run pytest -v
# Linting
uv run ruff check src/ tests/
# Type checking
uv run mypy src/
# MCP Inspector ile test
uv run mcp dev src/mcp_codebase_oracle/server.py📄 Lisans
MIT License — Detaylar için LICENSE dosyasına bakın.
Available Tools
24 toolsanalyze_impactB
Bir değişikliğin etkisini analiz eder — PROJENİN KALBİ.
Args: path: Proje kök dizini file: Değiştirilecek dosya yolu symbol: Değiştirilecek sembol adı (opsiyonel) change_type: Değişiklik türü — "modify", "delete" veya "rename"
Returns: Etki raporu — etkilenen dosyalar, risk seviyesi, Mermaid diyagramı
Inputs: path (required), file (required), symbol, change_type. Returns: result
detect_architectureB
Projenin mimari pattern'ini tespit eder.
Args: path: Proje kök dizini
Returns: Mimari rapor — pattern, güven skoru, kanıtlar, katman haritası, diyagram
Inputs: path (required). Returns: result
detect_code_smellsA
Kod kokularını (code smells) tespit eder.
Args: path: Proje kök dizini file: Belirli dosya (None ise tüm proje, sadece Python)
Returns: Code smell listesi — kategori, şiddet, dosya, öneri
Inputs: path (required), file. Returns: result
explain_fileC
Bir dosyayi insan tarafindan anlasilir sekilde aciklar.
Args: path: Proje kok dizini file_path: Analiz edilecek dosya yolu detail_level: Detay seviyesi (brief, detailed, comprehensive)
Inputs: path (required), file_path (required), detail_level. Returns: result
explain_functionB
Bir fonksiyonun ne yaptigini, parametrelerini ve yan etkilerini aciklar.
Args: path: Proje kok dizini file_path: Fonksiyonun bulundugu dosya function_name: Aciklanacak fonksiyon adi
Inputs: path (required), file_path (required), function_name (required). Returns: result
find_circular_dependenciesB
Döngüsel bağımlılıkları tespit eder.
Args: path: Proje kök dizini
Returns: Tespit edilen döngüsel bağımlılık listesi ve öneriler
Inputs: path (required). Returns: result
find_dead_codeB
Kullanılmayan (dead) kodu tespit eder.
Args: path: Proje kök dizini file: Belirli bir dosya (None ise tüm proje)
Returns: Kullanılmayan fonksiyon, sınıf ve import listesi
Inputs: path (required), file. Returns: result
find_symbolA
Projede fonksiyon, sınıf veya değişken arar.
Args: path: Proje kök dizini name: Aranacak sembol adı (kısmi eşleşme desteklenir) kind: Sembol türü filtresi — "function", "class", "method", "variable" veya "all"
Returns: Eşleşen sembol listesi (dosya, satır, imza)
Inputs: path (required), name (required), kind. Returns: result
generate_architecture_diagramC
Proje mimarisi diyagramını Mermaid formatında üretir.
Args: path: Proje kök dizini style: "detailed", "simplified" veya "layers"
Inputs: path (required), style. Returns: result
generate_dependency_matrixB
Bağımlılık matrisini tablo olarak üretir.
Args: path: Proje kök dizini
Inputs: path (required). Returns: result
generate_hotspot_mapC
Kod değişiklik sıcaklık haritasını üretir (git blame tabanlı).
Args: path: Proje kök dizini top_n: Gösterilecek hotspot sayısı
Inputs: path (required), top_n. Returns: result
generate_onboarding_guideB
Yeni gelistiriciler icin projenin genel calisma mantigini anlatan bir rehber olusturur.
Args: path: Proje kok dizini
Inputs: path (required). Returns: result
get_call_graphA
Fonksiyon çağrı grafını döndürür.
Args: path: Proje kök dizini function_name: Hedef fonksiyon adı direction: "callers" (çağıranlar), "callees" (çağrılanlar) veya "both" depth: Maksimum derinlik
Returns: Çağrı grafı — Mermaid diyagramı ve detaylar
Inputs: path (required), function_name (required), direction, depth. Returns: result
get_class_hierarchyA
Sınıf kalıtım hiyerarşisini döndürür.
Args: path: Proje kök dizini class_name: Belirli bir sınıf (None ise tüm sınıflar)
Returns: Sınıf hiyerarşisi — Mermaid class diagram
Inputs: path (required), class_name. Returns: result
get_dependency_graphB
Modüller arası bağımlılık grafını döndürür.
Args: path: Proje kök dizini root_file: Başlangıç dosyası (None ise tüm proje) depth: Maksimum derinlik
Returns: Bağımlılık grafı — node listesi, edge listesi ve Mermaid diyagramı
Inputs: path (required), root_file, depth. Returns: result
get_file_overviewA
Bir dosyanın yapısal özetini çıkarır.
Args: path: Proje kök dizini file: Dosya yolu (proje-relative)
Returns: Dosya yapısı — importlar, sınıflar, fonksiyonlar, exportlar
Inputs: path (required), file (required). Returns: result
get_module_couplingA
Bir modülün coupling metriklerini hesaplar.
Args: path: Proje kök dizini module: Modül/dosya yolu
Returns: Coupling metrikleri — afferent, efferent, instability
Inputs: path (required), module (required). Returns: result
get_project_summaryA
Taranan projenin genel özetini döndürür.
Önce scan_project ile projeyi tarayın, sonra bu tool ile özet alın.
Args: path: Proje kök dizini
Returns: Proje özeti — dil, dosya sayısı, satır, metrikler
Inputs: path (required). Returns: result
get_symbol_detailC
Bir sembolün detaylı bilgisini döndürür.
Args: path: Proje kök dizini file: Dosya yolu (proje-relative) name: Sembol adı
Returns: Sembol detayları — imza, docstring, callers, callees, karmaşıklık
Inputs: path (required), file (required), name (required). Returns: result
rescan_projectA
Daha önce taranan projeyi günceller (incremental).
Sadece değişen dosyaları yeniden parse eder.
Args: path: Proje kök dizini
Returns: Değişiklik raporu — yeni, değişen ve silinen dosyalar
Inputs: path (required). Returns: result
scan_projectA
Bir projeyi tarar ve indeksler.
Proje dizinindeki tüm kaynak dosyalarını bulur, parse eder, sembol ve ilişkileri çıkarır. Sonuçları cache'ler.
Args: path: Proje kök dizini (mutlak veya relative path) exclude_patterns: Ek hariç tutma pattern'leri (gitignore formatı) max_depth: Maksimum dizin derinliği (default: 50)
Returns: Proje özeti — dosya sayısı, dil dağılımı, framework tespiti
Inputs: path (required), exclude_patterns, max_depth. Returns: result
search_codeB
Proje dosyalarında metin/regex araması yapar.
Args: path: Proje kök dizini query: Aranacak metin veya regex pattern file_pattern: Dosya filtresi (ör: ".py", "src/.ts")
Returns: Eşleşen dosyalar ve satırlar
Inputs: path (required), query (required), file_pattern. Returns: result
what_if_deleteA
Bu dosyayı/fonksiyonu silersem ne olur?
Args: path: Proje kök dizini target: Silinecek hedef (dosya yolu veya sembol adı) target_type: Hedef türü — "file", "function" veya "class"
Returns: Silme senaryosu — bozulacak importlar, çağrılar, güvenli mi?
Inputs: path (required), target (required), target_type. Returns: result
what_if_renameA
Bu sembolü yeniden adlandırsam nereleri değiştirmem gerekir?
Args: path: Proje kök dizini target: Yeniden adlandırılacak sembol adı new_name: Yeni isim
Returns: Güncellenmesi gereken dosya ve satır listesi
Inputs: path (required), target (required), new_name (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
All 24 tools have clearly distinct purposes. Each targets a specific aspect of code analysis (e.g., scanning, searching, impact analysis, visualization) with no overlapping functionality.
All tool names follow a consistent verb_noun pattern in snake_case, such as analyze_impact, detect_architecture, scan_project. The naming is predictable and uniform.
With 24 tools, the server covers a comprehensive range of codebase analysis operations without being overwhelming. The count is well-suited for the server's purpose.
The tool set covers core code analysis workflows: scanning, searching, explanation, dependency analysis, impact analysis, and visualization. Minor gaps exist, such as lack of diff or metric reporting tools, but the surface is largely complete.
Maintenance
Related MCP Connectors
Change-impact intelligence for tracing dependencies, stale references and required updates.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Related MCP Servers
- FlicenseAqualityDmaintenanceAnalyzes codebases to generate dependency graphs and architectural insights across multiple programming languages, helping developers understand code structure and validate against architectural rules.620-
- AlicenseAqualityDmaintenanceEnables AI to analyze, query, and manage a graph-based representation of software architecture for impact analysis, dependency tracking, and design.201AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceProvides intelligent codebase analysis, dependency scanning, architecture detection, security vulnerability scanning, and automatic documentation generation for modern development teams.15 npmMIT
- AlicenseNot gradedqualityDmaintenanceAnalyzes GitHub and local repositories to automatically generate visual architectural diagrams such as dependency graphs, class diagrams, and data flow diagrams.2MIT