vitest/vitest

MCP Server

Vitest MCP Server - run Vitest tests, list test files, and analyze coverage

Vitest testing MCP server. Run tests, list test files, and analyze code coverage.

MCP Server

  • Package: @djankies/vitest-mcp
  • Transport: stdio
  • Command: npx -y @djankies/vitest-mcp

Authentication

None required

VariableRequiredDescription
——No environment variables required

Available Tools

ToolDescription
set_project_rootSet project root
list_testsList test files
run_testsExecute tests
analyze_coverageCoverage analysis

Configuration Example

toml
[[mcp.servers]]
name = "vitest"
type = "stdio"
command = "npx"
args = ["-y", "@djankies/vitest-mcp"]
timeout_seconds = 60
tools = []

Notes: Requires Vitest 0.34.0+. Optional: @vitest/coverage-v8 for coverage.