JC

justrach/codedb

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1397 stars 88 forks 质量 85 趋势 43BSD-3-Clause

Zig代码智能服务器和面向AI代理的MCP工具集。快速的树状、大纲、符号、搜索、阅读、编辑、DEPS、快照及远程GitHub仓库查询。

概览

AI代理的代码智能服务器。Zig核心。MCP原生。零依赖。 结构性索引 ·三字组搜索 ·词索引 ·依赖图 ·文件监控 ·MCP + HTTP 这是一个上下文引擎,而不是编辑器。CodeDB 帮助代理查找和理解代码——搜索、符号、调用者、依赖、大纲——并将编辑工作交还给你的原生工具。codedb_edit只是一个备选方案。 状态 ·安装 ·快速启动 ·MCP工具 ·基准测试 ·架构 ·数据与隐私 ·建筑 codedb 在生产 AI 工作流中每天都能使用并被使用,但:— Zig、C/C++、Python、TypeScript/JavaScript、Rust、Go、PHP、Ruby、HCL、R、Dart/Flutter — Java、Kotlin、Svelte、Vue、Astro、shell、CSS/SCSS、SQL、protobuf、Fortran、LLVM IR、MLIR 和 TableGen - 仅 HTTP 服务器绑定到 localhost——版本间可能有所变化 - 是 JSON-RPC 2。

概述(AI 翻译)

CodeDB 大仓库。小地图。找到重要的代码。

你的编码智能。内置Zig。通过MCP连接。

安装· 快速入门 · 工具 · 基准测试 · 数据与隐私 · 安全带· 认识一下家人 ↗

你的代理有任务。你的仓库里有它需要的定义, 解释它的呼叫者,以及保持诚信的测试。codedb 绘制 地图:聚焦源上下文、符号、调用者、轮廓和依赖关系。 你的编码客户端使用自己的原生工具来进行编辑。

上下文引擎,不是编辑器。 codedb 没有编辑功能。请与之结合使用 Graff、Claude Code、Codex、Gemini CLI、Cursor、Windsurf、Devin、oh-my-pi、Hermes、Qwen Code、ZCode、Trae、Cline、Copilot CLI、Antigravity、Kiro、OpenCode,或其他MCP客户端。

🧭 给你的经纪人一个指南针

问问你的经纪人… CodeDB帮你…
“会话刷新发生在哪里?” 查找相关文件和源摘录,使用 codedb_context
“请解释这个函数以及谁使用它。” 请阅读定义和调用者,使用 codedb_explain

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

codedb Big repo. Little map. Find the code that matters.

Code intelligence for your coding agent. Built in Zig. Connected over MCP.

Install · Quick start · Tools · Benchmarks · Data & privacy · Harness · Meet the family ↗

Your agent has a task. Somewhere in your repository are the definition it needs, the caller that explains it, and the test that keeps it honest. codedb draws the map: focused source context, symbols, callers, outlines, and dependencies. Your coding client uses its own native tools to make the edit.

A context engine, not an editor. codedb has no edit capability. Use it with Graff, Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Devin, oh-my-pi, Hermes, Qwen Code, ZCode, Trae, Cline, Copilot CLI, Antigravity, Kiro, OpenCode, or another MCP client.

🧭 Give your agent a compass

Ask your agent… codedb helps it…
“Where does session refresh happen?” Find relevant files and source excerpts with codedb_context
“Explain this function and who uses it.” Read the definition and callers with codedb_explain
“How does this request reach the database?” Trace a chain between symbols with codedb_callpath
“What’s in this part of the repo?” Browse with codedb_list_dir and inspect file outlines
在 GitHub 查看完整 README

安装

npx -y codedeebee mcp
新手?先看 mcpskill.org 教程 →