MCPcopy Create free account
hub / github.com/damms005/devdb-vscode / stopHttpServer

Function stopHttpServer

src/services/mcp/http-server.ts:203–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201}
202
203export function stopHttpServer(): void {
204 if (port) {
205 logger.info('Stopping MCP HTTP server', { port });
206 try {
207 const projectRoot = getProjectRoot();
208 clearPort(projectRoot);
209 } catch (error: any) {
210 logger.error('Failed to clear port entry', { error: error.message });
211 }
212 port = null;
213 logToOutput('MCP HTTP server stopped', 'MCP Server');
214 }
215}

Callers 1

deactivateFunction · 0.90

Calls 3

clearPortFunction · 0.90
logToOutputFunction · 0.90
getProjectRootFunction · 0.85

Tested by

no test coverage detected