diff --git a/internal/launcher/launcher.go b/internal/launcher/launcher.go index 8ee9a7da..d1bd0cff 100644 --- a/internal/launcher/launcher.go +++ b/internal/launcher/launcher.go @@ -143,6 +143,7 @@ func GetOrLaunch(l *Launcher, serverID string) (*mcp.Connection, error) { // Create an HTTP connection conn, err := mcp.NewHTTPConnection(l.ctx, serverID, serverCfg.URL, serverCfg.Headers, oidcProvider, oidcAudience, l.config.Gateway.HTTPKeepaliveInterval()) if err != nil { + log.Printf("FAILED to create HTTP connection for server %q: %v", serverID, err) logger.LogErrorWithServer(serverID, "backend", "Failed to create HTTP connection: %s, error=%v", serverID, err) l.recordError(serverID, err.Error()) return nil, fmt.Errorf("failed to create HTTP connection: %w", err)