@deepsql/mcp 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli.js +14 -4
- package/src/commands/slow-queries.js +1 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -383,12 +383,22 @@ const COMMAND_HELP = {
|
|
|
383
383
|
["analyze --connection <name> [options]", "Trigger a new analysis"],
|
|
384
384
|
["optimize --connection <name> --query-id <id>", "Stream AI optimization steps live (SSE)"],
|
|
385
385
|
["delete (--history-id <id> | --connection <name>) [--yes]", "Clean up history"],
|
|
386
|
+
["trends --connection <name>", "30-day tracked queries with delta metrics"],
|
|
387
|
+
["regressions --connection <name> [--min-factor <n>]", "Queries that got slower on the latest run"],
|
|
388
|
+
["timeline <fingerprint> --connection <name>", "Day-by-day metrics for one fingerprint"],
|
|
389
|
+
["customers --connection <name>", "Tenants ranked by total slow-query load"],
|
|
390
|
+
["samples <fingerprint> --connection <name> [--limit <n>]", "Literal SQL samples (with bind values) for a fingerprint"],
|
|
391
|
+
["insights --connection <name> [--kind <k>] [--window <w>]", "AI insights: hotspots, remediation, tail-risk, plan-drift, skew"],
|
|
392
|
+
["trigger --connection <name>", "Trigger an immediate analysis run"],
|
|
386
393
|
],
|
|
387
394
|
options: [
|
|
388
|
-
["--time-range LAST_24_HOURS|LAST_HOUR",
|
|
389
|
-
["--threshold-ms <n>",
|
|
390
|
-
["--limit <n>",
|
|
391
|
-
["--
|
|
395
|
+
["--time-range LAST_24_HOURS|LAST_HOUR", "Window for analyze"],
|
|
396
|
+
["--threshold-ms <n>", "Min duration to consider"],
|
|
397
|
+
["--limit <n>", "Cap results"],
|
|
398
|
+
["--min-factor <n>", "Min slowdown multiple for regressions (default 1.5)"],
|
|
399
|
+
["--kind hotspots|remediation|tail-risk|plan-drift|skew", "Insight category (default: all)"],
|
|
400
|
+
["--window LAST_24_HOURS|LAST_7_DAYS|LAST_30_DAYS", "Insights window (default LAST_7_DAYS)"],
|
|
401
|
+
["--json", "Raw JSON output"],
|
|
392
402
|
],
|
|
393
403
|
notes: "`optimize` follows the SSE protocol from /slow-queries/optimize/stream — step events go to stderr, the final result to stdout. Honors SIGINT.",
|
|
394
404
|
},
|