TMCP005 get_requirement with all fields¶
Query a requirement that has all optional fields populated
Is a test for
Automated in
Source
Source file: specs/mcp/test_03.yaml
Loaded from: speky_mcp
Initial state¶
The expected state is the final state of
TMCP003 Initialize the MCP server
Procedure¶
Step 1¶
Call get_requirement tool with ID RF03
{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_requirement",
"arguments": {"id": "RF03"}
}
}
Step 2¶
Verify response contains all expected fields:
id:
RF03category: non-functional
short: “Number 3”
long: “The third requirement !”
client_statement: “I want a requirement will all fields”
properties: author, since, version
tags:
foo,bar:bazref and referenced_by:
RF04tested_by:
T03andT04comments: 3 comments
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"structuredContent": {
"category": "non-functional",
"client_statement": "I want a requirement will all fields",
"comments": [
{
"date": "03/01/2025",
"external": false,
"from": "Mr. Author",
"text": "I wrote that"
},
{
"date": "03/01/2025",
"external": true,
"from": "Observer",
"text": "I can see that"
},
{
"date": "03/01/2025",
"external": false,
"from": "Mr. Author",
"text": "Good"
}
],
"id": "RF03",
"long": "The third requirement !",
"properties": {
"author": "Mr. Author",
"since": "`1.0.0`",
"version": 2
},
"ref": [{"id": "RF04"}],
"referenced_by": [{"id": "RF04"}],
"short": "Number 3",
"tags": ["foo", "bar:baz"],
"tested_by": [
{"id": "T03", "short": "Create files"},
{"id": "T04", "short": "Yet another test"}
]
}
}
}