Sensegrep

v1.5.3
io.github.Stahldavid/sensegrep Checked 8 hours ago Published 5 months ago

Semantic + 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_survey

Theme-oriented code survey. Groups semantically related hits into reading domains and returns representative tree-shaken snippets.

ParameterTypeDescription
query *stringNatural-language theme query to map a domain or feature area
decoratorstringFilter by decorator (@Autowired, @Deprecated, @Inject, @NotNull, @Nullable...)
excludestringFile glob exclude filter (e.g., '*.md' or 'docs/**')
hasDocumentationbooleanRequire documentation
importsstringFilter by imported module name
includestringFile glob include filter (e.g., 'src/**/*.ts')
isAbstractbooleanOnly abstract classes/methods
isAsyncbooleanOnly async functions/methods
isExportedbooleanOnly exported symbols
isStaticbooleanOnly static methods
languagestringFilter by programming language
limitnumberMax groups to return (default: 5)
maxComplexitynumberMaximum cyclomatic complexity
minComplexitynumberMinimum cyclomatic complexity
minScorenumberMinimum relevance score 0-1
namestringAlias for symbol name
parentScopestringParent scope/class name
patternstringOptional regex pattern filter
perGroupnumberRepresentative snippets per group (default: 2)
rawLimitnumberRaw matches to gather before grouping (default: 60)
rootDirstringRoot directory (default: cwd)
shakebooleanEnable tree-shaken representative snippets
symbolstringFilter by symbol name
symbolTypestringSemantic symbol type
variantstringLanguage-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.

ParameterTypeDescription
query *stringNatural-language theme query to decompose into clusters
clusterThresholdnumberSimilarity threshold for linking matches (default: 0.72)
decoratorstringFilter by decorator (@Autowired, @Deprecated, @Inject, @NotNull, @Nullable...)
excludestringFile glob exclude filter (e.g., '*.md' or 'docs/**')
hasDocumentationbooleanRequire documentation
importsstringFilter by imported module name
includestringFile glob include filter (e.g., 'src/**/*.ts')
isAbstractbooleanOnly abstract classes/methods
isAsyncbooleanOnly async functions/methods
isExportedbooleanOnly exported symbols
isStaticbooleanOnly static methods
languagestringFilter by programming language
limitnumberMax clusters to return (default: 5)
maxComplexitynumberMaximum cyclomatic complexity
minClusterSizenumberMinimum cluster size before singleton fallback (default: 2)
minComplexitynumberMinimum cyclomatic complexity
minScorenumberMinimum relevance score 0-1
namestringAlias for symbol name
parentScopestringParent scope/class name
patternstringOptional regex pattern filter
perClusternumberRepresentative snippets per cluster (default: 2)
rawLimitnumberRaw matches to gather before clustering (default: 70)
rootDirstringRoot directory (default: cwd)
shakebooleanEnable tree-shaken representative snippets
symbolstringFilter by symbol name
symbolTypestringSemantic symbol type
variantstringLanguage-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.

ParameterTypeDescription
crossFileOnlybooleanOnly report cross-file duplicates
crossLanguagebooleanDetect duplicates across languages (default: off)
excludePatternstringExclude symbols matching regex
ignoreAcceptablePatternsbooleanDo not ignore acceptable duplicates
ignoreTestsbooleanIgnore test files
jsonbooleanReturn raw JSON result
languagestringFilter by language (comma-separated)
limitnumberMax duplicates to show (default: 10)
minComplexitynumberMinimum complexity (default: 0)
minLinesnumberMinimum lines (default: 10)
normalizeIdentifiersbooleanNormalize identifiers (default: true)
onlyExportedbooleanOnly exported symbols
quietbooleanOnly show summary
rankByImpactbooleanRank by impact (default: true)
rootDirstringRoot directory (default: cwd)
scopestringScope: function, method, all (or comma-separated)
showCodebooleanShow code snippets
thresholdnumberMinimum similarity 0.0-1.0 (default: 0.85)
verbosebooleanShow detailed output

sensegrep_index

Create/update semantic index or fetch index stats for the given root directory.

ParameterTypeDescription
actionstringOperation type: index (default) or stats
modestringIndex mode when action=index (default: incremental)
rootDirstringRoot directory to index