MCPcopy Create free account
hub / github.com/MigoXLab/coderio / makeServerKey

Function makeServerKey

src/tools/launch-tool/index.ts:15–18  ·  view source on GitHub ↗

* Generate a stable lookup key for a dev server instance (same appPath => same key). * Port and pid are NOT included because: * - They become stale after restart (port may change, pid always changes) * - DevServerManager tracks current port/pid in its internal state * - serverKey is only used fo

(appPath: string)

Source from the content-addressed store, hash-verified

13 * Stable key ensures one manager per appPath and avoids concurrent start() / duplicate port logs.
14 */
15function makeServerKey(appPath: string): string {
16 const safeApp = appPath.split(path.sep).join('_');
17 return `launch:${safeApp}`;
18}
19
20@tools({
21 startDevServer: {

Callers 1

startDevServerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected