TMCP044 get_test includes code references with is_test flag

When code sources are declared in the manifest and a test has been tagged in source code, get_test shall include a code_references field with file, line, symbol, and an is_test boolean indicating whether the tagged symbol is an automated test implementation.

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_test for a test that has code references

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

Step 2

Verify the response includes code_references with is_test set to true for automated test functions, and false for non-test symbols.

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "structuredContent": {
      "category": "functional",
      "id": "T01",
      "long": "The first test",
      "ref": [{"id": "RF01"}],
      "steps": [],
      "code_references": [
        {"file": "tests/test_feature.py", "line": 12, "symbol": "test_my_function", "is_test": true}
      ]
    }
  }
}