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 分