TMCP013 search_requirements filtered by namespaced tag

The user shall be able to filter requirements by a namespaced tag (e.g., bar:baz) and receive only requirements matching that exact tag.

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 tag bar:baz

{
  "id": 2,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_requirements",
    "arguments": {"tag": "bar:baz"}
  }
}

Step 2

Verify only requirements tagged with the exact value bar:baz are returned. A tag bar alone would not match.

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "structuredContent": {
      "requirements": [
        {"category": "non-functional", "id": "RF03", "short": "Number 3", "tags": ["foo", "bar:baz"]}
      ]
    }
  }
}