From 8ca8323cd050693251aa94a8bb6a4aebe7ce046b Mon Sep 17 00:00:00 2001 From: Suraj Bobade Date: Thu, 4 Sep 2025 11:31:09 +0530 Subject: [PATCH] Fix Custom Endpoint example --- www/docs/pages/transports/http.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/docs/pages/transports/http.mdx b/www/docs/pages/transports/http.mdx index 9d7e308bc..1267915a9 100644 --- a/www/docs/pages/transports/http.mdx +++ b/www/docs/pages/transports/http.mdx @@ -367,7 +367,7 @@ func main() { mux := http.NewServeMux() // Add MCP endpoints - server.AddMCPRoutes(mux, s, "/mcp") + mux.Handle("/mcp", server.NewStreamableHTTPServer(s)) // Add custom endpoints mux.HandleFunc("/api/status", handleStatus) @@ -693,4 +693,4 @@ The headers are automatically populated by the transport layer and are available - **[In-Process Transport](/transports/inprocess)** - Learn about embedded scenarios - **[Client Development](/clients)** - Build MCP clients for HTTP transport -- **[Server Basics](/servers/basics)** - Review fundamental server concepts \ No newline at end of file +- **[Server Basics](/servers/basics)** - Review fundamental server concepts