TMCP037 search_tests filtered by category

The user shall be able to filter tests by category and receive only tests belonging to that category.

Is a test for
Automated in
Source

Source file: specs/mcp/test_11.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_tests with category functional

{
  "id": 2,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_tests",
    "arguments": {"category": "functional"}
  }
}

Step 2

Verify only functional tests are returned. T03 and T04 (non-functional) must not appear.

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "structuredContent": {
      "tests": [
        {"category": "functional", "id": "T01"},
        {"category": "functional", "id": "T02", "short": "Second test"}
      ]
    }
  }
}