Skip to content

StdioEnvironment

Namespace: Vercel.AI.Mcp

public static class StdioEnvironment

Environment passed to an MCP stdio child. The caller’s dictionary is not modified.

Inheritance: object

View source

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>

View source

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

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product