MCPcopy
hub / github.com/ZToolsCenter/ZTools / getDisabledPluginPaths

Method getDisabledPluginPaths

src/main/api/plugin/tools.ts:320–323  ·  view source on GitHub ↗

* 读取被用户禁用 MCP 工具暴露的插件路径集合。

()

Source from the content-addressed store, hash-verified

318 * 读取被用户禁用 MCP 工具暴露的插件路径集合。
319 */
320 private getDisabledPluginPaths(): Set<string> {
321 const data = databaseAPI.dbGet(MCP_DISABLED_PLUGINS_DB_KEY)
322 return new Set(Array.isArray(data) ? data.filter((item) => typeof item === 'string') : [])
323 }
324
325 /**
326 * 生成 MCP 对外暴露的工具名,格式为 plugin_tool。

Callers 1

Calls 1

dbGetMethod · 0.45

Tested by

no test coverage detected