File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,9 @@ func WithSSEEndpoint(endpoint string) SSEOption {
227227 }
228228}
229229
230- // WithHTTPServer sets the HTTP server instance
230+ // WithHTTPServer sets the HTTP server instance.
231+ // NOTE: When providing a custom HTTP server, you must handle routing yourself
232+ // If routing is not set up, the server will start but won't handle any MCP requests.
231233func WithHTTPServer (srv * http.Server ) SSEOption {
232234 return func (s * SSEServer ) {
233235 s .srv = srv
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ func WithHTTPContextFunc(fn HTTPContextFunc) StreamableHTTPOption {
7373 }
7474}
7575
76- // WithStreamableHTTPServer sets the HTTP server instance for StreamableHTTPServer
76+ // WithStreamableHTTPServer sets the HTTP server instance for StreamableHTTPServer.
77+ // NOTE: When providing a custom HTTP server, you must handle routing yourself
78+ // If routing is not set up, the server will start but won't handle any MCP requests.
7779func WithStreamableHTTPServer (srv * http.Server ) StreamableHTTPOption {
7880 return func (s * StreamableHTTPServer ) {
7981 s .httpServer = srv
You can’t perform that action at this time.
0 commit comments