CodeAtlas AI 标志

CodeAtlas AI

社区
giauphan

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

发布者giauphan
代码仓库codeatlas-platform
语言TypeScript
复刻数
1
星标数
12
可用工具
23
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    CodeAtlas AI 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 23 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 12 个 Star 和 1 个 Fork。

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.

安装

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

可用工具

  • 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.

将 CodeAtlas AI MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 CodeAtlas AI 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 CodeAtlas AI 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 CodeAtlas AI MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "codeatlas-platform": {
      "command": "npx",
      "args": [
        "-y",
        "codeatlas-ai"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 CodeAtlas AI MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 CodeAtlas AI MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 CodeAtlas AI 帮我完成这项任务吗?
CodeAtlas AI
当然。我已阅读。
以下是我使用 CodeAtlas AI 得到的结果。

常见问题

CodeAtlas AI MCP 服务器有什么用途?

CodeAtlas AI 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 CodeAtlas AI MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 CodeAtlas AI,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 CodeAtlas AI MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 CodeAtlas AI 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 CodeAtlas AI MCP 连接到 TypingMind?

CodeAtlas AI 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

CodeAtlas AI MCP 在 TypingMind 中提供哪些工具?

CodeAtlas AI 提供 23 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 CodeAtlas AI MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 CodeAtlas AI 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