Skip to content

MCP tool error in WSL #7173

Closed as not planned
Closed as not planned

Description

@meanderix

Before submitting your bug report

Relevant environment info

  • OS: Windows 11, WSL
  • Continue version: 1.1.77
  • IDE version: 1.103.1
  • Model: gpt-5-mini

Description

I've configured the following MCP server:

name: mcp-server-git
version: 0.0.1
schema: v1
mcpServers:
  - name: git
    schema: 0.2.0
    command: "uvx"
    args:
      - "mcp-server-git"
    type: stdio

I've validated that the mcp server works fine from the terminal by using both mcptools and mcpinspector.

However, when the model wants to invoke the tool I'm seeing the following error:

user
Can we try to use the git_log tool to get the latest log message?
assistant
Tool call: {
  "id": "call_6zb22RJiqMCYXigLCUNoempl",
  "type": "function",
  "function": {
    "name": "git_log",
    "arguments": "{\"repo_path\":\".\",\"max_count\":1}"
  }
}
 
tool
Tool Call ID: call_6zb22RJiqMCYXigLCUNoempl
git_log failed with the message: [{"type":"text","text":"/mnt/c/Users/[user]/AppData/Local/Programs/Microsoft VS Code"}]

Please try something else or request further instructions.

How can I debug this further? (I doubt that the error message comes from the MCP server itself.)

To reproduce

No response

Log output

Activity

  1. added
    area:mcp
    ide:vscode
    kind:bug
    os:windows
    on Aug 15, 2025
  2. meanderix commented on Aug 18, 2025

    @meanderix
    ContributorAuthor

    It seems I was able to get this to work with a few adjustments:

    name: mcp-server-git
    version: 0.0.1
    schema: v1
    mcpServers:
      - name: git
        schema: 0.2.0
        command: "uvx"
        args:
          - "mcp-server-git"
        type: stdio
        cwd: "/path/to/workspace"
        env:
          HOME: "/home/<username>"
          USER: "<username>"

    Questions:

    • Why is not ${workspaceFolder} used by default as cwd?
    • Why do we need to manually set HOME and USER environment variables?

    I've configured "extensionKind": ["workspace"] since before which allowed Continue to save its config to ~/.continue.

  3. meanderix commented on Aug 19, 2025

    @meanderix
    ContributorAuthor

    As far as I can tell we have quite a bit of logic for adjusting cwd when we're using tool calls with the built-in runTerminalCommand. Why isn't the same kind of logic applied when calling stdio MCP servers?

  4. github-actions commented on Nov 18, 2025

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  5. github-actions commented on Nov 29, 2025

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:mcpide:vscodekind:bugos:windowsstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions