Fix lost session

Currently the session is only persist in memory so each time client
connect they may lost their session because not going on the right
instance.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-11-21 12:28:41 +01:00
parent 7f8467f5fe
commit 7cc7cc48f4

View File

@@ -3,7 +3,6 @@ package mcp_v1
import (
"context"
"net/http"
"time"
"github.com/go-chi/chi/v5"
"github.com/modelcontextprotocol/go-sdk/mcp"
@@ -50,10 +49,10 @@ func NewMux(logger *log.Logger, proboSvc *probo.Service, authSvc *auth.Service,
handler := mcp.NewStreamableHTTPHandler(
getServer,
&mcp.StreamableHTTPOptions{
Stateless: false,
SessionTimeout: 30 * time.Minute,
EventStore: eventStore,
Logger: nil, // TODO put logger here
Stateless: true,
// SessionTimeout: 30 * time.Minute,
EventStore: eventStore,
Logger: nil, // TODO put logger here
},
)