Sensegrep
v1.5.3Semantic + structural code search MCP server for AI-native development.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sensegrep_search
Semantic + structural code search. Languages: typescript, javascript, python, java, vue
| Parameter | Type | Description |
|---|---|---|
query * | string | Semantic search query: pass a natural-language sentence/text or a code snippet, not isolated keywords |
decorator | string | Filter by decorator (@Autowired, @Deprecated, @Inject, @NotNull, @Nullable...) |
exclude | string | File glob exclude filter (e.g., '*.md' or 'docs/**') |
hasDocumentation | boolean | Require documentation |
imports | string | Filter by imported module name |
include | string | File glob include filter (e.g., 'src/**/*.ts') |
isAbstract | boolean | Only abstract classes/methods |
isAsync | boolean | Only async functions/methods |
isExported | boolean | Only exported symbols |
isStatic | boolean | Only static methods |
language | string | Filter by programming language |
limit | number | Max results (default: 20) |
maxComplexity | number | Maximum cyclomatic complexity |
maxPerFile | number | Max results per file (default: 1) |
maxPerSymbol | number | Max results per symbol (default: 1) |
minComplexity | number | Minimum cyclomatic complexity |
minScore | number | Minimum relevance score 0-1 |
name | string | Alias for symbol name |
parentScope | string | Parent scope/class name |
pattern | string | Regex pattern filter |
rerank | boolean | Compatibility flag. Remote-only mode keeps semantic ranking unchanged |
rootDir | string | Root directory (default: cwd) |
symbol | string | Filter by symbol name |
symbolType | string | Semantic symbol type |
variant | string | Language-specific variant. Available: abstract (typescript/python/java/vue), alias (typescript/vue), annotation (java), arrow (typescript/javascript/vue), async (typescript/javascript/python/vue), cla… |
sensegrep_survey
Theme-oriented code survey. Groups semantically related hits into reading domains and returns representative tree-shaken snippets.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language theme query to map a domain or feature area |
decorator | string | Filter by decorator (@Autowired, @Deprecated, @Inject, @NotNull, @Nullable...) |
exclude | string | File glob exclude filter (e.g., '*.md' or 'docs/**') |
hasDocumentation | boolean | Require documentation |
imports | string | Filter by imported module name |
include | string | File glob include filter (e.g., 'src/**/*.ts') |
isAbstract | boolean | Only abstract classes/methods |
isAsync | boolean | Only async functions/methods |
isExported | boolean | Only exported symbols |
isStatic | boolean | Only static methods |
language | string | Filter by programming language |
limit | number | Max groups to return (default: 5) |
maxComplexity | number | Maximum cyclomatic complexity |
minComplexity | number | Minimum cyclomatic complexity |
minScore | number | Minimum relevance score 0-1 |
name | string | Alias for symbol name |
parentScope | string | Parent scope/class name |
pattern | string | Optional regex pattern filter |
perGroup | number | Representative snippets per group (default: 2) |
rawLimit | number | Raw matches to gather before grouping (default: 60) |
rootDir | string | Root directory (default: cwd) |
shake | boolean | Enable tree-shaken representative snippets |
symbol | string | Filter by symbol name |
symbolType | string | Semantic symbol type |
variant | string | Language-specific variant. Available: abstract (typescript/python/java/vue), alias (typescript/vue), annotation (java), arrow (typescript/javascript/vue), async (typescript/javascript/python/vue), cla… |
sensegrep_cluster
Semantic code clustering. Breaks a broad query into coherent subthemes using embeddings + AST metadata and returns representative snippets.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language theme query to decompose into clusters |
clusterThreshold | number | Similarity threshold for linking matches (default: 0.72) |
decorator | string | Filter by decorator (@Autowired, @Deprecated, @Inject, @NotNull, @Nullable...) |
exclude | string | File glob exclude filter (e.g., '*.md' or 'docs/**') |
hasDocumentation | boolean | Require documentation |
imports | string | Filter by imported module name |
include | string | File glob include filter (e.g., 'src/**/*.ts') |
isAbstract | boolean | Only abstract classes/methods |
isAsync | boolean | Only async functions/methods |
isExported | boolean | Only exported symbols |
isStatic | boolean | Only static methods |
language | string | Filter by programming language |
limit | number | Max clusters to return (default: 5) |
maxComplexity | number | Maximum cyclomatic complexity |
minClusterSize | number | Minimum cluster size before singleton fallback (default: 2) |
minComplexity | number | Minimum cyclomatic complexity |
minScore | number | Minimum relevance score 0-1 |
name | string | Alias for symbol name |
parentScope | string | Parent scope/class name |
pattern | string | Optional regex pattern filter |
perCluster | number | Representative snippets per cluster (default: 2) |
rawLimit | number | Raw matches to gather before clustering (default: 70) |
rootDir | string | Root directory (default: cwd) |
shake | boolean | Enable tree-shaken representative snippets |
symbol | string | Filter by symbol name |
symbolType | string | Semantic symbol type |
variant | string | Language-specific variant. Available: abstract (typescript/python/java/vue), alias (typescript/vue), annotation (java), arrow (typescript/javascript/vue), async (typescript/javascript/python/vue), cla… |
sensegrep_detect_duplicates
Detect logical duplicates using the existing semantic index.
| Parameter | Type | Description |
|---|---|---|
crossFileOnly | boolean | Only report cross-file duplicates |
crossLanguage | boolean | Detect duplicates across languages (default: off) |
excludePattern | string | Exclude symbols matching regex |
ignoreAcceptablePatterns | boolean | Do not ignore acceptable duplicates |
ignoreTests | boolean | Ignore test files |
json | boolean | Return raw JSON result |
language | string | Filter by language (comma-separated) |
limit | number | Max duplicates to show (default: 10) |
minComplexity | number | Minimum complexity (default: 0) |
minLines | number | Minimum lines (default: 10) |
normalizeIdentifiers | boolean | Normalize identifiers (default: true) |
onlyExported | boolean | Only exported symbols |
quiet | boolean | Only show summary |
rankByImpact | boolean | Rank by impact (default: true) |
rootDir | string | Root directory (default: cwd) |
scope | string | Scope: function, method, all (or comma-separated) |
showCode | boolean | Show code snippets |
threshold | number | Minimum similarity 0.0-1.0 (default: 0.85) |
verbose | boolean | Show detailed output |
sensegrep_index
Create/update semantic index or fetch index stats for the given root directory.
| Parameter | Type | Description |
|---|---|---|
action | string | Operation type: index (default) or stats |
mode | string | Index mode when action=index (default: incremental) |
rootDir | string | Root directory to index |