Skip to content

Feature Request: Support WebSocket Transport #47

@jouMichelle

Description

@jouMichelle

Overview

Request to add WebSocket transport support to langchain-mcp-adapters.

Current State

Currently, langchain-mcp-adapters supports two transport types:

  • stdio transport
  • SSE (Server-Sent Events) transport

Motivation

  1. The official MCP Python SDK now includes WebSocket transport support
  2. WebSocket provides several advantages over SSE:
    • Full-duplex communication
    • Better real-time capabilities
    • Native support for bi-directional data flow
    • Potentially lower latency for certain use cases

Request

Would it be possible to add WebSocket transport support to langchain-mcp-adapters? This would allow users to:

  1. Connect to MCP servers that use WebSocket transport
  2. Take advantage of WebSocket's bi-directional communication capabilities
  3. Have more flexibility in choosing the transport mechanism based on their needs

Questions

  1. Is this feature something that would be valuable to the project?
  2. Are there any specific concerns or considerations about adding WebSocket support?
  3. Would you be open to a PR implementing this feature if the community finds it valuable?

I'm happy to provide more technical details or help with implementation if this is something the project would be interested in pursuing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions