MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / formatStdioEnv

Function formatStdioEnv

packages/plugins/mcp/src/react/stdio-fields.ts:47–51  ·  view source on GitHub ↗
(env: Readonly<Record<string, string>> | undefined)

Source from the content-addressed store, hash-verified

45
46/** Render the stored env map back into the KEY=value block. */
47export function formatStdioEnv(env: Readonly<Record<string, string>> | undefined): string {
48 return Object.entries(env ?? {})
49 .map(([key, value]) => `${key}=${value}`)
50 .join("\n");
51}

Callers 2

StdioEditFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected