Logo CodeAtlas AI

CodeAtlas AI

Cộng đồng
giauphan

AI-powered codebase intelligence platform — MCP Server, AST analysis, Knowledge Graph, and semantic memory with SQLite + sqlite-vec. Analyze any codebase in minutes.

Nhà phát hànhgiauphan
Kho mãcodeatlas-platform
Ngôn ngữTypeScript
Bản fork
1
Sao
12
Công cụ có sẵn
23
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    CodeAtlas AI cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 23 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    12 sao và 1 bản fork từ kho mã được liên kết.

CodeAtlas Platform

CI Node.js License: MIT npm version GitHub release

AI-powered codebase intelligence platform — MCP Server, AST analysis, Knowledge Graph, and semantic memory with SQLite + sqlite-vec as the default database.

Ship a secure, multi-tenant codebase intelligence backend without rebuilding authentication, MCP tooling, semantic memory, and knowledge graph infrastructure from scratch. CodeAtlas Platform is an open-source foundation for developers who want a clear starting point for AI-native code analysis services.

[!IMPORTANT] This repository is a foundation, not a substitute for a threat model. Review Known limitations and adapt the defaults to your infrastructure before serving production traffic.

Why this platform?

ConcernIncluded foundation
MCP Server30+ tools via stdio or SSE transport (Claude, Cursor, VSCode)
Semantic memoryDream memory store with SQLite + sqlite-vec vector search
Knowledge graphGenome DNA + immune system patterns, consolidation engine
Multi-tenantTenant isolation via authStorage.run + Firebase auth
AST analysisTypeScript/Python/JS parsing via @typescript-eslint/typescript-estree and py-ast
DeepWikiMulti-provider LLM (Anthropic/OpenAI/Ollama) automated architecture documentation with Q&A
Security scannerEnterprise vulnerability scanning built-in
A2A protocolAgent-to-agent orchestration with registry
DashboardReact + Vite management UI for API keys and projects

Architecture

AI IDE (Claude/Cursor) → MCP (stdio/SSE) → Platform :3381 → SQLite + sqlite-vec + Firebase + NVIDIA
LayerComponents
PresentationExpress HTTP, MCP SSE, A2A Agent Protocol, REST API
ServicesDream Memory, Genome DNA, Second Brain, Consolidation Engine, Security Scanner
DataSQLite + sqlite-vec (PostgreSQL optional), Firebase Firestore, NVIDIA NIM embeddings

Architecture diagrams

DiagramFile
System architecturediagrams/system.mmd
Second Brain flowdiagrams/second-brain.mmd
Dream lifecyclediagrams/dreams.mmd
Genome + Immune systemdiagrams/genome.mmd
MCP architecturearchitecture/mcp.md
Deploymentdiagrams/deployment.mmd
A2A + Syncdiagrams/a2a-sync.mmd

Quick start

Requirements

  • Node.js 20+
  • pnpm 9+ (corepack enable && corepack prepare pnpm@9 --activate)
  • SQLite + sqlite-vec (bundled — no external database server required)
  • Firebase service account (for multi-tenant auth)
  • NVIDIA NIM API key (for embeddings)

1. Clone and install

bash
git clone https://github.com/giauphan/codeatlas-platform.git
cd codeatlas-platform
pnpm install

2. Configure environment

bash
cp .env.example .env
# Edit .env with your Firebase and NVIDIA credentials

See docs/CONFIGURATION.md or docs/DEVELOPMENT.md for the full env var reference.

3. Build

bash
pnpm run build

4. Initialize database

bash
pnpm run db-init

5. Start the server

bash
# Production mode (SSE on :3381)
PORT=3381 pnpm start

# Development mode (hot reload)
pnpm run dev

# Stdio mode (for Claude Desktop — leave PORT unset)
pnpm start

Server runs at http://localhost:3381. Health check: GET /health.

MCP integration

