diff --git a/src/ModelContextProtocol/Client/StdioClientTransportOptions.cs b/src/ModelContextProtocol/Client/StdioClientTransportOptions.cs index 11a8285..afacd35 100644 --- a/src/ModelContextProtocol/Client/StdioClientTransportOptions.cs +++ b/src/ModelContextProtocol/Client/StdioClientTransportOptions.cs @@ -41,11 +41,19 @@ public record StdioClientTransportOptions /// Gets or sets environment variables to set for the server process. /// /// + /// /// 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. + /// + /// + /// By default, when starting the server process, the server process will inherit the current environment's variables, + /// as discovered via . After those variables are found, the entries + /// in this 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. + /// /// - public Dictionary? EnvironmentVariables { get; set; } + public Dictionary? EnvironmentVariables { get; set; } /// /// Gets or sets the timeout to wait for the server to shut down gracefully.