Skip to content

fix: pass windows appdata/localappdata into mcp child env - #599

Open
Sudip Kandel (sudipawtg) wants to merge 2 commits into
langchain-ai:mainfrom
sudipawtg:sudipawtg/fix/mcp-child-env-appdata
Open

fix: pass windows appdata/localappdata into mcp child env#599
Sudip Kandel (sudipawtg) wants to merge 2 commits into
langchain-ai:mainfrom
sudipawtg:sudipawtg/fix/mcp-child-env-appdata

Conversation

@sudipawtg

Copy link
Copy Markdown

Fixes #598

Stdio MCP children already receive USERPROFILE / HOMEPATH / HOMEDRIVE, but not APPDATA or LOCALAPPDATA. Many Windows MCP servers need those to resolve config and cache directories.

This adds both keys to CHILD_ENV_ALLOWLIST and extends test/mcp-client.test.ts. Credential filtering is unchanged.

Verified with pnpm exec vitest run test/mcp-client.test.ts (6 passed).

APPDATA and LOCALAPPDATA are commonly required by Windows MCP servers
for config/cache paths. Forward them in the stdio child allowlist.
@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 042134a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openwiki Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@colifran Colin Francis (colifran) changed the title fix: pass Windows APPDATA/LOCALAPPDATA into MCP child env fix: pass windows appdata/localappdata into mcp child env Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: pass Windows APPDATA/LOCALAPPDATA into MCP stdio child env

2 participants