Skip to content

How to describe a package that supports multiple transports? #492

@vanyauhalin

Description

@vanyauhalin

Right now, the author of an MCP server has to specify exactly one transport that the MCP server supports. But what if the MCP server supports multiple transports?

For example, I developed an MCP server and published it to the npm registry. Users can now use the npx command to run the MCP server. Through environment variables, users can choose the transport type: streamable-http or stdio.

MCP_TRANSPORT=stdio npx my-mcp-server
MCP_TRANSPORT=stremable-http npx my-mcp-server

Following: #143

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