MCP in devcontainer : working directory is not writable

Describe the Bug

The MCP I’m writing does not work with dev containers :

PermissionError: [Errno 13] Permission denied: '/vscode/cursor-server/bin/linux-x64/53b99ce608cba35127ae3a050c1738a959750860/test'

Steps to Reproduce

Create a new workspace with the following .cursor/mcp.json :

{
    "mcpServers":
        "test-workdir": {
            "command": "python",
            "args": [
                "-c",
                "f=open('test.txt','w');f.write('test');f.close()"
            ]
        }
    }
}

From a locally opened workspace, a test file should have been created, and cursor’s MCP logs in the Output tab should show it failing with kdir: No server info found

Now, open the workspace in a dev container : it will show the error above, and the test will not be created

Expected Behavior

My MCP server tries writing a log file in its workdir, which fails because of this issue, crashing the MCP server

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:26:40.367Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 6.12.11-1

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor