Skip to content

MCP server for test results and coverage #8411

@Martinspire

Description

@Martinspire

Clear and concise description of the problem

I'm often already running vitest when I'm developing and it would be nice if Vitest could provide the results and the coverage to the AI tools via MCP server. We already have the location of the output, the reporters and config. Or even the VSCode extension could provide it (though I personally run it separately anyways).

Suggested solution

Allow MCP configuration for major editors (VSCode, Intellij, Cursor) to check the output and validate whether the recently generated code works or not, whether the lines are covered or not and whether it can use any of the errors to continue fixing it.

Alternative

Also providing more documentation and instructions for AI would be helpful. Perhaps generating instruction files, based on your configuration, this could also help AI make its own MCP server too, if the instruction file would show where the output is located and how to read it. Though perhaps we need a different kind of Reporter that writes output in a way that AI is better at processing, if it is necessary to provide better communication.

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions