mcp

v0.1.0
io.github.FinishKit/mcp Checked 19 hours ago Published 9 months ago

FinishKit MCP: scan GitHub repos for security vulnerabilities, deployment blockers, and quality

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

scan_repo

Scan a GitHub repository with FinishKit to detect security vulnerabilities, deployment blockers, stability issues, test coverage gaps, and UI problems. This is the primary tool - it handles the full scan lifecycle: finds the project, triggers a new scan run, polls until completion (typically 2-8 minutes), and returns a comprehensive summary of all findings. Use this when a user wants to check if their code is production-ready, find security issues, or prepare for deployment. Returns finding counts by category and severity, plus a human-readable summary.

ParameterTypeDescription
repo_name *stringThe GitHub repository name without the owner prefix (e.g., 'my-app' not 'myorg/my-app')
repo_owner *stringThe GitHub organization or username that owns the repository (e.g., 'myorg' or 'octocat')
commit_shastringSpecific git commit SHA to scan. If omitted, scans the latest commit on the default branch.
run_typestringThe type of scan to run. 'baseline' scans the full codebase (default), 'pr' scans changes in a pull request, 'manual_patch' applies a specific patch.

get_scan_status

Check the current status of an in-progress FinishKit scan. Returns the scan phase (clone, detect, analyze, patch, verify, pr, finalize), progress percentage, and estimated time remaining. Use this to poll a running scan that was triggered separately, or to check if a previously started scan has completed.

ParameterTypeDescription
run_id *stringThe FinishKit run ID returned by scan_repo or any runs API call

get_findings

Retrieve detailed findings from a completed FinishKit scan. Findings include security vulnerabilities, deployment blockers, stability issues, test gaps, and UI problems. Each finding includes the affected file path, line numbers, severity, category, detailed explanation, and suggested fix. Use this after scan_repo completes to get the full list of issues, optionally filtered by category or severity.

ParameterTypeDescription
run_id *stringThe FinishKit run ID to retrieve findings for (returned by scan_repo or get_scan_status)
categorystringFilter findings to a specific category. Omit to get all findings.
limitnumberMaximum number of findings to return (1-100). Defaults to 50.
severitystringFilter findings to a specific minimum severity level. For example, "high" returns critical and high findings. Omit to get all severities.

get_patches

Retrieve automatically generated code patches from a completed FinishKit scan. Patches are diff-format code changes that fix detected issues. Each patch includes the affected finding title, the unified diff, application status, and verification status. Use this to see what code changes FinishKit recommends, or to apply fixes to the codebase.

ParameterTypeDescription
run_id *stringThe FinishKit run ID to retrieve patches for

list_projects

List all FinishKit projects connected to your account. Each project represents a GitHub repository that has been linked to FinishKit. Returns project IDs, repository names, last scan status, and last scan date. Use this to see which repositories are configured, find project IDs for other API calls, or check when a repository was last scanned.

create_project

Create a new FinishKit project by linking a GitHub repository. Note: This requires the FinishKit GitHub App to be installed on the repository first. If the GitHub App is not installed, this tool will direct the user to https://finishkit.app/dashboard to install it and create the project through the web interface. Returns setup instructions with a direct link to the dashboard.

ParameterTypeDescription
repo_name *stringThe GitHub repository name without the owner prefix (e.g., 'my-app' not 'myorg/my-app')
repo_owner *stringThe GitHub organization or username that owns the repository (e.g., 'myorg' or 'octocat')