MCP012 List requirements sorted by test coverageΒΆ
mcp | tools mcp | query mcp | traceability
I would like to see which requirements are the least covered by tests, so I can prioritize writing test plans for them. I want the requirements with no tests at all to appear first, then those with few tests, then those that are only manually tested before the fully automated ones.
The user shall be able to retrieve a ranked list of requirements ordered by ascending test coverage.
The MCP server shall expose a tool named least_tested_requirements that returns all
requirements sorted so the least tested appear first.
The sort order shall be:
Ascending number of test plans (requirements with no tests come first)
Ascending number of automated test plans (fully manual requirements come before partially or fully automated ones)
Alphabetically by ID as a tiebreaker
Each entry in the returned list shall contain:
id: The unique identifiershort: The short description (if present)category: The requirement categorytest_plans: Total number of tests that reference this requirementautomated_test_plans: Number of those tests that have at least one automated code test reference (a tagged code reference where the symbol is a test function)
An optional category parameter allows filtering to a single category.
An optional tag parameter allows filtering to requirements carrying a specific tag.
Both filters may be combined.
An optional count parameter limits the number of results returned (e.g. 5 returns
only the 5 least tested requirements). Negative or out-of-range values shall be ignored.
If the specified category or tag does not exist, the tool shall return an error.
Properties
author: Claude
since: 0.4.0
Tested by
References
Relates to:
MCP010 Get test plan coverage for requirements
Source
Source file: specs/mcp/tracability.yaml
Loaded from: speky_mcp
Implemented in:
handle_least_tested_requirements