DC

duysolo/codebaxing

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

52 stars 6 forks 品質 76 トレンド 0MIT

duysolo/codebaxing は https://github.com/duysolo/codebaxing. からインポートされた MCP サーバーの候補です

概要

duysolo/codebaxing は https://github.com/duysolo/codebaxing. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

中国語(簡体)

MCP サーバー (semantic code search) コードベースを一度インデックス化し、自然言語で検索します。

使い方

伝統的な検索は、正確なテキストと一致します。 Codebaxing は意味を理解する:

お問い合わせ 特定非営利活動法人 特定非営利活動法人 特定非営利活動法人 特定非営利活動法人 特定非営利活動法人
「認証」 ログイン()、認証認証()、authMiddleware()
「データベース接続」 connectDB()、prismaClient、repository.query()

クイックスタート

##1. ChromaDBを起動する

##2. コードベースをインデックス化 (CLI)

インデックスで.codebaxing/フォルダを作成します。 プロジェクトごとに一度だけ行う必要があります。

**パフォーマンスノート:**ローカルの埋め込みは遅くなります(~4分〜4,000ファイル)。 より高速なインデックス化のために、Gemini の埋め込み (無料) を使用して、クラウドの埋め込みを参照してください。

##3。 AIエディタ用のMCP Serverをインストールする

エディタを再起動します。 「認証ロジックの修正」

#CLI コマンド

| コマンド | 説明 | お問い合わせ | [[T1] | コードベースをインデックス化(**必須) | | [npx codebaxing search | インデックスの検索 | | [npx codebaxing stats [path] | 株価指数の推移 |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Codebaxing

English | Tiếng Việt

MCP server for semantic code search. Index your codebase once, then search using natural language.

How It Works

Your Code → Tree-sitter Parser → Symbols → Embedding Model → Vectors → ChromaDB
                                                                           ↓
"find auth logic" → Embedding → Query Vector → Similarity Search → Results

Traditional search matches exact text. Codebaxing understands meaning:

Query Finds (even without exact match)
“authentication” login(), validateCredentials(), authMiddleware()
“database connection” connectDB(), prismaClient, repository.query()

Quick Start

1. Start ChromaDB

docker run -d -p 8000:8000 --name chromadb chromadb/chroma

2. Index Your Codebase (CLI)

npx codebaxing@latest index /path/to/your/project

This creates a .codebaxing/ folder with the index. Only needs to be done once per project.

Performance note: Local embedding is slow (~4 min for ~4,000 files). For faster indexing, use Gemini embedding (free) — see Cloud Embedding below.

3. Install MCP Server for AI Editors

npx codebaxing install              # Claude Desktop
npx codebaxing install --cursor     # Cursor
npx codebaxing install --windsurf   # Windsurf
npx codebaxing install --all        # All editors

Restart your editor. Now you can ask: “Find the authentication logic”

CLI Commands

Command Description
npx codebaxing@latest index Index a codebase (required first)
npx codebaxing search Search indexed code
npx codebaxing stats [path] Show index statistics
npx codebaxing clean [path] Remove index (reset)
npx codebaxing install [--editor] Install MCP server
npx codebaxing uninstall [--editor] Uninstall MCP server

Tip: Use @latest for index to ensure you have the newest version.

Search Options

npx codebaxing search "auth middleware" --path ./src --limit 10
  • --path, -p - Codebase path (default: current directory)
  • --limit, -n - Number of results (default: 5)

MCP Tools (for AI Agents)

After installing, AI agents can use these tools:

Tool Description
search Semantic code search
stats Index statistics
languages Supported file extensions
remember Store project memory
recall Retrieve memories
forget Delete memories

Note: The index tool is disabled for AI agents. Use CLI: npx codebaxing@latest index

Configuration

Cloud Embedding (Fastest)

GitHub で README 全文を見る

インストール

npx -y codebaxing
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "codebaxing": { "command": "npx", "args": ["-y", "codebaxing"], "env": { "CHROMADB_URL": "http://localhost:8000" } } } }