#Windows with WSL2 - MCP
1 messages · Page 1 of 1 (latest)
Hi @tawny fable. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the available knowledge sources, there is no explicit documentation or setting described that allows you to configure Warp on Windows to run MCP servers specifically inside your WSL2 environment, rather than on the native Windows side. The current MCP server configuration in Warp allows you to specify commands, arguments, environment variables, and working directories, but it does not mention targeting the WSL2 environment for MCP server execution when running Warp for Windows with WSL2 as the default shell. All references to MCP server setup assume the context of the environment where Warp itself is running, which, in your case, is Windows—even if your shell is set to WSL2 Ubuntu.
This limitation is consistent with other known issues where certain features (like codebase indexing and launch configurations) do not fully respect the WSL2 environment when using Warp for Windows, and instead operate from the Windows context, not WSL2. Workarounds for other features sometimes involve running Warp directly inside WSL2, but this is not ideal and may not be fully supported for all features, including MCP serversModel Context Protocol (MCP) Codebase context for WSL.
If you need MCP servers to run inside WSL2, the knowledge sources do not provide a direct solution or configuration for this scenario. You may want to follow related GitHub issues or provide feedback to the Warp team, as WSL2 integration is a known area of ongoing development and user feedback is being tracked.
If you have a specific use case or workflow, you could try running Warp directly inside WSL2 (by installing the Linux version of Warp in your WSL2 environment), but this comes with its own limitations and is not the same as running the Windows version with WSL2 as the shell.
In summary:
There is currently no documented way to configure Warp for Windows to run MCP servers inside WSL2; MCP servers are run from the context of the host OS where Warp is installed. If this is a critical need, consider raising it as a feature request or following related issues for updatesModel Context Protocol (MCP) Codebase context for WSL.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@tawny fable Kapa.ai is still learning and improving, please let me know how I did by reacting below.