Loading...
Loading...
Setup and workflow for using sqry semantic code search as an MCP server with OpenAI Codex CLI. Covers installation, MCP configuration via `~/.codex/config.toml`, and recommended patterns for code analysis tasks. Install this skill to give Codex access to sqry's 34 AST-based code analysis tools.
npx skill4agent add verivus-oss/sqry-skills sqry-codex# 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 codex
sqry mcp status~/.codex/config.toml[mcp_servers.sqry]
command = "/absolute/path/to/sqry-mcp""Use sqry to show graph stats for this project"
sqry-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
...AGENTS.mdCODEX.md## Code Search
Use sqry MCP tools for semantic code search:
- `mcp__sqry__semantic_search` - Find symbols by structure
- `mcp__sqry__relation_query` - Find callers, callees, imports
- `mcp__sqry__dependency_impact` - Analyze change impact
- `mcp__sqry__explain_code` - Understand a symbol with context
Use `rg` for literal text search. Use sqry for everything structural.mcp__sqry__semantic_searchmcp__sqry__pattern_searchmcp__sqry__dependency_impact1. mcp__sqry__semantic_search query: "kind:function name:process_order"
2. mcp__sqry__explain_code file_path: "src/orders.rs", symbol_name: "process_order"
3. mcp__sqry__direct_callers symbol: "process_order"1. mcp__sqry__dependency_impact symbol: "shared_utility", max_depth: 3
2. mcp__sqry__find_cycles (check for circular deps)
3. Make changes
4. mcp__sqry__semantic_diff base: {ref: "main"}, target: {ref: "HEAD"}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 codexsqry index .sqry index --force .rm -rf .sqry/graph && sqry index .sqry index --include-high-costmcp__sqry__get_index_status