warp icon indicating copy to clipboard operation
warp copied to clipboard

MCP does not invoke WSL commands

Open meanderix opened this issue 1 year ago • 5 comments

Pre-submit Checks

Describe the bug

It does not seem to be possible to start stdio MCP servers from within WSL. Warp does not recognize commands from the linux shell, even if its configured as the default terminal.

I noticed though that there is an (ugly) work-around:

{
  "my-mcp-server": {
    "command": "bash",
    "args": [
      "-c",
      "AUTH_TOKEN=XXX uvx my-mcp-server"
    ],
    "working_directory": null
  }
}

Would it be possible to make MCP servers start directly from WSL without having to invoke bash?

To reproduce

Create an stdio MCP server with a WSL command. The command will fail to start.

Expected behavior

The command should start properly within the default WSL shell.

Screenshots, videos, and logs

No response

Operating system (OS)

Windows

Operating system and version

11

Shell Version

zsh 5.9 / bash 5.2.21

Current Warp version

v0.2025.09.03.08.11.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

meanderix avatar Sep 06 '25 20:09 meanderix

Same problem. The workaround does not work for me: { "bash-context7": { "command": "bash", "args": [ "-c", "npx", "-y", "@upstash/context7-mcp" ], "env": {}, "working_directory": null } }

warp-terminal called from WSL can invoke MCP tools, but UI is somehow buggy

tclatos avatar Sep 23 '25 16:09 tclatos

FWIW: here's what I have done for the github mcp server:

{
  "GitHub": {
    "command": "wsl",
    "args": [
      "docker",
      "run",
      "-i",
      "--rm",
      "--env-file",
      "~/.config/github_mcp.env",
      "ghcr.io/github/github-mcp-server"
    ],
    "env": {},
    "working_directory": null
  }
}

twuyts avatar Nov 20 '25 15:11 twuyts

We notified the team and will post any updates on this thread.

As a workaround, you can also install the MCP in Powershell.

leesa-ui-w avatar Dec 17 '25 19:12 leesa-ui-w

We need a bit more information before we can continue triaging this issue.

If you're still hitting this, could you try reproducing it on the latest version of Warp and share logs along with a screenshot or short video if possible?

If there's no activity after 3 business days, we'll close this out to help keep the tracker tidy.


This is part of an automated backlog review and may be inaccurate. If you believe this assessment is wrong, please let us know.

warp-factories[bot] avatar Apr 19 '26 18:04 warp-factories[bot]

This issue has been automatically closed because it was labeled needs-info and received no response for 3 business days. If you have the requested information, please reply and we will reopen.

github-actions[bot] avatar Apr 23 '26 00:04 github-actions[bot]