Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/ModelContextProtocol/Client/StdioClientTransportOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,19 @@ public required string Command
/// Gets or sets environment variables to set for the server process.
/// </summary>
/// <remarks>
/// <para>
/// This property allows you to specify environment variables that will be set in the server process's
/// environment. This is useful for passing configuration, authentication information, or runtime flags
/// to the server without modifying its code.
/// </para>
/// <para>
/// By default, when starting the server process, the server process will inherit the current environment's variables,
/// as discovered via <see cref="Environment.GetEnvironmentVariables()"/>. After those variables are found, the entries
/// in this <see cref="EnvironmentVariables"/> dictionary are used to augment and overwrite the entries read from the environment.
/// That includes removing the variables for any of this collection's entries with a null value.
/// </para>
/// </remarks>
public Dictionary<string, string>? EnvironmentVariables { get; set; }
public Dictionary<string, string?>? EnvironmentVariables { get; set; }

/// <summary>
/// Gets or sets the timeout to wait for the server to shut down gracefully.
Expand Down