JC

johnhuang316/code-index-mcp

Developer tools

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

1007 stars 118 forks 品質 76 トレンド 27MIT

大規模言語モデルが最小限の設定でコードリポジトリをインデックス化、検索、解析するのを支援するモデルコンテキストプロトコル(MCP)サーバー

概要

高度な検索、分析、ナビゲーション機能でAIがあなたのコードベースを理解する方法を変革しましょう。 Code Index MCPは、AIモデルと複雑なコードベースのギャップを埋めるモデルコンテキストプロトコルサーバーです。インテリジェントなインデックス作成、高度な検索機能、詳細なコード分析を提供し、AIアシスタントがプロジェクトを理解し効果的にナビゲートできるようにします。 コードレビュー、リファクタリング、ドキュメント作成、デバッグ支援、アーキテクチャ分析。 MCP互換アプリケーションを始める最も簡単な方法は以下の通りです: 1.(例:claude_desktop_config.jsonまたは~/.claude.json):オプション:args配列に--project-path /absolute/path/to/repoを追加し、サーバーがそのリポジトリで自動的に初期化できるようにします(起動後にset_project_pathを呼び出すのと同等)。 2. – UVXは自動的にインストールと実行を担当します 3.

概要(AI 翻訳)

大規模言語モデル向けのインテリジェントコードインデックス作成と解析

高度な検索、分析、ナビゲーション機能でAIがあなたのコードベースを理解する方法を変革しましょう。

概要

Code Index MCPは、AIモデルと複雑なコードベースのギャップを埋めるモデルコンテキストプロトコルサーバーです。インテリジェントなインデックス作成、高度な検索機能、詳細なコード分析を提供し、AIアシスタントがプロジェクトを理解し効果的にナビゲートできるようにします。

最適: コードレビュー、リファクタリング、ドキュメント作成、デバッグ支援、アーキテクチャ分析。

クイックスタート

🚀 推奨セットアップ(ほとんどのユーザー)

MCP互換アプリケーションを始める最も簡単な方法は以下の通りです:

前提条件: Python 3.10+ and uv

  1. MCP設定に追加する(例:claude_desktop_config.jsonまたは~/.claude.json):

オプション:--project-path /absolute/path/to/repoをargs配列に追加してサーバーを動かす はそのリポジトリで自動的に初期化されます(set_project_pathを呼び出すのと同等です)。 起動後)です。

  1. アプリケーションの再起動 – uvxが自動的にインストールと実行を処理します

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

README

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

Code Index MCP

Overview

Code Index MCP is a Model Context Protocol server that bridges the gap between AI models and complex codebases. It provides intelligent indexing, advanced search capabilities, and detailed code analysis to help AI assistants understand and navigate your projects effectively.

Perfect for: Code review, refactoring, documentation generation, debugging assistance, and architectural analysis.

Quick Start

🚀 Recommended Setup (Most Users)

The easiest way to get started with any MCP-compatible application:

Prerequisites: Python 3.10+ and uv

  1. Add to your MCP configuration (e.g., claude_desktop_config.json or ~/.claude.json):

    {
      "mcpServers": {
        "code-index": {
          "command": "uvx",
          "args": ["code-index-mcp"]
        }
      }
    }
    

    Optional: append --project-path /absolute/path/to/repo to the args array so the server initializes with that repository automatically (equivalent to calling set_project_path after startup).

  2. Restart your application – uvx automatically handles installation and execution

  3. Start using (give these prompts to your AI assistant):

    Set the project path to /Users/dev/my-react-app
    Find all TypeScript files in this project  
    Search for "authentication" functions
    Analyze the main App.tsx file
    

    If you launch with --project-path, you can skip the first command above - the server already knows the project location.

Codex CLI Configuration

If you are using Anthropic’s Codex CLI, add the server to ~/.codex/config.toml. On Windows the file lives at C:\Users\\.codex\config.toml:

[mcp_servers.code-index]
type = "stdio"
command = "uvx"
args = ["code-index-mcp"]

You can append --project-path C:/absolute/path/to/repo to the args list to set the project automatically on startup (same effect as running the set_project_path tool).

On Windows, uvx needs the standard profile directories to be present. Keep the environment override in the same block so the MCP starts reliably:

env = {
GitHub で README 全文を見る

インストール

uvx code-index-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "code-index": { "command": "uvx", "args": ["code-index-mcp"] } } }