@@ -3,15 +3,15 @@ namespace ModelContextProtocol.Client;
33/// <summary>
44/// Provides options for configuring <see cref="SseClientTransport"/> instances.
55/// </summary>
6- public record SseClientTransportOptions
6+ public class SseClientTransportOptions
77{
88 /// <summary>
99 /// Gets or sets the base address of the server for SSE connections.
1010 /// </summary>
1111 public required Uri Endpoint
1212 {
1313 get ;
14- init
14+ set
1515 {
1616 if ( value is null )
1717 {
@@ -43,12 +43,12 @@ public required Uri Endpoint
4343 /// <see href="https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse">HTTP with SSE transport specification</see>.
4444 /// </para>
4545 /// </remarks>
46- public HttpTransportMode TransportMode { get ; init ; } = HttpTransportMode . AutoDetect ;
46+ public HttpTransportMode TransportMode { get ; set ; } = HttpTransportMode . AutoDetect ;
4747
4848 /// <summary>
4949 /// Gets a transport identifier used for logging purposes.
5050 /// </summary>
51- public string ? Name { get ; init ; }
51+ public string ? Name { get ; set ; }
5252
5353 /// <summary>
5454 /// Gets or sets a timeout used to establish the initial connection to the SSE server. Defaults to 30 seconds.
@@ -61,13 +61,13 @@ public required Uri Endpoint
6161 /// </list>
6262 /// If the timeout expires before the connection is established, a <see cref="TimeoutException"/> will be thrown.
6363 /// </remarks>
64- public TimeSpan ConnectionTimeout { get ; init ; } = TimeSpan . FromSeconds ( 30 ) ;
64+ public TimeSpan ConnectionTimeout { get ; set ; } = TimeSpan . FromSeconds ( 30 ) ;
6565
6666 /// <summary>
6767 /// Gets custom HTTP headers to include in requests to the SSE server.
6868 /// </summary>
6969 /// <remarks>
7070 /// Use this property to specify custom HTTP headers that should be sent with each request to the server.
7171 /// </remarks>
72- public Dictionary < string , string > ? AdditionalHeaders { get ; init ; }
72+ public Dictionary < string , string > ? AdditionalHeaders { get ; set ; }
7373}
0 commit comments