Skip to content

Add SSE server support #19

@sibbl

Description

@sibbl

Is your feature request related to a problem? Please describe.

For now, only the stdio protocol for usage as a server is supported.
However, I'd like to deploy my server on a remote machine and let MCP clients to connect via the SSE transport.
See the protocol page about transport concepts: https://modelcontextprotocol.io/docs/concepts/transports#server-sent-events-sse

Describe the solution you'd like
I'd like to tell the MCP server to simply start an HTTP server on a specific port.

Optionally, further configuration should be possible, including:

  • definition of the SSE endpoint URL (/sse by default)
  • definition of the message endpoint URL (/messages by default)
  • required headers (i.e. for authorization)
  • CORS for using it from inside a browser context

Additionally, support for ASP.NET servers would be helpful. A specific ASP.NET package could provide extension methods to register services and a middleware for a WebApplicationBuilder.

Describe alternatives you've considered

Other frameworks for Python and Typescript support this out of the box already. Some samples:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions