fix[McpService]: fix NotificationHandlers code duplicates (#8304)

This commit is contained in:
且以代码诉平生 2025-07-19 23:51:10 +08:00 committed by GitHub
parent 71dfec6875
commit 4962f692a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -381,12 +381,6 @@ class McpService {
// Clear existing cache to ensure fresh data
this.clearServerCache(serverKey)
// Set up notification handlers
this.setupNotificationHandlers(client, server)
// Clear existing cache to ensure fresh data
this.clearServerCache(serverKey)
logger.debug(`Activated server: ${server.name}`)
return client
} catch (error: any) {