basalt / mcp/src / buildStdioEnv
Function: buildStdioEnv()
> buildStdioEnv(options, hostEnv?): Record<string, string>
Defined in: mcp/src/client.ts:127
Build the environment for a spawned stdio MCP server: the allowlisted host variables (or all of them with inheritEnv: true) plus the explicit env.
Parameters
options
Pick<StdioTransportOptions, "env" | "inheritEnv">
hostEnv?
ProcessEnv = process.env
Returns
Record<string, string>