LearnNewsExamplesServices
Frontmatter
id8216
titleFix Neural Link server startup crash due to missing startServer/stopServer methods
stateClosed
labels
bugai
assigneestobiu
createdAtDec 30, 2025, 12:14 PM
updatedAtDec 30, 2025, 12:20 PM
githubUrlhttps://github.com/neomjs/neo/issues/8216
authortobiu
commentsCount0
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 30, 2025, 12:20 PM

Fix Neural Link server startup crash due to missing startServer/stopServer methods

Closed v11.18.0 bugai
tobiu
tobiu commented on Dec 30, 2025, 12:14 PM

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.

tobiu added the bug label on Dec 30, 2025, 12:14 PM
tobiu added the ai label on Dec 30, 2025, 12:14 PM
tobiu assigned to @tobiu on Dec 30, 2025, 12:14 PM
tobiu added parent issue #8169 on Dec 30, 2025, 12:14 PM
tobiu referenced in commit ae5b10f - "fix(ai): Implement start/stopServer in ConnectionService to resolve startup crash (#8216)" on Dec 30, 2025, 12:19 PM
tobiu closed this issue on Dec 30, 2025, 12:20 PM