sqry - Semantic Code Search

io.github.verivus-oss由 GitHub 帳號 verivus-oss 發布v33.0.1更新於 Oct 24, 2026

AST-based semantic code search: 39 tools over 37 languages. Call tracing and impact analysis.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

sqry 提供以 AST 為基礎的語意程式碼搜尋,讓助理在本地儲存庫中尋找符號、追蹤呼叫並分析影響,涵蓋 37 種語言。

可以做什麼
  • 以字串述詞與結構化篩選條件搜尋、列出程式碼符號(依類型、語言、可見度)
  • 瀏覽定義與引用,並在程式碼關係圖上執行關係查詢
  • 匯出程式碼圖、追蹤呼叫以進行影響分析與語意差異比較
  • 偵測重複程式碼、循環相依與未使用程式碼,並檢視工作區狀態
  • 透過 tools/list、列出工具的命令列參數與 sqry 資源文件探索可用工具與參數結構
適用情境
適合需要理解或瀏覽大型多語言程式碼庫的情境:定位定義、追蹤呼叫鏈、評估變更的影響範圍,或找出死程式碼與重複程式碼。它在本地對你指定的儲存庫執行。
執行需求
需在本地安裝 sqry-mcp 執行檔(Cargo 套件或容器映像)並以 stdio 執行,另需 sqry 命令列工具用於設定與常駐程式模式。環境變數 SQRY_MCP_WORKSPACE_ROOT 指定要建立索引與搜尋的儲存庫。僅限桌面端,未宣告任何驗證機制。
安裝前請注意
此伺服器會建立索引並讀取原始碼目錄,結果可能把檔案路徑與程式碼暴露給助理;若助理使用外部模型服務,也會傳送給該服務,README 建議對外部或託管 LLM 供應商採用 standard 去識別化預設。設定指令會寫入 MCP 設定檔,建議先以 dry-run 預覽。常駐程式模式需自行啟動並載入 sqryd。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 sqry - Semantic Code Search,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

sqry MCP Server

Version: 33.0.1

MCP Registry name: mcp-name: io.github.verivus-oss/sqry

sqry-mcp exposes sqry semantic code-search tools to Model Context Protocol clients.

Modes

Standalone mode:

bash
sqry-mcp --no-daemon

Daemon-backed mode:

bash
sqry daemon startsqry daemon load .sqry-mcp --daemon

Standalone mode currently exposes 39 tools. Daemon-hosted MCP exposes a 17-tool subset backed by sqryd. Use dynamic discovery for exact schemas and descriptions:

bash
sqry-mcp --list-tools

MCP clients can also call tools/list, and sqry clients can read sqry://meta/manifest.

Removed in 21.0.0: the sqry_ask natural-language MCP tool was removed. Use sqry_query, semantic_search, and relation_query instead; see Removed features for migration.

Setup

bash
sqry mcp setup --tool claudesqry mcp setup --tool codexsqry mcp setup --tool gemini

Preview without writing:

bash
sqry mcp setup --tool codex --dry-run

Codex and Gemini use global MCP config and rely on starting the assistant in the target project. Claude project scope can pin a workspace root.

When setup writes a standalone command, expect --no-daemon. Use --daemon only when you have started and loaded sqryd intentionally.

Tool Discovery

Prefer discovery over copying static tables:

  • MCP tools/list
  • sqry-mcp --list-tools
  • sqry://meta/manifest
  • sqry://docs/tool-guide
  • sqry://docs/capability-map

The standalone catalog includes tools for symbol search, navigation, relation queries, graph export, impact analysis, semantic diff, duplicate/cycle/unused detection, workspace status, and context propagation.

Quick Start Tool Calls

Use query for string predicates and filters for structured JSON pre-filters:

json
{  "name": "semantic_search",  "arguments": {    "query": "kind:function items:true",    "filters": {      "language": ["rust"],      "visibility": "public"    }  }}

Use items:true or is_definition:true inside query for definition-only predicates. For list_symbols, use the structured items_only parameter instead:

json
{  "name": "list_symbols",  "arguments": {    "kind": "function",    "language": "rust",    "items_only": true  }}

On pre-V16 snapshots without trustworthy definition signal, these definition-only surfaces return a reindexRequired / reindex-required advisory instead of silently evaluating stale default-false marker data.

Workspaces

MCP resolves workspace context from explicit paths, file-bearing arguments, MCP roots, recent session context, and current working directory fallback.

For multi-root projects, configure a workspace with .sqry-workspace or a VS Code .code-workspace file containing sqry.workspace.

bash
sqry workspace status . --json

source_root_id

workspace_status.aggregate.source_root_statuses[].source_root_id is an opaque 8-hex display/correlation token. It is not a path and not a path prefix.

Invalid tool path:

text
485f1995/src/lib.rs

Valid tool paths:

text
src/lib.rs/absolute/path/to/workspace/src/lib.rs

Under redaction, result paths can be rendered with a source-root prefix for display. Use source_root_id only to correlate that display prefix with aggregate status entries. Cleartext source roots appear only in top-level source_roots[] when the selected redaction preset permits them.

Redaction

The MCP runtime default is minimal. For hosted or external LLM providers, standard is the recommended preset unless stricter path privacy is required. strict is available for stronger redaction.

Keep these separate:

  • Runtime default: minimal
  • Recommended external-provider preset: standard
  • Library/environment defaults: see sqry-mcp-redaction docs for embedding-specific behavior

Related Guides

來源:sqry-mcp/README.md,提交 8f139a6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v33.0.1最新Oct 6, 2026
  2. v33.0.0Oct 5, 2026
  3. v32.0.1Oct 1, 2026
  4. v31.0.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分