LucidShark

v0.10.0
io.github.toniantunovi/lucidshark Checked 6 hours ago Published 23 days ago

Local code quality and security scanner: lint, types, SAST, SCA, tests, coverage.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan

Run comprehensive code quality checks. LucidShark is a unified pipeline for: LINTING (Ruff, ESLint, Biome, Clippy, Checkstyle, PMD - style issues, code smells); FORMATTING (Ruff Format, Prettier, rustfmt - code formatting); TYPE_CHECKING (mypy, Pyright, tsc, SpotBugs, cargo check - type errors); SAST security (OpenGrep - code vulnerabilities); SCA security (Trivy - dependency vulnerabilities); IAC security (Checkov - infrastructure misconfigurations); CONTAINER security (Trivy - container image vulnerabilities); TESTING (pytest, Jest, Karma, Playwright, JUnit, cargo test - runs tests); COVERAG…

ParameterTypeDescription
all_filesbooleanScan entire project instead of just changed files. DEFAULT BEHAVIOR: Scans only git-changed files (uncommitted changes). Set to true to scan all files in the project regardless of git status.
base_branchstringFilter coverage results to files changed since this branch (e.g., 'origin/main'). Full tests still run; only reporting is filtered. Use in CI pipelines for PR-based coverage.
coverage_threshold_scopestringWhen using base_branch, apply coverage threshold to: 'changed' (changed files only, default), 'project' (full project), or 'both' (fail if either is below threshold).
domainsarrayDomains to check. Options: linting, type_checking, sast, sca, iac, container, testing, coverage, duplication, all
duplication_threshold_scopestringWhen using base_branch, apply duplication threshold to: 'changed', 'project', or 'both' (default).
filesarrayOptional list of specific files to check (relative paths). If not provided, scans only git-changed files by default. Use all_files=true to scan entire project instead.
fixbooleanWhether to apply auto-fixes for fixable issues
linting_threshold_scopestringWhen using base_branch, apply linting threshold to: 'changed' (default), 'project', or 'both'.
type_checking_threshold_scopestringWhen using base_branch, apply type checking threshold to: 'changed' (default), 'project', or 'both'.

check_file

Check a specific file and return issues with fix instructions. Automatically detects the file type and runs relevant checks.

ParameterTypeDescription
file_path *stringPath to the file to check (relative to project root)

get_fix_instructions

Get detailed fix instructions for a specific issue. Use after running scan to get more details about how to fix an issue.

ParameterTypeDescription
issue_id *stringThe issue identifier from a scan result

apply_fix

Apply auto-fix for a fixable issue. Currently only supports linting issues.

ParameterTypeDescription
issue_id *stringThe issue identifier to fix

get_status

Get current LucidShark status, configuration, and capabilities. Shows which scan domains are enabled (linting, type_checking, sast, sca, iac, container, testing, coverage, duplication), available tools per domain, thresholds, and any cached issues from previous scans.

get_help

Get LucidShark documentation for AI agents. Returns comprehensive markdown reference for initialization, configuration, CLI commands, and MCP tools.

autoconfigure

AI-assisted customization of lucidshark.yml configuration. ⚠️ NOTE: `lucidshark init` already generates lucidshark.yml with all supported tools for detected languages. Use this tool only for advanced customization. ⚠️ CRITICAL: ONLY use tools from the 'Complete List of Supported Tools' in get_help(). NEVER hallucinate or invent tool names. Unsupported tools cause validation errors. Call this MCP tool to get step-by-step instructions, then: 1) Analyze the codebase (package files, existing tool configs), 2) Call get_help() and extract the 'Tool Availability' section, 3) Write the lucidsh…

validate_config

Validate a lucidshark.yml configuration file. Returns validation results with errors and warnings. Use after generating or modifying configuration to ensure it's valid. NOTE: After making configuration changes, restart Claude Code for the MCP server to load the new configuration.

ParameterTypeDescription
config_pathstringPath to configuration file (relative to project root). If not provided, finds lucidshark.yml in project root.