Skip to main content
Glama

Vitest MCP Server

by djankies

analyze_coverage

Analyze code coverage for specific files or directories to measure line, function, and branch coverage. Set thresholds, view detailed metrics, and choose output formats to ensure comprehensive test coverage and quality.

Instructions

Run comprehensive coverage analysis with detailed metrics about line, function, and branch coverage

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format: "summary" (basic metrics), "detailed" (comprehensive analysis with file details)summary
includeDetailsNoInclude detailed line-by-line coverage analysis
targetYesFile path or directory to analyze coverage for (required to prevent analyzing entire project)
thresholdNoMinimum coverage threshold percentage (default: 80)
thresholdsNoCustom coverage thresholds for different metrics

Input Schema (JSON Schema)

{ "properties": { "format": { "default": "summary", "description": "Output format: \"summary\" (basic metrics), \"detailed\" (comprehensive analysis with file details)", "enum": [ "summary", "detailed" ], "type": "string" }, "includeDetails": { "default": false, "description": "Include detailed line-by-line coverage analysis", "type": "boolean" }, "target": { "description": "File path or directory to analyze coverage for (required to prevent analyzing entire project)", "type": "string" }, "threshold": { "default": 80, "description": "Minimum coverage threshold percentage (default: 80)", "maximum": 100, "minimum": 0, "type": "number" }, "thresholds": { "additionalProperties": false, "description": "Custom coverage thresholds for different metrics", "properties": { "branches": { "maximum": 100, "minimum": 0, "type": "number" }, "functions": { "maximum": 100, "minimum": 0, "type": "number" }, "lines": { "maximum": 100, "minimum": 0, "type": "number" }, "statements": { "maximum": 100, "minimum": 0, "type": "number" } }, "type": "object" } }, "required": [ "target" ], "type": "object" }
Install Server

Other Tools from Vitest MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/djankies/vitest-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server