Skip to content

Commit 47e9419

Browse files
Fix Custom Endpoint example (#577)
1 parent 71a5805 commit 47e9419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/docs/pages/transports/http.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func main() {
367367
mux := http.NewServeMux()
368368

369369
// Add MCP endpoints
370-
server.AddMCPRoutes(mux, s, "/mcp")
370+
mux.Handle("/mcp", server.NewStreamableHTTPServer(s))
371371

372372
// Add custom endpoints
373373
mux.HandleFunc("/api/status", handleStatus)
@@ -693,4 +693,4 @@ The headers are automatically populated by the transport layer and are available
693693

694694
- **[In-Process Transport](/transports/inprocess)** - Learn about embedded scenarios
695695
- **[Client Development](/clients)** - Build MCP clients for HTTP transport
696-
- **[Server Basics](/servers/basics)** - Review fundamental server concepts
696+
- **[Server Basics](/servers/basics)** - Review fundamental server concepts

0 commit comments

Comments
 (0)