Claude Desktop (stdio)

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "codeatlas": {
      "command": "npx",
      "args": ["-y", "codeatlas-ai"],
      "env": {
        "CODEATLAS_API_KEY": "your_api_key"
      }
    }
  }
}

Cursor / VSCode (SSE)

json
{
  "mcpServers": {
    "codeatlas": {
      "url": "http://localhost:3381/sse"
    }
  }
}

See docs/API_EXAMPLES.md for full curl flows and transport modes.

MCP tools (30+)

CategoryTools
Dreamssave_dream_memory, query_dream_memories, sync_dreams
Genomesearch_genome, save_genome, scan_immune
Skillssearch_skills, get_skill, install_skill
Scannerscan_enterprise_vulnerabilities
Codecode_search, search_files, read_file
Projectslist_projects, get_project_structure, get_dependencies
Architecturegenerate_system_flow, generate_feature_flow_diagram, trace_feature_flow
DeepWikideepwiki_generate, deepwiki_get_tree, deepwiki_get_page, deepwiki_query

Full tool reference: docs/architecture/mcp.md.

Documentation

GuidePurpose
DevelopmentLocal dev setup, env vars, troubleshooting
DeploymentPM2, systemd, Nginx TLS reverse proxy
DeepWikiLLM config, Markdown docs, architecture generation
API examplescurl flows, MCP configs, REST endpoints
Architecture overviewLayers, services, integrations
MCP architectureTool registration, transports, request flow
Quick setupLegacy condensed guide

Known limitations

  • SQLite dependency: Data lives in a local SQLite file (default ./data/codeatlas.db) with sqlite-vec for vector search. Postgres is available as an opt-in backend.
  • Firebase auth: Multi-tenant mode requires Firebase Admin SDK + service account. API-key-only mode supported for single-tenant.
  • NVIDIA embeddings: Vector search depends on NVIDIA NIM API. Without NVIDIA_API_KEY, queries fall back to date-ordered results.
  • Local indexing: Pure cloud deployments cannot index local code — run the codeatlas-ai client locally to sync AST data.
  • Dashboard: Management UI ships separately in dashboard/ — build and deploy independently.

See CHANGELOG.md for release history.

Contributing

Bug reports, documentation fixes, tests, and focused feature contributions are welcome. Start with CONTRIBUTING.md, then look for issues labeled good first issue or help wanted.

For security vulnerabilities, follow SECURITY.md instead of opening a public issue.

License

Distributed under the MIT License. Maintained by @giauphan.

Cài đặt

TypingMind
{
  "mcpServers": {
    "codeatlas-platform": {
      "command": "npx",
      "args": [
        "codeatlas-enterprise"
      ]
    }
  }
}

