-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Describe the bug
I noticed while trying to configure a Streamable HTTP MCP server using HyperServerOptions that custom_streamable_http_endpoint doesn't seem to work. While digging through the code I noticed HyperServerOptions impl's pub fn streamable_http_endpoint instead returns self.custom_messages_endpoint
I'll open a PR with a fix shortly.
What are you using rust-mcp-sdk for?
Select all that apply:
- Developing a MCP Server
- Developing a MCP Client
Technical details:
- rust-mcp-sdk Version : 0.7.3
- Cargo features enabled for
rust-mcp-sdk:["server", "macros", "streamable-http", "sse", "hyper-server"] - Environment/OS (Mac, Linux, Windows, etc) : Mac, Linux
To Reproduce
Steps to reproduce the behavior:
- Starting with the streamable http hello world example, add a
custom_streamable_http_endpointvalue to the HyperServerOptions in main.rs - Start the server, observe in the server logs that the server still says it's listening for Streamable HTTP connections on
<base_url>/mcp - Confirm with a Streamable HTTP client of your choosing that connections to your custom endpoint are rejected
Expected behavior
The server properly listens for streamable HTTP connections on the provided endpoint
Metadata
Metadata
Assignees
Labels
No labels