MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / removeFileWatchersForServer

Method removeFileWatchersForServer

src/services/mcp/McpHub.ts:1703–1709  ·  view source on GitHub ↗
(serverName: string)

Source from the content-addressed store, hash-verified

1701 }
1702
1703 private removeFileWatchersForServer(serverName: string) {
1704 const watchers = this.fileWatchers.get(serverName)
1705 if (watchers) {
1706 watchers.forEach((watcher) => watcher.close())
1707 this.fileWatchers.delete(serverName)
1708 }
1709 }
1710
1711 async restartConnection(serverName: string, source?: "global" | "project"): Promise<void> {
1712 this.isConnecting = true

Callers 2

deleteConnectionMethod · 0.95
toggleServerDisabledMethod · 0.95

Calls 4

forEachMethod · 0.80
getMethod · 0.65
closeMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected