Skip to content

Commit be04eaf

Browse files
committed
add signup guide and optimize sub readmes
Signed-off-by: ChengZi <chen.zhang@zilliz.com>
1 parent e520b06 commit be04eaf

File tree

6 files changed

+75
-55
lines changed

6 files changed

+75
-55
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Model Context Protocol (MCP) allows you to integrate Code Context with your favo
2626

2727
Code Context needs a vector database. You can [sign up](https://cloud.zilliz.com/signup) on Zilliz Cloud to get a free Serverless cluster.
2828

29+
![](assets/signup_and_create_cluster.jpeg)
30+
2931
After creating your cluster, open your Zilliz Cloud console and copy both the **public endpoint** and your **API key**.
3032
These will be used as `your-zilliz-cloud-public-endpoint` and `your-zilliz-cloud-api-key` in the configuration examples.
3133

assets/signup_and_create_cluster.jpeg

1.31 MB
Loading

packages/core/README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,26 @@ See [OpenAI Documentation](https://platform.openai.com/docs/api-reference) for m
2020
OPENAI_API_KEY=your-openai-api-key
2121
```
2222

23-
#### Milvus configuration
24-
Zilliz Cloud (fully managed Milvus vector database as a service, you can [use it for free](https://zilliz.com/cloud))
23+
#### Zilliz Cloud configuration
24+
Get a free Milvus vector database on Zilliz Cloud.
2525

26-
- `MILVUS_ADDRESS` is the Public Endpoint of your Zilliz Cloud instance
27-
- `MILVUS_TOKEN` is the token of your Zilliz Cloud instance.
28-
```bash
29-
MILVUS_ADDRESS=https://xxx-xxxxxxxxxxxx.serverless.gcp-us-west1.cloud.zilliz.com
30-
MILVUS_TOKEN=xxxxxxx
31-
```
32-
> Optional: Self-hosted Milvus. See [Milvus Documentation](https://milvus.io/docs/install_standalone-docker-compose.md) for more details to install Milvus.
26+
Code Context needs a vector database. You can [sign up](https://cloud.zilliz.com/signup) on Zilliz Cloud to get a free Serverless cluster.
27+
28+
![](../../assets/signup_and_create_cluster.jpeg)
29+
30+
After creating your cluster, open your Zilliz Cloud console and copy both the **public endpoint** and your **API key**.
31+
These will be used as `your-zilliz-cloud-public-endpoint` and `your-zilliz-cloud-api-key` in the configuration examples.
3332

33+
![Zilliz Cloud Dashboard](../../assets/zilliz_cloud_dashboard.jpeg)
34+
35+
Keep both values handy for the configuration steps below.
36+
37+
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.
38+
39+
```bash
40+
MILVUS_ADDRESS=your-zilliz-cloud-public-endpoint
41+
MILVUS_TOKEN=your-zilliz-cloud-api-key
42+
```
3443

3544
## Quick Start
3645

packages/mcp/CONTRIBUTING.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,7 @@ pnpm start:with-env
2424
```
2525

2626
### Required Environment Variables
27-
Set the following environment variables based on your chosen embedding provider.
28-
29-
#### OpenAI (Default)
30-
```bash
31-
# Required
32-
export OPENAI_API_KEY="your-api-key"
33-
export MILVUS_ADDRESS="localhost:19530"
34-
35-
# Optional
36-
export EMBEDDING_PROVIDER="openai"
37-
export OPENAI_MODEL="text-embedding-3-small"
38-
```
39-
40-
#### Ollama
41-
```bash
42-
# Required
43-
export EMBEDDING_PROVIDER="ollama"
44-
export OLLAMA_MODEL="nomic-embed-text"
45-
export MILVUS_ADDRESS="localhost:19530"
46-
47-
# Optional
48-
export OLLAMA_HOST="http://127.0.0.1:11434"
49-
```
27+
See [README.md](./README.md#prepare-environment-variables) for required environment variables.
5028

5129
## Running the MCP Server
5230

@@ -86,7 +64,7 @@ export OLLAMA_HOST="http://127.0.0.1:11434"
8664

8765
## Working with MCP Clients
8866

89-
### Claude Desktop/Cursor Configuration
67+
### Cursor/Claude Desktop Configuration
9068
You can use the following configuration to configure the MCP server with a development mode.
9169
```json
9270
{

packages/mcp/README.md

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ Code Context MCP supports multiple embedding providers. Choose the one that best
7575
EMBEDDING_PROVIDER=OpenAI
7676
```
7777

78-
#### 1. OpenAI Configuration (Default)
78+
<details>
79+
<summary><strong>1. OpenAI Configuration (Default)</strong></summary>
7980

8081
OpenAI provides high-quality embeddings with excellent performance for code understanding.
8182

@@ -101,7 +102,10 @@ OPENAI_BASE_URL=https://api.openai.com/v1
101102
3. Generate a new API key
102103
4. Set up billing if needed
103104

104-
#### 2. VoyageAI Configuration
105+
</details>
106+
107+
<details>
108+
<summary><strong>2. VoyageAI Configuration</strong></summary>
105109

106110
VoyageAI offers specialized code embeddings optimized for programming languages.
107111

@@ -124,7 +128,10 @@ EMBEDDING_MODEL=voyage-code-3
124128
3. Navigate to API Keys section
125129
4. Create a new API key
126130

127-
#### 3. Gemini Configuration
131+
</details>
132+
133+
<details>
134+
<summary><strong>3. Gemini Configuration</strong></summary>
128135

129136
Google's Gemini provides competitive embeddings with good multilingual support.
130137

@@ -145,7 +152,10 @@ EMBEDDING_MODEL=gemini-embedding-001
145152
3. Go to "Get API key" section
146153
4. Create a new API key
147154

148-
#### 4. Ollama Configuration (Local/Self-hosted)
155+
</details>
156+
157+
<details>
158+
<summary><strong>4. Ollama Configuration (Local/Self-hosted)</strong></summary>
149159

150160
Ollama allows you to run embeddings locally without sending data to external services.
151161

@@ -173,19 +183,29 @@ OLLAMA_HOST=http://127.0.0.1:11434
173183
ollama serve
174184
```
175185

176-
#### Milvus Configuration
177-
Zilliz Cloud (fully managed Milvus vector database as a service, you can [use it for free](https://zilliz.com/cloud))
186+
</details>
187+
188+
#### Zilliz Cloud configuration
189+
Get a free Milvus vector database on Zilliz Cloud.
190+
191+
Code Context needs a vector database. You can [sign up](https://cloud.zilliz.com/signup) on Zilliz Cloud to get a free Serverless cluster.
192+
193+
![](../../assets/signup_and_create_cluster.jpeg)
194+
195+
After creating your cluster, open your Zilliz Cloud console and copy both the **public endpoint** and your **API key**.
196+
These will be used as `your-zilliz-cloud-public-endpoint` and `your-zilliz-cloud-api-key` in the configuration examples.
197+
198+
![Zilliz Cloud Dashboard](../../assets/zilliz_cloud_dashboard.jpeg)
199+
200+
Keep both values handy for the configuration steps below.
201+
202+
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.
178203

179-
- `MILVUS_ADDRESS` is the Public Endpoint of your Zilliz Cloud instance
180-
- `MILVUS_TOKEN` is the token of your Zilliz Cloud instance.
181204
```bash
182-
# Required: Milvus address
183-
MILVUS_ADDRESS=https://xxx-xxxxxxxxxxxx.serverless.gcp-us-west1.cloud.zilliz.com
205+
MILVUS_ADDRESS=your-zilliz-cloud-public-endpoint
206+
MILVUS_TOKEN=your-zilliz-cloud-api-key
207+
```
184208

185-
# Required for Zilliz Cloud: Milvus token
186-
MILVUS_TOKEN=xxxxxxx
187-
```
188-
> Optional: Self-hosted Milvus. See [Milvus Documentation](https://milvus.io/docs/install_standalone-docker-compose.md) for more details to install Milvus.
189209

190210
#### Embedding Batch Size
191211
You can set the embedding batch size to optimize the performance of the MCP server, depending on your embedding model throughput. The default value is 100.

packages/vscode-extension/README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,27 @@ Configure how your code is split into chunks for indexing.
6161

6262
> **Recommendation**: Use AST Splitter for better semantic understanding of code structure.
6363
64-
#### Milvus configuration
65-
Zilliz Cloud(fully managed Milvus vector database as a service, you can [use it for free](https://zilliz.com/cloud))
6664

67-
- `MILVUS_ADDRESS` is the Public Endpoint of your Zilliz Cloud instance
68-
- `MILVUS_TOKEN` is the token of your Zilliz Cloud instance.
65+
#### Zilliz Cloud configuration
66+
Get a free Milvus vector database on Zilliz Cloud.
67+
68+
Code Context needs a vector database. You can [sign up](https://cloud.zilliz.com/signup) on Zilliz Cloud to get a free Serverless cluster.
69+
70+
![](../../assets/signup_and_create_cluster.jpeg)
71+
72+
After creating your cluster, open your Zilliz Cloud console and copy both the **public endpoint** and your **API key**.
73+
These will be used as `your-zilliz-cloud-public-endpoint` and `your-zilliz-cloud-api-key` in the configuration examples.
74+
75+
![Zilliz Cloud Dashboard](../../assets/zilliz_cloud_dashboard.jpeg)
76+
77+
Keep both values handy for the configuration steps below.
78+
79+
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.
80+
6981
```bash
70-
MILVUS_ADDRESS=https://xxx-xxxxxxxxxxxx.serverless.gcp-us-west1.cloud.zilliz.com
71-
MILVUS_TOKEN=xxxxxxx
72-
```
73-
> Optional: Self-hosted Milvus. See [Milvus Documentation](https://milvus.io/docs/install_standalone-docker-compose.md) for more details to install Milvus.
82+
MILVUS_ADDRESS=your-zilliz-cloud-public-endpoint
83+
MILVUS_TOKEN=your-zilliz-cloud-api-key
84+
```
7485

7586
### Usage
7687

0 commit comments

Comments
 (0)