feat(mcp): expose show_uncovered on the test tool - #1706
Open
unicoderbot[bot] wants to merge 2 commits into
Open
feat(mcp): expose show_uncovered on the test tool#1706unicoderbot[bot] wants to merge 2 commits into
unicoderbot[bot] wants to merge 2 commits into
Conversation
Closes #1705 Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the
show_uncoveredflag to the MCPtesttool's input schema. This allows agents to request uncovered line information when a coverage shortfall occurs, rather than being limited to just the coverage percentage.Changes
show_uncoveredboolean parameter to thetesttool's MCP schema_parseTestto append--show-uncoveredflag when the parameter is set to trueMotivation
When the MCP
testtool encounters amin_coveragefailure, it previously only reported the coverage percentage. The underlying CLI already knows which lines are uncovered via the--show-uncoveredflag, but the MCP surface didn't expose this capability. This gap required workarounds like config file settings, which are fragile and require opt-in from every consuming repository.Closes #1705