diff --git a/conformance/examples/ai-catalog.json b/conformance/examples/ai-catalog.json index 42913a7..3819486 100644 --- a/conformance/examples/ai-catalog.json +++ b/conformance/examples/ai-catalog.json @@ -34,6 +34,12 @@ "type": "application/ai-catalog+json", "url": "https://acme.com/catalogs/engineering.json", "description": "Nested catalog containing CI/CD and internal deployment agents." + }, + { + "identifier": "urn:air:acme.com:tool:unit-converter", + "displayName": "Unit Converter", + "type": "application/mcp-server-card+json", + "url": "https://api.acme.com/mcp/unit-converter.json" } ] } diff --git a/conformance/examples/registry-server.py b/conformance/examples/registry-server.py index f461ae0..3b17ecb 100755 --- a/conformance/examples/registry-server.py +++ b/conformance/examples/registry-server.py @@ -45,6 +45,12 @@ "type": "application/ai-catalog+json", "url": "https://acme.com/catalogs/engineering.json", "description": "Nested catalog containing CI/CD and internal deployment agents." + }, + { + "identifier": "urn:air:acme.com:tool:unit-converter", + "displayName": "Unit Converter", + "type": "application/mcp-server-card+json", + "url": "https://api.acme.com/mcp/unit-converter.json" } ] @@ -113,7 +119,7 @@ def do_POST(self): matched = False # Match text against keywords in display name, description, or representative queries - if query_text in entry["displayName"].lower() or query_text in entry["description"].lower(): + if query_text in entry["displayName"].lower() or query_text in entry.get("description", "").lower(): score += 30 matched = True