Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions conformance/examples/ai-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
8 changes: 7 additions & 1 deletion conformance/examples/registry-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]

Expand Down Expand Up @@ -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

Expand Down
Loading