Skip to content

MCP configuration Environment Variable expansion does not support ${workspaceFolder}Β #4017

@axmo

Description

@axmo

App Version

Roo Code 3.18.3
VSCode 1.100.2
macOS 15.4.1

API Provider

Not Applicable / Other

Model Used

N/A

πŸ” Steps to Reproduce

  1. install docker desktop
  2. docker pull mcp/filesystem
  3. create the following MCP configuration:
"mcpServers": {
  "filesystem": {
    "command": "docker",
    "args": [
      "run",
      "-i",
      "--rm",
      "--mount", "${workspaceFolder}",
      "mcp/filesystem",
      "/projects"
    ]
  }
}

Filesystem MCP is used here as a simple example, but any dockerized MCP server that needs access to the files in the workspace will have this problem.

πŸ’₯ Outcome Summary

Expected Result:

  • dockerized filesystem MCP server run with the current workspace folder mounted to /projects within the container

Actual result: Filesystem MCP server fails to run.

πŸ“„ Relevant Logs or Errors (Optional)

Server "filesystem" info: invalid argument "type=bind,src=${workspaceFolder}" for "--mount" flag: target is required ...

note that ${workspaceFolder} has been included verbatim in the argument, instead of the actual path to the workspace.

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions