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

Function getInternalPluginUrl

src/main/core/internalPluginServer.ts:107–110  ·  view source on GitHub ↗
(pluginName: string, mainFile: string)

Source from the content-addressed store, hash-verified

105 * 获取内置插件的 HTTP URL
106 */
107export function getInternalPluginUrl(pluginName: string, mainFile: string): string {
108 if (serverPort === 0) return ''
109 return `http://127.0.0.1:${serverPort}/${pluginName}/${mainFile}`
110}
111
112/**
113 * 获取 server 端口号(0 表示未启动)

Callers 2

loadInternalPluginsFunction · 0.90
resolvePluginUrlMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected