Version: 22.0.4
sqry-mcp exposes sqry semantic code-search tools to Model Context Protocol clients.
Standalone mode:
sqry-mcp --no-daemonDaemon-backed mode:
sqry daemon start
sqry daemon load .
sqry-mcp --daemonStandalone mode currently exposes 36 tools. Daemon-hosted MCP exposes a 15-tool subset backed by sqryd. Use dynamic discovery for exact schemas and descriptions:
sqry-mcp --list-toolsMCP clients can also call tools/list, and sqry clients can read sqry://meta/manifest.
Removed in 22.0.4: the
sqry_asknatural-language MCP tool was removed. Usesqry_query,semantic_search, andrelation_queryinstead; see Removed features for migration.
sqry mcp setup --tool claude
sqry mcp setup --tool codex
sqry mcp setup --tool geminiPreview without writing:
sqry mcp setup --tool codex --dry-runCodex 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.
Prefer discovery over copying static tables:
- MCP
tools/list sqry-mcp --list-toolssqry://meta/manifestsqry://docs/tool-guidesqry://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.
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.
sqry workspace status . --jsonworkspace_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:
485f1995/src/lib.rs
Valid tool paths:
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.
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-redactiondocs for embedding-specific behavior