feat: Add Node.js version for Windows WebSocket compatibility#42
Open
feat: Add Node.js version for Windows WebSocket compatibility#42
Conversation
- Add mcp_pipe.js for Windows users (fixes WinError 64) - Update mcp_pipe.py with ping_interval parameter - Add package.json for Node.js dependencies - Update README with Windows/Node.js instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题 | Problem
中文: Windows 用户使用 Python
mcp_pipe.py连接 WebSocket 服务(如 wss://api.xiaozhi.me)时会出现WinError 64错误,导致连接失败。English: Windows users encounter
WinError 64when using Pythonmcp_pipe.pyto connect to WebSocket servers (e.g., wss://api.xiaozhi.me).原因 | Root Cause: Python
websocketslibrary 13.0+ has SSL/TLS handshake compatibility issues on Windows.解决方案 | Solution
中文: 提供 Node.js 版本桥接脚本,使用
ws库实现,Windows 兼容。English: Provide a Node.js bridge script using the
wslibrary for Windows compatibility.改动 | Changes
mcp_pipe.jspackage.jsonmcp_pipe.pyREADME.md.gitignore使用方法 | Usage
Windows(推荐 | Recommended):