TMCP043 get_requirement includes code references

When code sources are declared in the manifest and a requirement has been tagged in source code, get_requirement shall include a code_references field listing the file, line, and symbol of each tagged location.

Is a test for
Automated in
Source

Source file: specs/mcp/test_12.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 for a requirement that has a code reference

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

Step 2

Verify the response includes a code_references field with file, line, and symbol

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "structuredContent": {
      "category": "functional",
      "id": "RF01",
      "long": "The first requirement",
      "code_references": [
        {"file": "src/feature.py", "line": 5, "symbol": "my_function"}
      ]
    }
  }
}