FFFF GitHub - ai-1st/mcp-ws · GitHub
[go: up one dir, main page]

Skip to content
ai-1stPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

mcp-ws

A CLI tool to connect local stdio (standard input/output) to a remote WebSocket server.

Overview

mcp-ws is designed 8360 to be complementary to ws-mcp, which wraps stdio MCP servers with websockets. This tool provides the client-side functionality, allowing you to connect to those websocket servers from your terminal.

Unlike wscat, mcp-ws doesn't output prompts like > and < which can confuse MCP clients.

Installation

Using pip

pip install mcp-ws

Using UVX

uvx install mcp-ws

Usage

Standard Usage

mcp-ws wss://example.com/socket

With additional headers:

mcp-ws wss://example.com/socket --headers '{"Authorization": "Bearer token"}'
# or using the short form
mcp-ws wss://example.com/socket -H '{"Authorization": "Bearer token"}'

Direct UVX Execution

Run the tool directly with UVX without installing it first:

uvx mcp-ws wss://example.com/socket

With additional headers:

uvx mcp-ws wss://example.com/socket --headers '{"Authorization": "Bearer token"}'

Features

  • Clean bidirectional communication between stdio and websockets
  • No confusing prompts or formatting that could interfere with MCP clients
  • Asynchronous handling of input/output
  • Proper error handling and connection management

Development

# Clone the repository
git clone <repository-url>
cd mcp-ws

# Install dependencies
uv pip install -e .

# Run the application
python -m mcp_ws <websocket-url>

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0