StdioEnvironment
Namespace: Vercel.AI.Mcp
public static class StdioEnvironmentEnvironment passed to an MCP stdio child. The caller’s dictionary is not modified.
Inheritance: object
Methods
Section titled “Methods”GetEnvironment(IReadOnlyDictionary<string, string>?, bool?)
Section titled “GetEnvironment(IReadOnlyDictionary<string, string>?, bool?)”public static Dictionary<string, string> GetEnvironment(IReadOnlyDictionary<string, string>? custom, bool? windows = null)Copies <code class=“paramref”>custom</code> and fills inherited process variables that do not start with ().
Parameters
| Name | Type | Description |
|---|---|---|
custom |
IReadOnlyDictionary<string, string> | |
windows |
bool? |
Returns: Dictionary<string, string>
ValidateCommand(string, IReadOnlyList<string>?, bool)
Section titled “ValidateCommand(string, IReadOnlyList<string>?, bool)”public static void ValidateCommand(string command, IReadOnlyList<string>? arguments, bool windows)Rejects command and argument line breaks on Windows.
Parameters
| Name | Type | Description |
|---|---|---|
command |
string | |
arguments |
IReadOnlyList<string> | |
windows |
bool |
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product