Skip to content

Commit 4aee282

Browse files
Make properties in SseClientTransportOptions settable.
1 parent 6c04019 commit 4aee282

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ModelContextProtocol/Client/SseClientTransportOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)