You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Flexible Embeddings**: Local SentenceTransformers (default) or 100+ cloud providers via [LiteLLM](https://docs.litellm.ai/docs/embedding/supported_embedding)
11
-
-**SQLite Storage**: Portable, no external database required
12
5
13
-
## Prerequisites
6
+
A super light-weight, effective embedded MCP that understand and searches your codebase that just works! Using [CocoIndex](https://github.com/cocoindex-io/cocoindex) - an Rust-based ultra performant data transformation engine. No blackbox. Works for Claude, Codex, Cursor - any coding agent.
-**Semantic Code Search**: Find relevant code using natural language queries when grep doesn't work well, and save tokens immediately.
44
+
-**Ultra Performant to code changes**:⚡ Built on top of ultra performant [Rust indexing engine](https://github.com/cocoindex-io/cocoindex/edit/main/README.md). Only re-indexes changed files for fast updates.
-**Embedded**: Portable and just works, no database setup required!
47
+
-**Flexible Embeddings**: By default, no API key required with Local SentenceTransformers - totally free! You can customize 100+ cloud providers.
48
+
49
+
50
+
## Configuration
51
+
52
+
| Variable | Description | Default |
53
+
|----------|-------------|---------|
54
+
|`COCOINDEX_CODE_ROOT_PATH`| Root path of the codebase | Auto-discovered (see below) |
55
+
|`COCOINDEX_CODE_EMBEDDING_MODEL`| Embedding model (see below) |`sbert/sentence-transformers/all-MiniLM-L6-v2`|
56
+
57
+
58
+
### Root Path Discovery
59
+
60
+
If `COCOINDEX_CODE_ROOT_PATH` is not set, the codebase root is discovered by:
61
+
62
+
1. Finding the nearest parent directory containing `.cocoindex_code/`
63
+
2. Finding the nearest parent directory containing `.git/`
64
+
3. Falling back to the current working directory
65
+
66
+
### Embedding model
67
+
By default - this project use a local SentenceTransformers model (`sentence-transformers/all-MiniLM-L6-v2`). No API key required and completely free!
68
+
69
+
Use a code specific embedding model can achieve better semantic understanding for your results, this project supports all models on Ollama and 100+ cloud providers.
35
70
36
71
Set `COCOINDEX_CODE_EMBEDDING_MODEL` to any [LiteLLM-supported model](https://docs.litellm.ai/docs/embedding/supported_embedding), along with the provider's API key:
37
72
@@ -150,44 +185,8 @@ claude mcp add cocoindex-code \
150
185
151
186
Any model supported by LiteLLM works — see the [full list of embedding providers](https://docs.litellm.ai/docs/embedding/supported_embedding).
152
187
153
-
### Setup `.gitignore`
154
-
155
-
Add the index directory to your `.gitignore` so it isn't committed:
156
-
157
-
```bash
158
-
echo .cocoindex_code >> .gitignore
159
-
```
160
-
161
-
### Uninstall
162
-
163
-
Remove the MCP server and delete the local index:
164
188
165
-
```bash
166
-
claude mcp remove cocoindex-code
167
-
rm -rf .cocoindex_code
168
-
```
169
-
170
-
## Configuration
171
-
172
-
| Variable | Description | Default |
173
-
|----------|-------------|---------|
174
-
|`COCOINDEX_CODE_ROOT_PATH`| Root path of the codebase | Auto-discovered (see below) |
175
-
|`COCOINDEX_CODE_EMBEDDING_MODEL`| Embedding model (see below) |`sbert/sentence-transformers/all-MiniLM-L6-v2`|
176
-
177
-
### Embedding Model
178
189
179
-
The `COCOINDEX_CODE_EMBEDDING_MODEL` variable uses a prefix to select the embedding backend:
180
-
181
-
-**`sbert/`** prefix — uses [SentenceTransformers](https://www.sbert.net/) (runs locally, no API key needed). Example: `sbert/sentence-transformers/all-MiniLM-L6-v2`
[CocoIndex](https://github.com/cocoindex-io/cocoindex) is an ultra effecient indexing engine that also works on large codebase at scale on XXX G for enterprises. In enterprise scenarios it is a lot more effecient to do index share with teammates when there are large repo or many repos. We also have advanced features like branch dedupe etc designed for enterprise users.
284
246
285
-
```bash
286
-
# Install dev dependencies
287
-
uv sync --group dev
288
-
289
-
# Run tests
290
-
uv run pytest tests/ -v
291
-
292
-
# Run pre-commit hooks
293
-
uv run pre-commit run --all-files
294
-
```
247
+
If you need help with remote setup, please email our maintainer linghua@cocoindex.io, happy to help!!
0 commit comments