TMCP014 search_requirements filtered by category¶
The user shall be able to filter requirements by category and receive only requirements belonging to that category.
Is a test for
Automated in
Source
Source file: specs/mcp/test_05.yaml
Loaded from: speky_mcp
Initial state¶
The expected state is the final state of
TMCP003 Initialize the MCP server
Procedure¶
Step 1¶
The client calls search_requirements with category functional
{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_requirements",
"arguments": {"category": "functional"}
}
}
Step 2¶
Verify only functional requirements are returned. RF03 and RF04 (non-functional) must not appear.
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"structuredContent": {
"requirements": [
{"category": "functional", "id": "RF01"},
{"category": "functional", "id": "RF02", "short": "Second"}
]
}
}
}