Skip to content

Commit 7446920

Browse files
BrainSlugs83Copilot
andcommitted
fix: actionable error when port is occupied by foreign service
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a8b8163 commit 7446920

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ async function ensureServer() {
112112
return;
113113
}
114114
}
115-
throw new Error("Vector memory server failed to start within 30s");
115+
throw new Error(
116+
`Vector memory server failed to start — port ${PORT} may be in use by another service. ` +
117+
`Fix: set VECTOR_MEMORY_PORT to an unused port in ~/.copilot/mcp-config.json — ` +
118+
`see https://github.com/BrainSlugs83/GithubCopilotCLI-VectorMemoryMCP#environment-variables`
119+
);
116120
}
117121

118122
// --- HTTP client helper ---

0 commit comments

Comments
 (0)