Loading...
Loading...
Setup and workflow for using sqry semantic code search as an MCP server with Claude Code. Covers installation, MCP configuration, tool naming conventions, and recommended search patterns. Install this skill to give Claude Code full access to sqry's 34 AST-based code analysis tools.
npx skill4agent add verivus-oss/sqry-skills sqry-claude# Recommended: signed release installer
curl -fsSL https://raw.githubusercontent.com/verivus-oss/sqry/main/scripts/install.sh | bash -s -- --component all
# Fallback: build from source
cargo install sqry-cli
cargo install sqry-mcp
# Alternative package manager
brew install verivus-oss/sqry/sqrycd /path/to/your/project
sqry index .sqry mcp setup --tool claude
sqry mcp status.claude.json~/.claude.jsonsqry-mcpSQRY_MCP_WORKSPACE_ROOT{
"mcpServers": {
"sqry": {
"type": "stdio",
"command": "/absolute/path/to/sqry-mcp",
"env": {
"SQRY_MCP_WORKSPACE_ROOT": "/path/to/your/project"
}
}
}
}mcp__sqry__"Use sqry to show graph stats for this project"
mcp__sqry__get_graph_statssqry-semantic-searchsqry-semantic-search/references/tool-reference.mdsqry-semantic-search/references/workflows.mdmcp__sqry__get_definitionmcp__sqry__direct_callersmcp__sqry__relation_querymcp__sqry__direct_calleesmcp__sqry__dependency_impactmcp__sqry__explain_codemcp__sqry__pattern_searchmcp__sqry__semantic_searchmcp__sqry__hierarchical_searchmcp__sqry__find_cyclesmcp__sqry__find_unusedmcp__sqry__dependency_impactmcp__sqry__trace_pathmcp__sqry__direct_callersmcp__sqry__direct_calleesmcp__sqry__call_hierarchyhandlenewinitprocessrunfile_path{
"symbol": "handle",
"file_path": "src/api/router.rs"
}"symbol": "UserService::authenticate"mcp__sqry__get_referencespathmcp__sqry__mcp__sqry__semantic_search
mcp__sqry__relation_query
mcp__sqry__dependency_impact
mcp__sqry__explain_code
mcp__sqry__trace_path
mcp__sqry__find_cycles
...CLAUDE.md## Code Search
Use sqry MCP tools (`mcp__sqry__*`) as the default for semantic code search:
- `mcp__sqry__semantic_search` - Find symbols by meaning
- `mcp__sqry__hierarchical_search` - RAG-optimized search with grouping
- `mcp__sqry__relation_query` - Find callers, callees, imports
- `mcp__sqry__explain_code` - Understand a symbol with context
Use Grep for literal text search. Use Glob for file finding. Use sqry for everything structural.mcp__sqry__semantic_searchmcp__sqry__hierarchical_searchmcp__sqry__dependency_impactmcp__sqry__direct_callersmcp__sqry__direct_calleesmcp__sqry__semantic_diffUser: "Who calls the authenticate function?"
Claude uses: mcp__sqry__relation_query
symbol: "authenticate"
relation_type: "callers"
max_depth: 2User: "What would break if I change UserService?"
Claude uses: mcp__sqry__dependency_impact
symbol: "UserService"
max_depth: 3
include_indirect: trueUser: "Help me understand the auth module"
Claude uses:
1. mcp__sqry__semantic_search query: "path:src/auth"
2. mcp__sqry__explain_code file_path: "src/auth/mod.rs", symbol_name: "authenticate"
3. mcp__sqry__subgraph symbols: ["authenticate", "verify_token"]FastHighWallClock--include-high-cost--exclude-high-cost--enable-plugin ID--disable-plugin IDSQRY_INCLUDE_HIGH_COST=1rebuild_indexsemantic_difffind_cyclescomplexity_metricsfind_duplicatescall_hierarchydependency_impactsqry cache expand--enable-macro-expansion--cfg--cfg-filter--include-generated--macro-boundariesmcp__sqry__expand_cache_status--classpath--classpath-depth--classpath-fileinclude_classpathprovenance"minimal""none"SQRY_REDACTION_PRESET=nonesqry mcp setup --tool claudesqry index .sqry index --force .rm -rf .sqry/graph && sqry index .sqry index --include-high-costmcp__sqry__get_index_status