Công cụ có sẵn

  • analyze

    Perform deep code analysis on a local project directory. Generates AST analysis in memory and syncs to CodeAtlas Cloud.

  • list_projects

    List all projects that have been analyzed by CodeAtlas. Returns project names, paths, and last analysis time.

  • get_project_structure

    Get all modules, classes, functions, and variables in the analyzed project. Returns entity type, name, file path, and line number.

  • get_dependencies

    Get import/call/containment/implements relationships between entities. Shows how modules, classes, and functions are connected.

  • get_insights

    Get AI-generated code insights including refactoring suggestions, security issues, and maintainability analysis.

  • search_entities

    Search for functions, classes, modules, or variables by name. Supports fuzzy matching.

  • get_file_entities

    Get all entities (classes, functions, variables) defined in a specific file.

  • generate_system_flow

    Auto-generate a Mermaid flowchart diagram showing how modules, classes, and functions connect in the system. Returns a Mermaid diagram string that AI can read to understand the full system flow without reading every file.

  • sync_system_memory

    Create or update the .agents/memory/ folder with auto-generated system documentation. This folder serves as AI's 'long-term memory' — it persists between conversations. After calling this, AI in any future conversation can read these files to understand the full system flow without re-analyzing. Call this after completing any code changes.

  • get_system_memory

    Retrieve the auto-generated system documentation and episodic memories (business rules and change logs) for a project from CodeAtlas Cloud / Oracle 26ai.

  • save_dream_memory

    Save a dream memory (mistake, preference, knowledge, or pattern) to CodeAtlas Cloud for long-term AI recall. The AI uses this to persist learnings across conversations.

  • query_dream_memories

    Query previously saved dream memories from CodeAtlas Cloud. Uses semantic search to find relevant memories based on the query text. Returns memories with relevance scores.

  • trace_feature_flow

    Trace the complete flow of a feature through the codebase. Given a keyword (e.g. 'login', 'payment', 'crawl'), finds all related files, classes, and functions, then orders them by dependency chain to show the execution flow. This helps AI understand which files to read when working on a feature.

  • generate_feature_flow_diagram

    Generate a Mermaid diagram showing the EXECUTION FLOW of a feature. Unlike generate_system_flow (which shows module imports), this traces the actual call chain: entry point → controller → service → model → database. Given a keyword, it finds all related functions and classes, then builds a flowchart or sequence diagram showing how they call each other at runtime. This is the best tool for understanding HOW a feature works step-by-step.

  • detect_architectural_smells

    Knowledge Graph Reasoning: Use Oracle 26ai Graph features to automatically detect architectural weaknesses, circular dependencies, God objects, and dead code.

  • scan_enterprise_vulnerabilities

    Enterprise Scanner: Automatically scan all analyzed projects for bugs, security vulnerabilities (hardcoded secrets, unsafe functions), and architectural problems. Features Admin Insights and Security Scoring.

  • code_search

    Search source FILE CONTENTS across the entire project for any text string. Unlike 'search_entities' (which only searches entity names), this searches the actual code — comments, strings, variable names, function bodies, etc.

  • get_callers

    Find ALL functions, methods, or classes that call or reference a specific symbol. The 'reverse dependency' view — given a function/class name, trace everything that depends on it. Use before refactoring or deleting code.

  • get_callees

    Find everything a function, method, or class calls or depends on. The 'forward dependency' view — given a function name, trace what it imports and calls. Use to understand function dependencies before modifying.

  • impact_analysis

    Full BLAST RADIUS analysis for changing a symbol. Traces BOTH callers (what depends on this) AND callees (what this depends on) in one view. Also finds related test files. Use BEFORE any significant code change.

  • project_context

    Get a comprehensive overview of a project in ONE call: package.json (name, version, scripts, deps, devDeps), config files detected, README summary, test framework, git branch. Saves 5-10 individual read_file calls when starting work.

  • run_script

    Run an npm/pnpm/yarn script from package.json. Returns exit code, stdout/stderr, and duration. Handles cd to project dir automatically.

  • git_changes

    Get recent git changes: last N commits (hash, author, date, message, files changed), uncommitted changes (modified/added/deleted), branch status (ahead/behind). Saves multiple git commands.

Dùng MCP CodeAtlas AI với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối CodeAtlas AI, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm CodeAtlas AI làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của CodeAtlas AI.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "codeatlas-platform": {
      "command": "npx",
      "args": [
        "-y",
        "codeatlas-ai"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của CodeAtlas AI, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của CodeAtlas AI.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng CodeAtlas AI giúp tôi làm việc này không?
CodeAtlas AI
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng CodeAtlas AI.

Câu hỏi thường gặp

Máy chủ MCP CodeAtlas AI dùng để làm gì?

CodeAtlas AI là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP CodeAtlas AI với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng CodeAtlas AI với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP CodeAtlas AI với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối CodeAtlas AI, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP CodeAtlas AI với TypingMind?

CodeAtlas AI hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP CodeAtlas AI cung cấp những công cụ nào trong TypingMind?

CodeAtlas AI cung cấp 23 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP CodeAtlas AI không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu CodeAtlas AI yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