
luotocompany/cursor-local-indexing
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCP サーバーとして公開された Cursor の ChromaDB 搭載ローカルインデックス化のサポート
概要
ChromaDBを使用してコードベースをインデックス化し、Cursor のようなツールの MCP (Model Context Protocol) サーバを介して、セマンティックな検索ツールを提供します。 2. .env.example をコピーして .env ファイルを作成します。 5. ローカル検索サーバーを使用するCursorの設定:~/.cursor/mcp.jsonの作成または編集: 6. 変更を加えるためにカーソルIDEを再起動します。 サーバは、指定されたプロジェクトをインデックス化し始めます。これらのプロジェクトがアクティブなときに、Cursor内でのコード検索を使用できます。 7. インデックスとして設定したプロジェクトを開きます。 .cursorrulesファイルを作成し、以下を追加します。 8. Cursor Agent モードを使用して起動し、ローカル ベクトル検索を実行します。!
概要(AI 翻訳)
実験的な Python ベースのサーバーで、locally は、ChromaDB を使用してコードベースをインデックス化し、Cursor のようなツールの MCP (Model Context Protocol) サーバを介してセマンティックな検索ツールを提供します。
セットアップ
-
リポジトリをクローンして入力します。
-
[
.env.example]をコピーして[[.env.example]ファイルを作成する: -
[
.envファイルを構成します。
例:
4。 インデックスサーバーを開始します。
5。 ローカル検索サーバーを使用するCursorの設定:
[~/.cursor/mcp.jsonを作成または編集する:
- 変更を加えるためにカーソルIDEを再起動します。
サーバは、指定されたプロジェクトをインデックス化し始めます。これらのプロジェクトがアクティブなときに、Cursor内でのコード検索を使用できます。
- インデックスとして設定したプロジェクトを開きます。
.cursorrulesファイルを作成し、次のファイルを追加します。
- Cursor Agent モードを使用して起動し、ローカル ベクトル検索を実行します。!
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
Local Code Indexing for Cursor
An experimental Python-based server that locally indexes codebases using ChromaDB and provides a semantic search tool via an MCP (Model Context Protocol) server for tools like Cursor.
Setup
-
Clone and enter the repository:
git clone cd cursor-local-indexing -
Create a
.envfile by copying.env.example:cp .env.example .env -
Configure your
.envfile:PROJECTS_ROOT=~/your/projects/root # Path to your projects directory FOLDERS_TO_INDEX=project1,project2 # Comma-separated list of folders to indexExample:
PROJECTS_ROOT=~/projects FOLDERS_TO_INDEX=project1,project2 -
Start the indexing server:
docker-compose up -d -
Configure Cursor to use the local search server: Create or edit
~/.cursor/mcp.json:{ "mcpServers": { "workspace-code-search": { "url": "http://localhost:8978/sse" } } } -
Restart Cursor IDE to apply the changes.
The server will start indexing your specified projects, and you’ll be able to use semantic code search within Cursor when those projects are active.
- Open a project that you configured as indexed.
Create a .cursorrules file and add the following:
For any request, use the @search_code tool to check what the code does.
Prefer that first before resorting to command line grepping etc.
- Start using the Cursor Agent mode and see it doing local vector searches!
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"workspace-code-search": {
"url": "http://localhost:8978/sse"
}
}
}