Skip to main content
Glama

Vitest MCP Server

list_tests

Explore and catalog test files in your project using supported patterns (.test., .spec.). Recursively searches directories, providing structured file details like paths and relative locations. Ideal for understanding test organization and identifying coverage scope.

Instructions

Discover and catalog test files across the project with support for common test file patterns (.test., .spec.). Recursively searches directories and provides structured file information including paths and relative locations. Useful for understanding test organization and coverage scope. Requires set_project_root to be called first.

USE WHEN: User wants to explore test structure, find test files, understand test organization, or asks "what tests exist", "show me test files", or mentions exploring/finding tests. Also use when "vitest-mcp:" prefix is included and context involves test discovery.

Input Schema

NameRequiredDescriptionDefault
pathNoOptional directory path to search for test files. Can be relative (e.g., "./src/components") or absolute. If not provided, searches the entire project root. Useful for limiting search scope to specific directories or modules.

Input Schema (JSON Schema)

{ "properties": { "path": { "description": "Optional directory path to search for test files. Can be relative (e.g., \"./src/components\") or absolute. If not provided, searches the entire project root. Useful for limiting search scope to specific directories or modules.", "type": "string" } }, "type": "object" }

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