Add InheritEnvironmentVariables to StdioClientTransportOptions (#1563)
This commit is contained in:
parent
2ce15f4c8a
commit
3686a4af75
1 changed files with 395 additions and 6 deletions
|
|
@ -39,6 +39,8 @@ var mcpClient = await McpClient.CreateAsync(
|
|||
Command = "npx",
|
||||
Arguments = ["-y", "--verbose", "@modelcontextprotocol/server-everything"],
|
||||
Name = "Everything",
|
||||
InheritEnvironmentVariables = false,
|
||||
EnvironmentVariables = StdioClientTransportOptions.GetDefaultEnvironmentVariables(),
|
||||
}),
|
||||
clientOptions: new()
|
||||
{
|
||||
|
|
@ -82,4 +84,4 @@ while (true)
|
|||
Console.WriteLine();
|
||||
|
||||
messages.AddMessages(updates);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue