TMCP021 list_references_to returns empty list for unreferenced requirement

Query which requirements reference a requirement that no other requirement points to, verify an empty list is returned

Is a test for
Automated in
Source

Source file: specs/mcp/test_07.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 list_references_to with ID RF01, which no requirement references

{
  "id": 2,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "list_references_to",
    "arguments": {"id": "RF01"}
  }
}

Step 2

Verify an empty list is returned

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "structuredContent": {
      "requirements": []
    }
  }
}