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:
- 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).
- 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.
- Dependencies:
ws was added to devDependencies but should be managed more carefully (optional dependency).
- Architecture:
BridgeService spawning the WebSocket server directly in construct/start needs review. It should likely be a separate concern or class.
- 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.
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):
ai/mcp/server/app-worker/services/BridgeService.mjs) running on port 8081.ai/mcp/server/app-worker/Server.mjs) exposingbridgeReadyandbridgeEvaluatetools.AppWorker_BridgeServiceexported inai/services.mjs.ai/examples/test-app-worker.mjswas created.Known Issues & Refactoring Requirements:
Neo.ai.mcp.server.app_workeruses underscores; should beapp-workerto match folder structure and existing patterns (e.g.,knowledge-base).examples/button/base, which is incorrect. A dedicated example app (e.g.,examples/ai/bridge) must be created for testing.wswas added todevDependenciesbut should be managed more carefully (optional dependency).BridgeServicespawning the WebSocket server directly inconstruct/startneeds review. It should likely be a separate concern or class.Server.mjsshould be replaced withNeo.ai.mcp.ToolService.Next Steps:
Server.mjsto useToolService.