merge claude_context to refactor project name

Signed-off-by: ChengZi <chen.zhang@zilliz.com>
This commit is contained in:
ChengZi
2025-08-01 22:11:58 +08:00
committed by Cheney Zhang
parent d277053e10
commit 6c5ba39876
36 changed files with 204 additions and 203 deletions

View File

@@ -2,9 +2,9 @@ name: CI
on:
push:
branches: [ master, main ]
branches: [ master, main, claude_context ]
pull_request:
branches: [ master, main ]
branches: [ master, main, claude_context ]
jobs:
lint_and_build:

View File

@@ -4,6 +4,7 @@ on:
push:
tags:
- 'v*'
- 'c*'
jobs:
release:
@@ -35,10 +36,10 @@ jobs:
run: pnpm build
- name: Publish core package to npm
run: pnpm --filter @zilliz/code-context-core publish --access public --no-git-checks
run: pnpm --filter @zilliz/claude-context-core publish --access public --no-git-checks
- name: Publish mcp package to npm
run: pnpm --filter @zilliz/code-context-mcp publish --access public --no-git-checks
run: pnpm --filter @zilliz/claude-context-mcp publish --access public --no-git-checks
- name: Publish vscode extension
run: pnpm release:vscode

View File

@@ -14,8 +14,8 @@ Thank you for your interest in contributing to Code Context! This guide will hel
1. **Fork and Clone**
```bash
git clone https://github.com/your-username/code-context.git
cd code-context
git clone https://github.com/your-username/claude-context.git
cd claude-context
```
2. **Install Dependencies**
@@ -36,7 +36,7 @@ Thank you for your interest in contributing to Code Context! This guide will hel
## 📁 Project Structure
```
code-context/
claude-context/
├── packages/
│ ├── core/ # Core indexing engine
│ ├── vscode-extension/ # VSCode extension

View File

@@ -1,5 +1,5 @@
<p align="center">
<a href="https://github.com/zilliztech/code-context">
<a href="https://github.com/zilliztech/claude-context">
<img src="assets/code_context_logo_dark.png" width=600 alt="Code Context Logo">
</a>
<h3 align="center"> Add Semantic Search to Claude Code</h2>
@@ -11,10 +11,10 @@
[![Node.js](https://img.shields.io/badge/Node.js-20%2B-green.svg)](https://nodejs.org/)
[![Documentation](https://img.shields.io/badge/Documentation-📚-orange.svg)](docs/)
[![VS Code Marketplace](https://img.shields.io/visual-studio-marketplace/v/zilliz.semanticcodesearch?label=VS%20Code%20Extension&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=zilliz.semanticcodesearch)
[![npm - core](https://img.shields.io/npm/v/@zilliz/code-context-core?label=%40zilliz%2Fcode-context-core&logo=npm)](https://www.npmjs.com/package/@zilliz/code-context-core)
[![npm - mcp](https://img.shields.io/npm/v/@zilliz/code-context-mcp?label=%40zilliz%2Fcode-context-mcp&logo=npm)](https://www.npmjs.com/package/@zilliz/code-context-mcp)
[![npm - core](https://img.shields.io/npm/v/@zilliz/claude-context-core?label=%40zilliz%2Fclaude-context-core&logo=npm)](https://www.npmjs.com/package/@zilliz/claude-context-core)
[![npm - mcp](https://img.shields.io/npm/v/@zilliz/claude-context-mcp?label=%40zilliz%2Fclaude-context-mcp&logo=npm)](https://www.npmjs.com/package/@zilliz/claude-context-mcp)
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/zilliz_universe.svg?style=social&label=Follow%20%40Zilliz)](https://twitter.com/zilliz_universe)
[![DeepWiki](https://img.shields.io/badge/DeepWiki-AI%20Docs-purple.svg?logo=gitbook&logoColor=white)](https://deepwiki.com/zilliztech/code-context)
[![DeepWiki](https://img.shields.io/badge/DeepWiki-AI%20Docs-purple.svg?logo=gitbook&logoColor=white)](https://deepwiki.com/zilliztech/claude-context)
<a href="https://discord.gg/mKc3R95yE5"><img height="20" src="https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge&logo=discord&logoColor=white" alt="discord" /></a>
</div>
@@ -69,7 +69,7 @@ Use the command line interface to add the Code Context MCP server:
```bash
# Add the Code Context MCP server
claude mcp add code-context -e OPENAI_API_KEY=your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- npx @zilliz/code-context-mcp@latest
claude mcp add claude-context -e OPENAI_API_KEY=your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- npx @zilliz/claude-context-mcp@latest
```
See the [Claude Code MCP documentation](https://docs.anthropic.com/en/docs/claude-code/mcp) for more details about MCP server management.
@@ -84,9 +84,9 @@ Gemini CLI requires manual configuration through a JSON file:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -109,9 +109,9 @@ Create or edit the `~/.qwen/settings.json` file and add the following configurat
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -128,7 +128,7 @@ Create or edit the `~/.qwen/settings.json` file and add the following configurat
<details>
<summary><strong>Cursor</strong></summary>
<a href="https://cursor.com/install-mcp?name=code-context&config=JTdCJTIyY29tbWFuZCUyMiUzQSUyMm5weCUyMC15JTIwJTQwemlsbGl6JTJGY29kZS1jb250ZXh0LW1jcCU0MGxhdGVzdCUyMiUyQyUyMmVudiUyMiUzQSU3QiUyMk9QRU5BSV9BUElfS0VZJTIyJTNBJTIyeW91ci1vcGVuYWktYXBpLWtleSUyMiUyQyUyMk1JTFZVU19BRERSRVNTJTIyJTNBJTIybG9jYWxob3N0JTNBMTk1MzAlMjIlN0QlN0Q%3D"><img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Add code-context MCP server to Cursor" height="32" /></a>
<a href="https://cursor.com/install-mcp?name=claude-context&config=JTdCJTIyY29tbWFuZCUyMiUzQSUyMm5weCUyMC15JTIwJTQwemlsbGl6JTJGY29kZS1jb250ZXh0LW1jcCU0MGxhdGVzdCUyMiUyQyUyMmVudiUyMiUzQSU3QiUyMk9QRU5BSV9BUElfS0VZJTIyJTNBJTIyeW91ci1vcGVuYWktYXBpLWtleSUyMiUyQyUyMk1JTFZVU19BRERSRVNTJTIyJTNBJTIybG9jYWxob3N0JTNBMTk1MzAlMjIlN0QlN0Q%3D"><img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Add claude-context MCP server to Cursor" height="32" /></a>
Go to: `Settings` -> `Cursor Settings` -> `MCP` -> `Add new global MCP server`
@@ -137,9 +137,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -185,9 +185,9 @@ Add to your Claude Desktop configuration:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -208,9 +208,9 @@ Windsurf supports MCP configuration through a JSON file. Add the following confi
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -231,9 +231,9 @@ The Code Context MCP server can be used with VS Code through MCP-compatible exte
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -253,10 +253,10 @@ Cherry Studio allows for visual MCP server configuration through its settings in
1. Navigate to **Settings → MCP Servers → Add Server**.
2. Fill in the server details:
- **Name**: `code-context`
- **Name**: `claude-context`
- **Type**: `STDIO`
- **Command**: `npx`
- **Arguments**: `["@zilliz/code-context-mcp@latest"]`
- **Arguments**: `["@zilliz/claude-context-mcp@latest"]`
- **Environment Variables**:
- `OPENAI_API_KEY`: `your-openai-api-key`
- `MILVUS_ADDRESS`: `your-zilliz-cloud-public-endpoint`
@@ -279,9 +279,9 @@ Cline uses a JSON configuration file to manage MCP servers. To integrate the pro
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -314,7 +314,7 @@ To configure Code Context MCP in Augment Code, you can use either the graphical
5. Enter the following command:
```
npx @zilliz/code-context-mcp@latest
npx @zilliz/claude-context-mcp@latest
```
6. Name the MCP: **Code Context**.
@@ -334,9 +334,9 @@ To configure Code Context MCP in Augment Code, you can use either the graphical
"augment.advanced": {
"mcpServers": [
{
"name": "code-context",
"name": "claude-context",
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -361,9 +361,9 @@ Roo Code utilizes a JSON configuration file for MCP servers:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -385,7 +385,7 @@ Roo Code utilizes a JSON configuration file for MCP servers:
The server uses stdio transport and follows the standard MCP protocol. It can be integrated with any MCP-compatible client by running:
```bash
npx @zilliz/code-context-mcp@latest
npx @zilliz/claude-context-mcp@latest
```
</details>
@@ -403,9 +403,9 @@ Code Context is a monorepo containing three main packages:
### Core Components
- **`@zilliz/code-context-core`**: Core indexing engine with embedding and vector database integration
- **`@zilliz/claude-context-core`**: Core indexing engine with embedding and vector database integration
- **VSCode Extension**: Semantic Code Search extension for Visual Studio Code
- **`@zilliz/code-context-mcp`**: Model Context Protocol server for AI agent integration
- **`@zilliz/claude-context-mcp`**: Model Context Protocol server for AI agent integration
### Supported Technologies
- **Embedding Providers**: [OpenAI](https://openai.com), [VoyageAI](https://voyageai.com), [Ollama](https://ollama.ai), [Gemini](https://gemini.google.com)
@@ -422,10 +422,10 @@ While MCP is the recommended way to use Code Context with AI assistants, you can
### Core Package Usage
The `@zilliz/code-context-core` package provides the fundamental functionality for code indexing and semantic search.
The `@zilliz/claude-context-core` package provides the fundamental functionality for code indexing and semantic search.
```typescript
import { CodeContext, MilvusVectorDatabase, OpenAIEmbedding } from '@zilliz/code-context-core';
import { CodeContext, MilvusVectorDatabase, OpenAIEmbedding } from '@zilliz/claude-context-core';
// Initialize embedding provider
const embedding = new OpenAIEmbedding({
@@ -480,8 +480,8 @@ Integrates Code Context directly into your IDE. Provides an intuitive interface
```bash
# Clone repository
git clone https://github.com/zilliztech/code-context.git
cd code-context
git clone https://github.com/zilliztech/claude-context.git
cd claude-context
# Install dependencies
pnpm install
@@ -572,7 +572,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
## 🔗 Links
- [GitHub Repository](https://github.com/zilliztech/code-context)
- [GitHub Repository](https://github.com/zilliztech/claude-context)
- [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=zilliz.semanticcodesearch)
- [Milvus Documentation](https://milvus.io/docs)
- [Zilliz Cloud](https://zilliz.com/cloud)

View File

@@ -21,13 +21,13 @@ Welcome to the Code Context documentation! Code Context is a powerful tool that
## 🔗 External Resources
- [GitHub Repository](https://github.com/zilliztech/code-context)
- [GitHub Repository](https://github.com/zilliztech/claude-context)
- [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=zilliz.semanticcodesearch)
- [npm - Core Package](https://www.npmjs.com/package/@zilliz/code-context-core)
- [npm - MCP Server](https://www.npmjs.com/package/@zilliz/code-context-mcp)
- [npm - Core Package](https://www.npmjs.com/package/@zilliz/claude-context-core)
- [npm - MCP Server](https://www.npmjs.com/package/@zilliz/claude-context-mcp)
- [Zilliz Cloud](https://cloud.zilliz.com)
## 💬 Support
- **Issues**: [GitHub Issues](https://github.com/zilliztech/code-context/issues)
- **Issues**: [GitHub Issues](https://github.com/zilliztech/claude-context/issues)
- **Discord**: [Join our Discord](https://discord.gg/mKc3R95yE5)

View File

@@ -28,7 +28,7 @@ Code Context supports a global configuration file at `~/.codecontext/.env` to si
### Vector Database
| Variable | Description | Default |
|----------|-------------|---------|
| `MILVUS_TOKEN` | Milvus authentication token. Get [Zilliz Personal API Key](https://github.com/zilliztech/code-context/blob/master/assets/signup_and_get_apikey.png) | Recommended |
| `MILVUS_TOKEN` | Milvus authentication token. Get [Zilliz Personal API Key](https://github.com/zilliztech/claude-context/blob/master/assets/signup_and_get_apikey.png) | Recommended |
| `MILVUS_ADDRESS` | Milvus server address. Optional when using Zilliz Personal API Key | Auto-resolved from token |
### Ollama (Local)
@@ -61,16 +61,16 @@ EOF
**Claude Code:**
```bash
claude mcp add code-context -- npx @zilliz/code-context-mcp@latest
claude mcp add claude-context -- npx @zilliz/claude-context-mcp@latest
```
**Cursor/Windsurf/Others:**
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"]
"args": ["-y", "@zilliz/claude-context-mcp@latest"]
}
}
}
@@ -79,5 +79,5 @@ claude mcp add code-context -- npx @zilliz/code-context-mcp@latest
## 📚 Additional Information
For detailed information about file processing rules and how custom patterns work, see:
- [What files does Code Context decide to embed?](../troubleshooting/faq.md#q-what-files-does-code-context-decide-to-embed)
- [What files does Code Context decide to embed?](../troubleshooting/faq.md#q-what-files-does-claude-context-decide-to-embed)

View File

@@ -43,14 +43,14 @@ Natural language queries are converted to vectors and matched against stored cod
## Architecture Components
### Core Engine (`@zilliz/code-context-core`)
### Core Engine (`@zilliz/claude-context-core`)
The foundational indexing engine that handles:
- Code parsing and analysis
- Embedding generation
- Vector database operations
- Search algorithms
### MCP Server (`@zilliz/code-context-mcp`)
### MCP Server (`@zilliz/claude-context-mcp`)
Model Context Protocol server that enables integration with AI assistants:
- Standardized tool interface
- Compatible with Claude Code, Cursor, Windsurf, and more

View File

@@ -17,10 +17,10 @@ You'll need two API keys:
Run this single command to add Code Context to Claude Code:
```bash
claude mcp add code-context \
claude mcp add claude-context \
-e OPENAI_API_KEY=sk-your-openai-api-key \
-e MILVUS_TOKEN=your-zilliz-cloud-api-key \
-- npx @zilliz/code-context-mcp@latest
-- npx @zilliz/claude-context-mcp@latest
```
Replace the API keys with your actual keys.
@@ -49,9 +49,9 @@ Create or edit the `~/.qwen/settings.json` file and add the following configurat
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -74,9 +74,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "OpenAI",
"OPENAI_API_KEY": "your-openai-api-key",
@@ -91,9 +91,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "VoyageAI",
"VOYAGEAI_API_KEY": "your-voyageai-api-key",
@@ -109,9 +109,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "Gemini",
"GEMINI_API_KEY": "your-gemini-api-key",
@@ -126,9 +126,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "Ollama",
"EMBEDDING_MODEL": "nomic-embed-text",
@@ -150,9 +150,9 @@ Add to your Claude Desktop configuration:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -171,7 +171,7 @@ Use the command line interface to add the CodeContext MCP server:
```bash
# Add the CodeContext MCP server
claude mcp add code-context -e OPENAI_API_KEY=your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- npx @zilliz/code-context-mcp@latest
claude mcp add claude-context -e OPENAI_API_KEY=your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- npx @zilliz/claude-context-mcp@latest
```
@@ -187,9 +187,9 @@ Windsurf supports MCP configuration through a JSON file. Add the following confi
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -209,9 +209,9 @@ The CodeContext MCP server can be used with VS Code through MCP-compatible exten
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -230,10 +230,10 @@ Cherry Studio allows for visual MCP server configuration through its settings in
1. Navigate to **Settings → MCP Servers → Add Server**.
2. Fill in the server details:
- **Name**: `code-context`
- **Name**: `claude-context`
- **Type**: `STDIO`
- **Command**: `npx`
- **Arguments**: `["@zilliz/code-context-mcp@latest"]`
- **Arguments**: `["@zilliz/claude-context-mcp@latest"]`
- **Environment Variables**:
- `OPENAI_API_KEY`: `your-openai-api-key`
- `MILVUS_TOKEN`: `your-zilliz-cloud-api-key`
@@ -255,9 +255,9 @@ Cline uses a JSON configuration file to manage MCP servers. To integrate the pro
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -290,7 +290,7 @@ To configure Code Context MCP in Augment Code, you can use either the graphical
5. Enter the following command:
```
npx @zilliz/code-context-mcp@latest
npx @zilliz/claude-context-mcp@latest
```
6. Name the MCP: **Code Context**.
@@ -310,9 +310,9 @@ To configure Code Context MCP in Augment Code, you can use either the graphical
"augment.advanced": {
"mcpServers": [
{
"name": "code-context",
"name": "claude-context",
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -337,9 +337,9 @@ Roo Code utilizes a JSON configuration file for MCP servers:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
@@ -361,7 +361,7 @@ Roo Code utilizes a JSON configuration file for MCP servers:
The server uses stdio transport and follows the standard MCP protocol. It can be integrated with any MCP-compatible client by running:
```bash
npx @zilliz/code-context-mcp@latest
npx @zilliz/claude-context-mcp@latest
```
</details>

View File

@@ -1,5 +1,5 @@
import { CodeContext, MilvusVectorDatabase, MilvusRestfulVectorDatabase, AstCodeSplitter, LangChainCodeSplitter } from '@zilliz/code-context-core';
import { envManager } from '@zilliz/code-context-core';
import { CodeContext, MilvusVectorDatabase, MilvusRestfulVectorDatabase, AstCodeSplitter, LangChainCodeSplitter } from '@zilliz/claude-context-core';
import { envManager } from '@zilliz/claude-context-core';
import * as path from 'path';
// Try to load .env file

View File

@@ -1,6 +1,6 @@
{
"name": "code-context-basic-example",
"version": "0.0.12",
"name": "claude-context-basic-example",
"version": "0.0.1",
"description": "Basic usage example for Code Context",
"main": "index.ts",
"scripts": {
@@ -9,7 +9,7 @@
"dev": "tsx --watch index.ts"
},
"dependencies": {
"@zilliz/code-context-core": "workspace:*"
"@zilliz/claude-context-core": "workspace:*"
},
"devDependencies": {
"tsx": "^4.0.0",

View File

@@ -1,25 +1,25 @@
{
"name": "code-context",
"version": "0.0.12",
"name": "claude-context",
"version": "0.0.1",
"description": "A powerful code indexing tool with multi-platform support",
"private": true,
"scripts": {
"build": "pnpm -r --filter='!./examples/*' build && pnpm -r --filter='./examples/*' build",
"build:core": "pnpm --filter @zilliz/code-context-core build",
"build:core": "pnpm --filter @zilliz/claude-context-core build",
"build:vscode": "pnpm --filter semanticcodesearch compile",
"build:mcp": "pnpm --filter @zilliz/code-context-mcp build",
"build:mcp": "pnpm --filter @zilliz/claude-context-mcp build",
"dev": "pnpm -r dev",
"dev:core": "pnpm --filter @zilliz/code-context-core dev",
"dev:core": "pnpm --filter @zilliz/claude-context-core dev",
"dev:vscode": "pnpm --filter semanticcodesearch watch",
"dev:mcp": "pnpm --filter @zilliz/code-context-mcp dev",
"dev:mcp": "pnpm --filter @zilliz/claude-context-mcp dev",
"clean": "pnpm -r clean",
"lint": "pnpm -r lint",
"lint:fix": "pnpm -r run lint:fix",
"typecheck": "pnpm -r run typecheck",
"release:core": "pnpm --filter @zilliz/code-context-core... run build && pnpm --filter @zilliz/code-context-core publish --access public --no-git-checks",
"release:mcp": "pnpm --filter @zilliz/code-context-mcp... run build && pnpm --filter @zilliz/code-context-mcp publish --access public --no-git-checks",
"release:vscode": "pnpm --filter @zilliz/code-context-core build && pnpm --filter semanticcodesearch run webpack && pnpm --filter semanticcodesearch release",
"example:basic": "pnpm --filter code-context-basic-example start"
"release:core": "pnpm --filter @zilliz/claude-context-core... run build && pnpm --filter @zilliz/claude-context-core publish --access public --no-git-checks",
"release:mcp": "pnpm --filter @zilliz/claude-context-mcp... run build && pnpm --filter @zilliz/claude-context-mcp publish --access public --no-git-checks",
"release:vscode": "pnpm --filter @zilliz/claude-context-core build && pnpm --filter semanticcodesearch run webpack && pnpm --filter semanticcodesearch release",
"example:basic": "pnpm --filter claude-context-basic-example start"
},
"devDependencies": {
"@types/node": "^20.0.0",
@@ -49,7 +49,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/zilliztech/code-context.git"
"url": "https://github.com/zilliztech/claude-context.git"
},
"license": "MIT",
"author": "Cheney Zhang <277584121@qq.com>"

View File

@@ -115,9 +115,9 @@ This Chrome extension is part of the Code Context monorepo. Please see:
## Related Packages
- **[@zilliz/code-context-core](../core)** - Core indexing engine used by this extension
- **[@zilliz/code-context-vscode-extension](../vscode-extension)** - VSCode integration
- **[@zilliz/code-context-mcp](../mcp)** - MCP server integration
- **[@zilliz/claude-context-core](../core)** - Core indexing engine used by this extension
- **[@zilliz/claude-context-vscode-extension](../vscode-extension)** - VSCode integration
- **[@zilliz/claude-context-mcp](../mcp)** - MCP server integration
## Tech Stack

View File

@@ -1,6 +1,6 @@
{
"name": "@zilliz/code-context-chrome-extension",
"version": "0.0.12",
"name": "@zilliz/claude-context-chrome-extension",
"version": "0.0.1",
"description": "Code Context Chrome extension for web-based code indexing",
"private": true,
"scripts": {
@@ -13,7 +13,7 @@
"build:milvus": "./build.sh"
},
"dependencies": {
"@zilliz/code-context-core": "workspace:*"
"@zilliz/claude-context-core": "workspace:*"
},
"overrides": {
"@zilliz/milvus2-sdk-node": false
@@ -43,7 +43,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/zilliztech/code-context.git",
"url": "https://github.com/zilliztech/claude-context.git",
"directory": "packages/chrome-extension"
},
"license": "MIT",
@@ -51,7 +51,7 @@
"keywords": [],
"author": "",
"bugs": {
"url": "https://github.com/zilliztech/code-context/issues"
"url": "https://github.com/zilliztech/claude-context/issues"
},
"homepage": "https://github.com/zilliztech/code-context#readme"
"homepage": "https://github.com/zilliztech/claude-context#readme"
}

View File

@@ -1,4 +1,4 @@
# Contributing to @zilliz/code-context-core
# Contributing to @zilliz/claude-context-core
Thanks for your interest in contributing to the Code Context core package!

View File

@@ -1,17 +1,17 @@
# @zilliz/code-context-core
# @zilliz/claude-context-core
![](../../assets/code_context_logo_dark.png)
The core indexing engine for Code Context - a powerful tool for semantic search and analysis of codebases using vector embeddings and AI.
[![npm version](https://img.shields.io/npm/v/@zilliz/code-context-core.svg)](https://www.npmjs.com/package/@zilliz/code-context-core)
[![npm downloads](https://img.shields.io/npm/dm/@zilliz/code-context-core.svg)](https://www.npmjs.com/package/@zilliz/code-context-core)
[![npm version](https://img.shields.io/npm/v/@zilliz/claude-context-core.svg)](https://www.npmjs.com/package/@zilliz/claude-context-core)
[![npm downloads](https://img.shields.io/npm/dm/@zilliz/claude-context-core.svg)](https://www.npmjs.com/package/@zilliz/claude-context-core)
> 📖 **New to Code Context?** Check out the [main project README](../../README.md) for an overview and quick start guide.
## Installation
```bash
npm install @zilliz/code-context-core
npm install @zilliz/claude-context-core
```
### Prepare Environment Variables
@@ -51,7 +51,7 @@ import {
CodeContext,
OpenAIEmbedding,
MilvusVectorDatabase
} from '@zilliz/code-context-core';
} from '@zilliz/claude-context-core';
// Initialize embedding provider
const embedding = new OpenAIEmbedding({
@@ -183,7 +183,7 @@ interface SemanticSearchResult {
### Using VoyageAI Embeddings
```typescript
import { CodeContext, MilvusVectorDatabase, VoyageAIEmbedding } from '@zilliz/code-context-core';
import { CodeContext, MilvusVectorDatabase, VoyageAIEmbedding } from '@zilliz/claude-context-core';
// Initialize with VoyageAI embedding provider
const embedding = new VoyageAIEmbedding({
@@ -239,7 +239,7 @@ The file synchronization system uses a **Merkle tree-based approach** combined w
- Any change to any file will cause the root hash to change
#### 3. Snapshot Management
- File synchronization state is persisted to `~/.code-context/merkle/` directory
- File synchronization state is persisted to `~/.codecontext/merkle/` directory
- Each codebase gets a unique snapshot file based on its absolute path hash
- Snapshots contain both file hashes and serialized Merkle tree data
@@ -266,7 +266,7 @@ This package is part of the CodeContext monorepo. Please see:
## Related Packages
- **[@code-context/mcp](../mcp)** - MCP server that uses this core engine
- **[@claude-context/mcp](../mcp)** - MCP server that uses this core engine
- **[VSCode Extension](../vscode-extension)** - VSCode extension built on this core

View File

@@ -1,6 +1,6 @@
{
"name": "@zilliz/code-context-core",
"version": "0.0.12",
"name": "@zilliz/claude-context-core",
"version": "0.0.1",
"description": "Core indexing engine for Code Context",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -46,7 +46,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/zilliztech/code-context.git",
"url": "https://github.com/zilliztech/claude-context.git",
"directory": "packages/core"
},
"license": "MIT",

View File

@@ -1,4 +1,4 @@
# Contributing to @zilliz/code-context-mcp
# Contributing to @zilliz/claude-context-mcp
Thanks for your interest in contributing to the Code Context MCP server!
@@ -87,7 +87,7 @@ You can use the following configuration to configure the MCP server with a devel
```json
{
"mcpServers": {
"code-context-local": {
"claude-context-local": {
"command": "node",
"args": ["PATH_TO_CODECONTEXT/packages/mcp/dist/index.js"],
"env": {
@@ -101,7 +101,7 @@ You can use the following configuration to configure the MCP server with a devel
### Claude Code Development Mode Configuration
```bash
claude mcp add code-context -e OPENAI_API_KEY=sk-your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- node PATH_TO_CODECONTEXT/packages/mcp/dist/index.js
claude mcp add claude-context -e OPENAI_API_KEY=sk-your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- node PATH_TO_CODECONTEXT/packages/mcp/dist/index.js
```
And then you can start Claude Code with `claude --debug` to see the MCP server logs.

View File

@@ -1,9 +1,9 @@
# @zilliz/code-context-mcp
# @zilliz/claude-context-mcp
![](../../assets/code_context_logo_dark.png)
Model Context Protocol (MCP) integration for Code Context - A powerful MCP server that enables AI assistants and agents to index and search codebases using semantic search.
[![npm version](https://img.shields.io/npm/v/@zilliz/code-context-mcp.svg)](https://www.npmjs.com/package/@zilliz/code-context-mcp)
[![npm downloads](https://img.shields.io/npm/dm/@zilliz/code-context-mcp.svg)](https://www.npmjs.com/package/@zilliz/code-context-mcp)
[![npm version](https://img.shields.io/npm/v/@zilliz/claude-context-mcp.svg)](https://www.npmjs.com/package/@zilliz/claude-context-mcp)
[![npm downloads](https://img.shields.io/npm/dm/@zilliz/claude-context-mcp.svg)](https://www.npmjs.com/package/@zilliz/claude-context-mcp)
> 📖 **New to Code Context?** Check out the [main project README](../../README.md) for an overview and setup instructions.
@@ -191,9 +191,9 @@ Create or edit the `~/.qwen/settings.json` file and add the following configurat
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -216,9 +216,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "OpenAI",
"OPENAI_API_KEY": "your-openai-api-key",
@@ -233,9 +233,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "VoyageAI",
"VOYAGEAI_API_KEY": "your-voyageai-api-key",
@@ -251,9 +251,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "Gemini",
"GEMINI_API_KEY": "your-gemini-api-key",
@@ -268,9 +268,9 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"EMBEDDING_PROVIDER": "Ollama",
"EMBEDDING_MODEL": "nomic-embed-text",
@@ -292,9 +292,9 @@ Add to your Claude Desktop configuration:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -313,7 +313,7 @@ Use the command line interface to add the CodeContext MCP server:
```bash
# Add the CodeContext MCP server
claude mcp add code-context -e OPENAI_API_KEY=your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- npx @zilliz/code-context-mcp@latest
claude mcp add claude-context -e OPENAI_API_KEY=your-openai-api-key -e MILVUS_TOKEN=your-zilliz-cloud-api-key -- npx @zilliz/claude-context-mcp@latest
```
@@ -329,9 +329,9 @@ Windsurf supports MCP configuration through a JSON file. Add the following confi
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -351,9 +351,9 @@ The CodeContext MCP server can be used with VS Code through MCP-compatible exten
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"],
"args": ["-y", "@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -372,10 +372,10 @@ Cherry Studio allows for visual MCP server configuration through its settings in
1. Navigate to **Settings → MCP Servers → Add Server**.
2. Fill in the server details:
- **Name**: `code-context`
- **Name**: `claude-context`
- **Type**: `STDIO`
- **Command**: `npx`
- **Arguments**: `["@zilliz/code-context-mcp@latest"]`
- **Arguments**: `["@zilliz/claude-context-mcp@latest"]`
- **Environment Variables**:
- `OPENAI_API_KEY`: `your-openai-api-key`
- `MILVUS_TOKEN`: `your-zilliz-cloud-api-key`
@@ -397,9 +397,9 @@ Cline uses a JSON configuration file to manage MCP servers. To integrate the pro
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -431,7 +431,7 @@ To configure Code Context MCP in Augment Code, you can use either the graphical
5. Enter the following command:
```
npx @zilliz/code-context-mcp@latest
npx @zilliz/claude-context-mcp@latest
```
6. Name the MCP: **Code Context**.
@@ -451,9 +451,9 @@ To configure Code Context MCP in Augment Code, you can use either the graphical
"augment.advanced": {
"mcpServers": [
{
"name": "code-context",
"name": "claude-context",
"command": "npx",
"args": ["-y", "@zilliz/code-context-mcp@latest"]
"args": ["-y", "@zilliz/claude-context-mcp@latest"]
}
]
}
@@ -473,9 +473,9 @@ Gemini CLI requires manual configuration through a JSON file:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -501,9 +501,9 @@ Roo Code utilizes a JSON configuration file for MCP servers:
```json
{
"mcpServers": {
"code-context": {
"claude-context": {
"command": "npx",
"args": ["@zilliz/code-context-mcp@latest"],
"args": ["@zilliz/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
@@ -523,7 +523,7 @@ Roo Code utilizes a JSON configuration file for MCP servers:
The server uses stdio transport and follows the standard MCP protocol. It can be integrated with any MCP-compatible client by running:
```bash
npx @zilliz/code-context-mcp@latest
npx @zilliz/claude-context-mcp@latest
```
</details>
@@ -573,7 +573,7 @@ This package is part of the CodeContext monorepo. Please see:
## Related Projects
- **[@zilliz/code-context-core](../core)** - Core indexing engine used by this MCP server
- **[@zilliz/claude-context-core](../core)** - Core indexing engine used by this MCP server
- **[VSCode Extension](../vscode-extension)** - Alternative VSCode integration
- [Model Context Protocol](https://modelcontextprotocol.io/) - Official MCP documentation

View File

@@ -1,6 +1,6 @@
{
"name": "@zilliz/code-context-mcp",
"version": "0.0.12",
"name": "@zilliz/claude-context-mcp",
"version": "0.0.1",
"description": "Model Context Protocol integration for Code Context",
"type": "module",
"main": "dist/index.js",
@@ -18,7 +18,7 @@
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@zilliz/code-context-core": "workspace:*",
"@zilliz/claude-context-core": "workspace:*",
"@modelcontextprotocol/sdk": "^1.12.1",
"zod": "^3.25.55"
},
@@ -33,7 +33,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/zilliztech/code-context.git",
"url": "https://github.com/zilliztech/claude-context.git",
"directory": "packages/mcp"
},
"license": "MIT",

View File

@@ -1,4 +1,4 @@
import { envManager } from "@zilliz/code-context-core";
import { envManager } from "@zilliz/claude-context-core";
export interface CodeContextMcpConfig {
name: string;
@@ -127,7 +127,7 @@ export function showHelpMessage(): void {
console.log(`
CodeContext MCP Server
Usage: npx @zilliz/code-context-mcp@latest [options]
Usage: npx @zilliz/claude-context-mcp@latest [options]
Options:
--help, -h Show this help message
@@ -156,18 +156,18 @@ Environment Variables:
Examples:
# Start MCP server with OpenAI (default) and explicit Milvus address
OPENAI_API_KEY=sk-xxx MILVUS_ADDRESS=localhost:19530 npx @zilliz/code-context-mcp@latest
OPENAI_API_KEY=sk-xxx MILVUS_ADDRESS=localhost:19530 npx @zilliz/claude-context-mcp@latest
# Start MCP server with OpenAI and auto-resolve Milvus address from token
OPENAI_API_KEY=sk-xxx MILVUS_TOKEN=your-zilliz-token npx @zilliz/code-context-mcp@latest
OPENAI_API_KEY=sk-xxx MILVUS_TOKEN=your-zilliz-token npx @zilliz/claude-context-mcp@latest
# Start MCP server with VoyageAI
EMBEDDING_PROVIDER=VoyageAI VOYAGEAI_API_KEY=pa-xxx MILVUS_TOKEN=your-token npx @zilliz/code-context-mcp@latest
EMBEDDING_PROVIDER=VoyageAI VOYAGEAI_API_KEY=pa-xxx MILVUS_TOKEN=your-token npx @zilliz/claude-context-mcp@latest
# Start MCP server with Gemini
EMBEDDING_PROVIDER=Gemini GEMINI_API_KEY=xxx MILVUS_TOKEN=your-token npx @zilliz/code-context-mcp@latest
EMBEDDING_PROVIDER=Gemini GEMINI_API_KEY=xxx MILVUS_TOKEN=your-token npx @zilliz/claude-context-mcp@latest
# Start MCP server with Ollama
EMBEDDING_PROVIDER=Ollama EMBEDDING_MODEL=nomic-embed-text MILVUS_TOKEN=your-token npx @zilliz/code-context-mcp@latest
EMBEDDING_PROVIDER=Ollama EMBEDDING_MODEL=nomic-embed-text MILVUS_TOKEN=your-token npx @zilliz/claude-context-mcp@latest
`);
}

View File

@@ -1,4 +1,4 @@
import { OpenAIEmbedding, VoyageAIEmbedding, GeminiEmbedding, OllamaEmbedding } from "@zilliz/code-context-core";
import { OpenAIEmbedding, VoyageAIEmbedding, GeminiEmbedding, OllamaEmbedding } from "@zilliz/claude-context-core";
import { CodeContextMcpConfig } from "./config.js";
// Helper function to create embedding instance based on provider

View File

@@ -1,7 +1,7 @@
import * as fs from "fs";
import * as path from "path";
import * as crypto from "crypto";
import { CodeContext, COLLECTION_LIMIT_MESSAGE } from "@zilliz/code-context-core";
import { CodeContext, COLLECTION_LIMIT_MESSAGE } from "@zilliz/claude-context-core";
import { SnapshotManager } from "./snapshot.js";
import { ensureAbsolutePath, truncateContent, trackCodebasePath } from "./utils.js";
@@ -361,7 +361,7 @@ export class ToolHandlers {
await this.codeContext['loadGitignorePatterns'](absolutePath);
// Initialize file synchronizer with proper ignore patterns (including project-specific patterns)
const { FileSynchronizer } = await import("@zilliz/code-context-core");
const { FileSynchronizer } = await import("@zilliz/claude-context-core");
const ignorePatterns = this.codeContext['ignorePatterns'] || [];
console.log(`[BACKGROUND-INDEX] Using ignore patterns: ${ignorePatterns.join(', ')}`);
const synchronizer = new FileSynchronizer(absolutePath, ignorePatterns);

View File

@@ -21,8 +21,8 @@ import {
ListToolsRequestSchema,
CallToolRequestSchema
} from "@modelcontextprotocol/sdk/types.js";
import { CodeContext } from "@zilliz/code-context-core";
import { MilvusVectorDatabase } from "@zilliz/code-context-core";
import { CodeContext } from "@zilliz/claude-context-core";
import { MilvusVectorDatabase } from "@zilliz/claude-context-core";
// Import our modular components
import { createMcpConfig, logConfigurationSummary, showHelpMessage, CodeContextMcpConfig } from "./config.js";

View File

@@ -1,5 +1,5 @@
import * as fs from "fs";
import { CodeContext } from "@zilliz/code-context-core";
import { CodeContext } from "@zilliz/claude-context-core";
import { SnapshotManager } from "./snapshot.js";
export class SyncManager {

View File

@@ -2,9 +2,9 @@
[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/zilliz.semanticcodesearch?label=VS%20Code%20Marketplace&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=zilliz.semanticcodesearch)
A code indexing and semantic search VSCode extension powered by [Code Context](https://github.com/zilliztech/code-context).
A code indexing and semantic search VSCode extension powered by [Code Context](https://github.com/zilliztech/claude-context).
> 📖 **New to Code Context?** Check out the [main project README](https://github.com/zilliztech/code-context/blob/master/README.md) for an overview and setup instructions.
> 📖 **New to Code Context?** Check out the [main project README](https://github.com/zilliztech/claude-context/blob/master/README.md) for an overview and setup instructions.
![img](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdphYH31AdG2Z5FdtLYbedPTGXHvwtDbNwUduYRl7j7sR_WhtiUTdnUALNw-dsABnJkZxxnsRcDA1G37qsaXm9KAW4MiCXY_bStpaaeG-KCfEfmMG4kPFQmoO33yQ_6OlLyjIsPvQ?key=_L-CtW461S9w7NRqzdFOIg)
@@ -67,12 +67,12 @@ Get a free Milvus vector database on Zilliz Cloud.
Code Context needs a vector database. You can [sign up](https://cloud.zilliz.com/signup?utm_source=github&utm_medium=referral&utm_campaign=2507-codecontext-readme) on Zilliz Cloud to get a free Serverless cluster.
![](https://raw.githubusercontent.com/zilliztech/code-context/master/assets/signup_and_create_cluster.jpeg)
![](https://raw.githubusercontent.com/zilliztech/claude-context/master/assets/signup_and_create_cluster.jpeg)
After creating your cluster, open your Zilliz Cloud console and copy both the **public endpoint** and your **API key**.
These will be used as `your-zilliz-cloud-public-endpoint` and `your-zilliz-cloud-api-key` in the configuration examples.
![Zilliz Cloud Dashboard](https://raw.githubusercontent.com/zilliztech/code-context/master/assets/zilliz_cloud_dashboard.jpeg)
![Zilliz Cloud Dashboard](https://raw.githubusercontent.com/zilliztech/claude-context/master/assets/zilliz_cloud_dashboard.jpeg)
Keep both values handy for the configuration steps below.
@@ -115,13 +115,13 @@ MILVUS_TOKEN=your-zilliz-cloud-api-key
## Contributing
This VSCode extension is part of the Code Context monorepo. Please see:
- [Main Contributing Guide](https://github.com/zilliztech/code-context/blob/master/CONTRIBUTING.md) - General contribution guidelines
- [VSCode Extension Contributing](https://github.com/zilliztech/code-context/blob/master/packages/vscode-extension/CONTRIBUTING.md) - Specific development guide for this extension
- [Main Contributing Guide](https://github.com/zilliztech/claude-context/blob/master/CONTRIBUTING.md) - General contribution guidelines
- [VSCode Extension Contributing](https://github.com/zilliztech/claude-context/blob/master/packages/vscode-extension/CONTRIBUTING.md) - Specific development guide for this extension
## Related Packages
- **[@zilliz/code-context-core](https://github.com/zilliztech/code-context/tree/master/packages/core)** - Core indexing engine used by this extension
- **[@zilliz/code-context-mcp](https://github.com/zilliztech/code-context/tree/master/packages/mcp)** - Alternative MCP server integration
- **[@zilliz/claude-context-core](https://github.com/zilliztech/claude-context/tree/master/packages/core)** - Core indexing engine used by this extension
- **[@zilliz/claude-context-mcp](https://github.com/zilliztech/claude-context/tree/master/packages/mcp)** - Alternative MCP server integration
## Tech Stack
@@ -132,4 +132,4 @@ This VSCode extension is part of the Code Context monorepo. Please see:
## License
MIT - See [LICENSE](https://github.com/zilliztech/code-context/blob/master/LICENSE) for details
MIT - See [LICENSE](https://github.com/zilliztech/claude-context/blob/master/LICENSE) for details

View File

@@ -3,7 +3,7 @@
"displayName": "Semantic Code Search",
"publisher": "zilliz",
"description": "Code indexing and semantic search (built by Code Context)",
"version": "0.0.12",
"version": "0.0.1",
"private": true,
"engines": {
"vscode": "^1.74.0"
@@ -175,7 +175,7 @@
"release": "vsce publish --no-dependencies"
},
"dependencies": {
"@zilliz/code-context-core": "workspace:*",
"@zilliz/claude-context-core": "workspace:*",
"web-tree-sitter": "^0.25.6"
},
"devDependencies": {
@@ -194,7 +194,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/zilliztech/code-context.git",
"url": "https://github.com/zilliztech/claude-context.git",
"directory": "packages/vscode-extension"
},
"license": "MIT"

View File

@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import { CodeContext } from '@zilliz/code-context-core';
import { CodeContext } from '@zilliz/claude-context-core';
import * as path from 'path';
import * as crypto from 'crypto';
@@ -75,7 +75,7 @@ export class IndexCommand {
// Initialize file synchronizer
progress.report({ increment: 0, message: 'Initializing file synchronizer...' });
const { FileSynchronizer } = await import("@zilliz/code-context-core");
const { FileSynchronizer } = await import("@zilliz/claude-context-core");
const synchronizer = new FileSynchronizer(selectedFolder.uri.fsPath, this.codeContext['ignorePatterns'] || []);
await synchronizer.initialize();
// Store synchronizer in the context's internal map using the same collection name generation logic

View File

@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import { CodeContext, SearchQuery, SemanticSearchResult } from '@zilliz/code-context-core';
import { CodeContext, SearchQuery, SemanticSearchResult } from '@zilliz/claude-context-core';
import * as path from 'path';
export class SearchCommand {

View File

@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import { CodeContext } from '@zilliz/code-context-core';
import { CodeContext } from '@zilliz/claude-context-core';
import * as fs from 'fs';
export class SyncCommand {

View File

@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import { OpenAIEmbedding, OpenAIEmbeddingConfig, VoyageAIEmbedding, VoyageAIEmbeddingConfig, OllamaEmbedding, OllamaEmbeddingConfig, GeminiEmbedding, GeminiEmbeddingConfig, MilvusConfig, SplitterType, SplitterConfig, AstCodeSplitter, LangChainCodeSplitter } from '@zilliz/code-context-core';
import { OpenAIEmbedding, OpenAIEmbeddingConfig, VoyageAIEmbedding, VoyageAIEmbeddingConfig, OllamaEmbedding, OllamaEmbeddingConfig, GeminiEmbedding, GeminiEmbeddingConfig, MilvusConfig, SplitterType, SplitterConfig, AstCodeSplitter, LangChainCodeSplitter } from '@zilliz/claude-context-core';
// Simplified Milvus configuration interface for frontend
export interface MilvusWebConfig {

View File

@@ -5,8 +5,8 @@ import { SearchCommand } from './commands/searchCommand';
import { IndexCommand } from './commands/indexCommand';
import { SyncCommand } from './commands/syncCommand';
import { ConfigManager } from './config/configManager';
import { CodeContext, OpenAIEmbedding, VoyageAIEmbedding, GeminiEmbedding, MilvusRestfulVectorDatabase, AstCodeSplitter, LangChainCodeSplitter, SplitterType } from '@zilliz/code-context-core';
import { envManager } from '@zilliz/code-context-core';
import { CodeContext, OpenAIEmbedding, VoyageAIEmbedding, GeminiEmbedding, MilvusRestfulVectorDatabase, AstCodeSplitter, LangChainCodeSplitter, SplitterType } from '@zilliz/claude-context-core';
import { envManager } from '@zilliz/claude-context-core';
let semanticSearchProvider: SemanticSearchViewProvider;
let searchCommand: SearchCommand;

View File

@@ -48,7 +48,7 @@ class AstCodeSplitterStub {
this.loadedLanguages = new Map();
// Import LangChain splitter as fallback
try {
const { LangChainCodeSplitter } = require('@zilliz/code-context-core');
const { LangChainCodeSplitter } = require('@zilliz/claude-context-core');
this.fallbackSplitter = new LangChainCodeSplitter(chunkSize, chunkOverlap);
} catch (error) {
console.error('Failed to initialize LangChain fallback splitter:', error);

View File

@@ -17,7 +17,7 @@
<div class="header-section">
<div class="title-section">
<h3>🔍 Semantic Code Search</h3>
<p class="subtitle">built by <a href="https://github.com/zilliztech/code-context"
<p class="subtitle">built by <a href="https://github.com/zilliztech/claude-context"
target="_blank">Code Context</a></p>
</div>
<button id="settingsButton" class="settings-button" title="Settings">

View File

@@ -25,10 +25,10 @@ module.exports = {
// support reading TypeScript and JavaScript files
extensions: ['.ts', '.js'],
alias: {
'@zilliz/code-context-core': path.resolve(__dirname, '../core/dist/index.js'),
'@zilliz/code-context-core/dist/splitter': path.resolve(__dirname, '../core/dist/splitter'),
'@zilliz/code-context-core/dist/embedding': path.resolve(__dirname, '../core/dist/embedding'),
'@zilliz/code-context-core/dist/vectordb': path.resolve(__dirname, '../core/dist/vectordb')
'@zilliz/claude-context-core': path.resolve(__dirname, '../core/dist/index.js'),
'@zilliz/claude-context-core/dist/splitter': path.resolve(__dirname, '../core/dist/splitter'),
'@zilliz/claude-context-core/dist/embedding': path.resolve(__dirname, '../core/dist/embedding'),
'@zilliz/claude-context-core/dist/vectordb': path.resolve(__dirname, '../core/dist/vectordb')
}
},
module: {

8
pnpm-lock.yaml generated
View File

@@ -71,7 +71,7 @@ importers:
examples/basic-usage:
dependencies:
'@zilliz/code-context-core':
'@zilliz/claude-context-core':
specifier: workspace:*
version: link:../../packages/core
devDependencies:
@@ -90,7 +90,7 @@ importers:
packages/chrome-extension:
dependencies:
'@zilliz/code-context-core':
'@zilliz/claude-context-core':
specifier: workspace:*
version: link:../core
devDependencies:
@@ -239,7 +239,7 @@ importers:
'@modelcontextprotocol/sdk':
specifier: ^1.12.1
version: 1.12.1
'@zilliz/code-context-core':
'@zilliz/claude-context-core':
specifier: workspace:*
version: link:../core
zod:
@@ -258,7 +258,7 @@ importers:
packages/vscode-extension:
dependencies:
'@zilliz/code-context-core':
'@zilliz/claude-context-core':
specifier: workspace:*
version: link:../core
web-tree-sitter:

View File

@@ -19,10 +19,10 @@
"baseUrl": ".",
"downlevelIteration": true,
"paths": {
"@zilliz/code-context-core": [
"@zilliz/claude-context-core": [
"./packages/core/src"
],
"@zilliz/code-context-core/*": [
"@zilliz/claude-context-core/*": [
"./packages/core/src/*"
]
}