Remove logs

This commit is contained in:
Saoud Rizwan 2025-02-18 18:30:36 -08:00
parent f9025426b8
commit a6e109718e

View file

@ -50,14 +50,6 @@ export function findMatchingResourceOrTemplate(
export function getMcpServerDisplayName(serverName: string, mcpMarketplaceCatalog: McpMarketplaceCatalog): string {
// Find matching item in marketplace catalog
const catalogItem = mcpMarketplaceCatalog.items.find((item) => item.mcpId === serverName)
// Log if no matching catalog item found
if (!catalogItem) {
console.warn(`No marketplace catalog item found for MCP server: ${serverName}`)
} else {
console.log(`Found marketplace catalog item for MCP server: ${serverName}`, catalogItem)
}
console.log(mcpMarketplaceCatalog)
// Return display name if found, otherwise return original server name
return catalogItem?.name || serverName