MCPcopy
hub / github.com/xpf0000/FlyEnv / deleteSite

Method deleteSite

src/main/core/MCPTools.ts:661–672  ·  view source on GitHub ↗

delete_site:删除本地站点

(siteName: string)

Source from the content-addressed store, hash-verified

659
660 /** delete_site:删除本地站点 */
661 async deleteSite(siteName: string): Promise<any> {
662 const site = await this.findSiteByName(siteName)
663 if (!site) {
664 throw new Error(`Site ${siteName} not found`)
665 }
666 const data = await callFork(this.forkManager, 'host', 'handleHost', site, 'del')
667 const list = data?.host ?? []
668 if (Array.isArray(list)) {
669 await this.finalizeHostMutation(list, false)
670 }
671 return data
672 }
673
674 /**
675 * list_online_versions:查询某个模块的线上可用版本列表。

Callers 1

buildToolDefsMethod · 0.80

Calls 3

findSiteByNameMethod · 0.95
finalizeHostMutationMethod · 0.95
callForkFunction · 0.70

Tested by

no test coverage detected