The Neural Link server crashes on startup because the start_ws_server and stop_ws_server tools are mapped to ConnectionService.startServer and ConnectionService.stopServer, which were not implemented in ConnectionService following the v2 architecture refactor.
Root Cause:
toolService.mjs attempts to bind these undefined methods during initialization (or tool list generation), causing a TypeError.
Resolution:
Implement startServer() and stopServer() in ai/mcp/server/neural-link/services/ConnectionService.mjs.
startServer(): Should proxy to this.ensureBridgeAndConnect() (or spawnBridge explicitly).
stopServer(): Should kill the child process (if managed) and close the WebSocket connection.
This maintains the v2 architecture (ConnectionService as a client to a standalone Bridge process) while restoring the functionality of the lifecycle management tools.
The Neural Link server crashes on startup because the
start_ws_serverandstop_ws_servertools are mapped toConnectionService.startServerandConnectionService.stopServer, which were not implemented inConnectionServicefollowing the v2 architecture refactor.Root Cause:
toolService.mjsattempts to bind these undefined methods during initialization (or tool list generation), causing aTypeError.Resolution: Implement
startServer()andstopServer()inai/mcp/server/neural-link/services/ConnectionService.mjs.startServer(): Should proxy tothis.ensureBridgeAndConnect()(orspawnBridgeexplicitly).stopServer(): Should kill the child process (if managed) and close the WebSocket connection.This maintains the v2 architecture (ConnectionService as a client to a standalone Bridge process) while restoring the functionality of the lifecycle management tools.