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
**Code Context** is an MCP plugin for semantic code search for Claude Code, Gemini CLI, or Cursor. It adds semantic search and code analysis, providing improved context awareness in code generation.
12
+
**Code Context** is an MCP plugin that brings semantic code search to Claude Code, Gemini CLI, or any AI coding agent. By indexing your entire codebase, it gives your assistant deep context awareness for better code generation.
13
13
14
-
This plugin allows your coding assistant to perform semantic searches on your codebase, enabling it to answer questions and generate code with a deeper understanding of the project's context. For example, you can ask *"Where are all the authentication checks?"* and the agent will find the relevant code snippets based on meaning, not just keyword matches.
14
+
AI coding assistants like Claude Code are limited by their context window and can only see part of your codebase. Code Context uses semantic search with a scalable vector database Zilliz Cloud so your assistant can find and understand relevant code from your whole project using natural language, not just keywords. This gives your AI assistant real context awareness.
15
15
16
-
-**Search code by meaning, not just keywords**—thanks to powerful embedding models and Zilliz Cloud vector database integration.
17
-
-**Understand and navigate massive codebases** with semantic search, context-aware discovery, and AI-powered code writing.
18
-
-**Accelerate your workflow** by combining the best of Gemini CLI's AI capabilities with deep, actionable code insights.
16
+
---
19
17
20
-
> *"Code Context is a tool for code comprehension, search, and development. Unlock the full potential of your codebase, no matter its size."*
18
+
## 🚀 Use Code Context as MCP in Claude Code and others
21
19
22
-
---
20
+
Model Context Protocol (MCP) allows you to integrate Code Context with your favorite AI coding assistants.
23
21
24
-
##🌟 Why Code Context?
22
+
### Prerequisites
25
23
26
-
In the era of AI-first development, codebases are growing faster than ever. Traditional tools can't keep up:
24
+
<details>
25
+
<summary><strong>Get a free vector database on Zilliz Cloud</strong></summary>
27
26
28
-
-**Claude Code** or **Gemini CLI** lacked full context of the entire codebase. No LLM can fit millions of lines of code in context, and `grep` doesn't work unless you can remember all variable names.
29
-
-**Code Context** provides semantic search, allowing you to find, understand, and reuse code using natural language rather than just `grep`. It offers true context awareness by understanding relationships, structure, and intent across your entire codebase.
30
-
-**Powered by Zilliz Cloud**, you get blazing-fast, scalable vector search for all your code.
27
+
Code Context needs a vector database. You can [sign up](https://cloud.zilliz.com/signup) on Zilliz Cloud to get a free Serverless cluster.
31
28
32
-
**Code Context provides the essential connection between AI code generation and understanding a codebase.**
29
+
After creating your cluster, open your Zilliz Cloud console and copy both the **public endpoint** and your **API key**.
30
+
These will be used as `your-zilliz-cloud-public-endpoint` and `your-zilliz-cloud-api-key` in the configuration examples.
Keep both values handy for the configuration steps below.
37
35
38
-
Model Context Protocol (MCP) allows you to integrate Code Context with your favorite AI coding assistants.
36
+
If you need help creating your free vector database or finding these values, see the [Zilliz Cloud documentation](https://docs.zilliz.com/docs/create-cluster) for detailed instructions.
39
37
40
-
### Prerequisites
38
+
</details>
39
+
40
+
<details>
41
+
<summary><strong>Get OpenAI API Key for embedding model</strong></summary>
42
+
43
+
You need an OpenAI API key for the embedding model. You can get one by signing up at [OpenAI](https://platform.openai.com/api-keys).
41
44
42
-
- Node.js >= 20.0.0
43
-
- pnpm >= 10.0.0
44
-
- (Optional) Milvus database
45
-
- (Optional) API key for OpenAI, VoyageAI, or other embedding providers.
45
+
Your API key will look like this: it always starts with `sk-`.
46
+
Copy your key and use it in the configuration examples below as `your-openai-api-key`.
47
+
48
+
</details>
49
+
50
+
### Configure MCP for your AI Assistant
46
51
47
-
###Environment Variables (Optional)
52
+
#### Claude Code
48
53
49
-
If you want to use cloud embedding/vector DBs:
54
+
Use the command line interface to add the Code Context MCP server:
0 commit comments