TMCP024 list_all_tags returns unique tags sorted

Call list_all_tags and verify the response contains all unique tags sorted alphabetically. Namespaced tags (e.g. bar:baz) shall appear as a single entry, not split into parts.

Is a test for
Automated in
Source

Source file: specs/mcp/test_08.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_all_tags with no arguments

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

Step 2

Verify the response contains all tags sorted alphabetically. bar:baz appears as one entry (not split into bar and baz). bar:baz sorts before foo.

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "structuredContent": {
      "tags": ["bar:baz", "foo"]
    }
  }
}