Skip to main content
Glama

Vitest MCP Server

by djankies

run_tests

Execute Vitest tests on specified files or directories with configurable output formats. Choose between concise summaries or detailed structured data for efficient LLM-driven debugging and analysis.

Instructions

Execute Vitest commands with configurable output formatting optimized for LLM consumption

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format: "summary" (simple summary data only), "detailed" (structured information about each failing test and summary of passing tests). Smart defaults: single file → summary, multiple files or failures → detailedsummary
targetYesFile path or directory to test (required to prevent running all tests)

Input Schema (JSON Schema)

{ "properties": { "format": { "default": "summary", "description": "Output format: \"summary\" (simple summary data only), \"detailed\" (structured information about each failing test and summary of passing tests). Smart defaults: single file → summary, multiple files or failures → detailed", "enum": [ "summary", "detailed" ], "type": "string" }, "target": { "description": "File path or directory to test (required to prevent running all tests)", "type": "string" } }, "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