LearnNewsExamplesServices
Frontmatter
id8001
titleImplement App Worker MCP Server PoC (Neural Link)
stateClosed
labels
documentationenhancementairefactoring
assigneestobiu
createdAtDec 3, 2025, 2:50 AM
updatedAtDec 3, 2025, 3:14 AM
githubUrlhttps://github.com/neomjs/neo/issues/8001
authortobiu
commentsCount0
parentIssue7960
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 3, 2025, 3:14 AM

Implement App Worker MCP Server PoC (Neural Link)

Closed v11.16.0 documentationenhancementairefactoring
tobiu
tobiu commented on Dec 3, 2025, 2:50 AM

A Proof of Concept (PoC) has been implemented to establish a bidirectional communication channel between Node.js agents and the Neo.mjs App Worker.

Current Implementation (PoC):

  • BridgeService: A WebSocket server (ai/mcp/server/app-worker/services/BridgeService.mjs) running on port 8081.
  • MCP Server: A basic MCP server (ai/mcp/server/app-worker/Server.mjs) exposing bridgeReady and bridgeEvaluate tools.
  • SDK: AppWorker_BridgeService exported in ai/services.mjs.
  • Verification: A test script ai/examples/test-app-worker.mjs was created.

Known Issues & Refactoring Requirements:

  1. Namespace Convention: Neo.ai.mcp.server.app_worker uses underscores; should be app-worker to match folder structure and existing patterns (e.g., knowledge-base).
  2. Example App: The PoC modified examples/button/base, which is incorrect. A dedicated example app (e.g., examples/ai/bridge) must be created for testing.
  3. Dependencies: ws was added to devDependencies but should be managed more carefully (optional dependency).
  4. Architecture: BridgeService spawning the WebSocket server directly in construct/start needs review. It should likely be a separate concern or class.
  5. Tool Registration: Manual tool registration in Server.mjs should be replaced with Neo.ai.mcp.ToolService.

Next Steps:

  • Rename namespaces.
  • Create a dedicated test example.
  • Refactor Server.mjs to use ToolService.
  • Clean up dependencies.
tobiu added the documentation label on Dec 3, 2025, 2:50 AM
tobiu added the enhancement label on Dec 3, 2025, 2:50 AM
tobiu added the ai label on Dec 3, 2025, 2:50 AM
tobiu added the refactoring label on Dec 3, 2025, 2:50 AM
tobiu assigned to @tobiu on Dec 3, 2025, 2:52 AM
tobiu added parent issue #7960 on Dec 3, 2025, 2:56 AM
tobiu referenced in commit 6d78b50 - "Implement App Worker MCP Server PoC (Neural Link) #8001" on Dec 3, 2025, 3:07 AM
tobiu closed this issue on Dec 3, 2025, 3:14 AM