Language: English | 中文 | Español | Français | Deutsch | 日本語 | 한국어
Semantic code search for MCP clients.
Hitmux Context Engine indexes a repository into Milvus-compatible vector storage, then gives Claude Code, OpenAI Codex CLI, OpenCode, Cursor, Windsurf, and other MCP clients focused tools for finding code by behavior, symbol, workflow, or file role.
Use it when an AI coding agent needs more than text grep:
- Search indexed code with natural-language or identifier-heavy queries.
- Prefer implementation files while still surfacing related tests, docs, config, and exports when useful.
- Keep project configuration in simple
config.conffiles instead of per-client environment setup.
Typical first-use workflow:
hce index .
Check the indexing status
Find the handler that validates MCP tool arguments
Create or complete the runtime config:
npm install -g @hitmux/hce@latest
hce initThen edit ~/.hitmux-context-engine/config.conf and fill in the provider key. Check local config and connectivity:
hce doctorFor Claude Code, add the MCP server:
claude mcp add hitmux-context-engine -- hceFor OpenAI Codex CLI, add the MCP server:
codex mcp add hitmux-context-engine -- hceThe full package alias @hitmux/hitmux-context-engine and the original MCP package @hitmux/hitmux-context-engine-mcp start the same server.
Database note: Use Local Milvus with milvusAddress = localhost:19530. For self-hosted remote Milvus, replace it with the reachable host and port, and add milvusToken only if authentication is required. For a free Zilliz Cloud database, sign up at https://cloud.zilliz.com/signup, then use the cloud public endpoint and add milvusToken with your Personal Key. Other database backends are not selectable from config.conf.
For a new repository, create the first index from the repository root before relying on MCP search:
hce index .Then open your MCP client in the repository and ask:
Check the indexing status
Find functions that handle user authentication
You can also check status from a shell:
hce status .hce with no arguments starts the MCP stdio server for clients. Use arguments when running it directly from a shell:
| Task | Command |
|---|---|
| Show help or version | hce --help, hce --version |
| Create or complete global config | hce init |
| Show global and project config paths | hce config path |
| Check config and connectivity | hce doctor, hce doctor --no-connectivity |
| Index the current repository | hce index . |
| Show index status | hce status ., hce status . --refresh |
| Search an indexed repository | hce search "query" . --limit 5 --target-role implementation |
| Manage indexes and collections | hce list, hce list <name-or-path>, hce clear <path>, hce repair <path>, hce rm <name-or-path>, hce index --force <path> |
More client examples, including Cursor, Windsurf, Claude Desktop, Gemini CLI, Qwen Code, VS Code MCP, Cline, and Roo Code, are in docs/quick-start.md.
For a local source checkout, run ./scripts/install-local-global.sh to build the workspace and install a user-level hitmux-context-engine-mcp command from the current checkout. Run the script with sudo to install the command globally. Published-package Claude Code and Codex CLI setup uses the global hce command shown above.
Hitmux Context Engine reads product configuration from conf files:
~/.hitmux-context-engine/config.conf./.hitmux-context-engine/config.conf- built-in defaults
Project config overrides global config for fields that are present. Environment variables and ~/.hitmux-context-engine/.env are not used for MCP product options.
See docs/configuration.md for provider, Milvus/Zilliz, indexing, sync, and file filtering options.
@hitmux/hitmux-context-engine-mcp: MCP stdio server for Claude Code and other MCP clients.@hitmux/hceand@hitmux/hitmux-context-engine: npm package aliases for the MCP server.@hitmux/hitmux-context-engine-core: TypeScript indexing, splitting, embedding, synchronization, and vector database package.
See docs/package-reference.md for tools, package usage, and core API examples.
packages/core Core indexing engine
packages/mcp MCP server
docs Flat documentation
examples Local usage examples
evaluation Evaluation scripts and raw case-study data
python Python bridge helpers
Use Node >=20 and pnpm >=10.
pnpm install
pnpm build
pnpm typecheck
pnpm lint
pnpm --filter @hitmux/hitmux-context-engine-core test
pnpm --filter @hitmux/hitmux-context-engine-mcp testPackage-specific commands:
pnpm build:core
pnpm build:mcp
pnpm build:examples
pnpm dev
pnpm example:basicBefore opening a PR, describe the changed package, behavior, validation commands, and any configuration or migration notes.
- docs/configuration.md: canonical conf configuration reference.
- docs/quick-start.md: MCP client setup.
- docs/troubleshooting.md: common setup and runtime problems.
- docs/package-reference.md: MCP tools and core package usage.
MIT. See LICENSE.
This project is based on the core of zilliztech/claude-context. Thanks to the Linux Do community for its support.


