Vexor

io.github.scarletkc由 GitHub 账号 scarletkc 发布v0.31.0更新于 Nov 3, 2026

A semantic search engine for files and code.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

Vexor 是一个本地语义搜索引擎,让助手通过描述文件或代码的用途来查找它们,并返回带匹配源码的排序结果。

可以做什么
  • 用自然语言描述搜索文件和代码,返回带路径、相关度分数、行范围和匹配源码的排序结果
  • 为某个目录构建或刷新语义索引,用于预热缓存或在关闭自动索引时使用
  • 搜索默认递归进行并遵循 .gitignore,启用 auto_index 时会自动构建缺失或过期的索引
适用场景
当你记得某个文件或代码的作用却想不起名称或位置,希望助手无需 grep 模式或手动遍历目录就能找到它时适用。适合在较大代码仓库或项目目录中工作的编程助手。
运行要求
作为本地进程运行,从 PyPI 安装 vexor 包,用 uvx 或 vexor mcp 命令启动;需要桌面版 MCP 客户端。必须配置嵌入提供方:运行 vexor init、设置 VEXOR_API_KEY,或通过 vexor local --setup 使用离线本地模型。可选的 VEXOR_CONFIG_JSON 提供非机密配置,VEXOR_REMOTE_RERANK_API_KEY 仅在启用远程重排时需要。
安装前请注意
VEXOR_API_KEY 和 VEXOR_REMOTE_RERANK_API_KEY 是通过环境变量传入的机密,请勿写入共享配置文件。建立索引会读取目标目录中的文件内容,并把文本发送给所配置的嵌入提供方,可能是第三方服务,因此不要索引含敏感资料的目录。vexor_index 会向磁盘写入索引数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Vexor,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README


Vexor is a semantic search engine that builds reusable indexes over files and code. It supports configurable embedding and reranking providers, and exposes the same core through a Python API, a CLI tool, and an MCP server.

Vexor Demo Video

Featured In

Vexor has been recognized and featured by the community:

Why Vexor?

When you remember what a file does but forget its name or location, Vexor finds it instantly—no grep patterns or directory traversal needed.

Designed for both humans and AI coding assistants, enabling semantic file discovery in autonomous agent workflows.

Install

Download standalone binary from releases (no Python required), or:

bash
pip install vexor  # also works with pipx, uv

Quick Start

0. Guided Setup (Recommended)

bash
vexor init

The wizard also runs automatically before the first interactive operational command when no config exists. Configuration-management (vexor config), MCP, help, and version commands run directly.

1. Search

bash
vexor "api client config"  # defaults to search current directory# or explicit path:vexor search "api client config" --path ~/projects/demo --top 5# in-memory search only:vexor search "api client config" --no-cache 

Vexor auto-indexes on first search. Example output:

Vexor semantic file search results──────────────────────────────────#   Similarity   File path                       Lines   Preview1   0.923        ./src/config_loader.py          -       config loader entrypoint2   0.871        ./src/utils/config_parse.py     -       parse config helpers3   0.809        ./tests/test_config_loader.py   -       tests for config loader

2. Explicit Index (Optional)

bash
vexor index  # indexes current directory# or explicit path:vexor index --path ~/projects/demo --mode code

Useful for CI warmup or when auto_index is disabled.

Python API

Vexor can also be imported and used directly from Python:

python
from vexor import index, search
index(path=".", mode="head")response = search("config loader", path=".", mode="name")
for hit in response.results:    print(hit.path, hit.score)

Configuration follows the same global and project-level resolution as the CLI. For runtime overrides, cache controls, and per-call options, see docs/api/python.md.

AI Agent Skill

This repo includes a skill for AI agents to use Vexor effectively:

bash
vexor install --skills claude  # Claude Codevexor install --skills codex   # Codex

Skill source: plugins/vexor/skills/vexor-cli

MCP Server

[vexor MCP server]

[!NOTE] The Agent Skill and the MCP server provide the same core capability — pick one per agent. The skill teaches shell-capable agents (Claude Code, Codex) to drive the full CLI and assumes vexor is installed on PATH; the MCP server exposes search as native tools, works in any MCP client (Cursor, Windsurf, Zed, ...), and can bootstrap without prior setup via uvx and environment variables.

Vexor ships a built-in MCP stdio server, so any MCP-capable agent can use semantic file search as a native tool:

bash
claude mcp add vexor -- vexor mcp   # Claude Codecodex mcp add vexor -- vexor mcp    # Codex

Or configure manually in any MCP client, optionally supplying the API key and any config overrides via env (no vexor init needed):

json
{  "mcpServers": {    "vexor": {      "command": "vexor",      "args": ["mcp"],      "env": {        "VEXOR_API_KEY": "sk-...",        "VEXOR_CONFIG_JSON": "{\"provider\": \"gemini\", \"rerank\": \"bm25\"}"      }    }  }}

The server exposes two tools: vexor_search (semantic file search, returning the matching source text so an agent rarely needs a follow-up file read) and vexor_index (explicit index warm-up). No extra dependencies are required. Vexor is listed on the official MCP registry as io.github.scarletkc/vexor. See docs/mcp.md for tool schemas, environment variables, and client setup details.

Configuration

bash
vexor init                             # guided setup (recommended)vexor config --set-api-key "YOUR_KEY"  # or env: VEXOR_API_KEY / OPENAI_API_KEY / ...vexor config --set-provider openai     # default; also gemini/voyageai/custom/localvexor config --rerank hybrid           # optional: fuse exact keyword + semantic rankingvexor config --show                    # view effective settings and origins

Global config lives in ~/.vexor/config.json; the nearest <project>/.vexor/config.json can override a restricted set of behavior fields for that project. Non-secret fields can also be injected via VEXOR_CONFIG_JSON (useful for MCP clients and CI), and fully offline use is supported through local embedding models.

See docs/configuration.md for the complete reference: project config fields and precedence, all config commands, API keys and environment variables, rerank strategies (hybrid / BM25 / FlashRank / remote), remote vs local providers, embedding dimensions, and offline local model setup.

CLI Reference

Everyday usage fits in vexor "query", vexor search, and vexor index (see Quick Start). The full command table, common flags, index modes (--mode auto/name/head/brief/full/code/outline), .vexorignore files, project-local indexes (vexor index --local), cache behavior, and porcelain output format are documented in docs/cli.md.

Documentation

  • Configuration — providers, API keys, rerank, embedding dimensions, local models
  • CLI reference — commands, flags, index modes, cache behavior
  • MCP server — client setup, environment variables, tool schemas
  • Python API — programmatic usage
  • Collections API — database-backed text records and filtered search

Contributing

Contributions, issues, and PRs welcome! Commit messages and PR titles follow Conventional Commits (e.g. feat(mcp): add stdio server). Star if you find it helpful.

Star History

[Star History Chart]

License

MIT

来源:README.md,提交 eae0d6d

工具

2

vexor_index

Build or refresh the semantic index for a directory. Use it to warm the cache or when auto_index is disabled.

输入参数modepathlocalrecursiveextensionsinclude_hiddenexclude_patternsrespect_gitignore

版本历史

3
  1. v0.31.0最新Oct 29, 2026
  2. v0.30.0Sep 27, 2026
  3. v0.29.0Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分