From dd8de681623d976d9f955bb75758c771ca04b9e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Feb 2026 03:15:16 +0000 Subject: [PATCH 1/5] Initial plan From 1ab0b60888e628494273b4075bdebfe516f202cf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Feb 2026 03:18:16 +0000 Subject: [PATCH 2/5] Add filesystem MCP server configuration with ALLOWED_PATHS Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --- config.example.toml | 17 ++++++++++++++++- config.json | 12 ++++++++++++ config.toml | 9 +++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/config.example.toml b/config.example.toml index b0de6c7c..ed28350c 100644 --- a/config.example.toml +++ b/config.example.toml @@ -76,7 +76,22 @@ args = [ "mcp/memory" ] -# Example 3: Custom MCP Server with Volume Mounts +# Example 3: Filesystem MCP Server (stdio via Docker with volume mount) +[servers.filesystem] +command = "docker" +args = [ + "run", + "--rm", + "-i", + "-v", "/tmp:/workspace:rw", # Mount /tmp to /workspace (read-write) + "-e", "ALLOWED_PATHS=/workspace", # Required: whitelist allowed paths + "-e", "NO_COLOR=1", + "-e", "TERM=dumb", + "-e", "PYTHONUNBUFFERED=1", + "mcp/filesystem" +] + +# Example 4: Custom MCP Server with Volume Mounts [servers.custom] command = "docker" args = [ diff --git a/config.json b/config.json index d76a3d71..4f2efa4d 100644 --- a/config.json +++ b/config.json @@ -15,6 +15,18 @@ "type": "local", "container": "mcp/memory" }, + "filesystem": { + "type": "stdio", + "container": "mcp/filesystem", + "mounts": [ + "/tmp:/workspace:rw" + ], + "env": { + "ALLOWED_PATHS": "/workspace", + "NO_COLOR": "1", + "TERM": "dumb" + } + }, "serena": { "type": "stdio", "container": "ghcr.io/github/serena-mcp-server:latest", diff --git a/config.toml b/config.toml index 6add1bd1..4953e178 100644 --- a/config.toml +++ b/config.toml @@ -19,6 +19,15 @@ args = ["run", "--rm", "-i", command = "docker" args = ["run", "--rm", "-i", "-e", "NO_COLOR=1", "-e", "TERM=dumb", "-e", "PYTHONUNBUFFERED=1", "mcp/memory"] +[servers.filesystem] +command = "docker" +args = ["run", "--rm", "-i", + "-v", "/tmp:/workspace:rw", + "-e", "ALLOWED_PATHS=/workspace", + "-e", "NO_COLOR=1", "-e", "TERM=dumb", + "-e", "PYTHONUNBUFFERED=1", + "mcp/filesystem"] + [servers.serena] command = "docker" args = ["run", "--rm", "-i", From 5c97d1b5f2141721b578005ba6202fc010195907 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Feb 2026 03:20:01 +0000 Subject: [PATCH 3/5] Add PYTHONUNBUFFERED to filesystem config in config.json for consistency Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --- config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 4f2efa4d..a5b402aa 100644 --- a/config.json +++ b/config.json @@ -24,7 +24,8 @@ "env": { "ALLOWED_PATHS": "/workspace", "NO_COLOR": "1", - "TERM": "dumb" + "TERM": "dumb", + "PYTHONUNBUFFERED": "1" } }, "serena": { From f76c057cb8484548a4990ff5adcf48011142e981 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Feb 2026 03:26:23 +0000 Subject: [PATCH 4/5] Update filesystem ALLOWED_PATHS in stress test to include /tmp Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --- .github/workflows/nightly-mcp-stress-test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-mcp-stress-test.md b/.github/workflows/nightly-mcp-stress-test.md index 73fdbc26..64d296b1 100644 --- a/.github/workflows/nightly-mcp-stress-test.md +++ b/.github/workflows/nightly-mcp-stress-test.md @@ -34,7 +34,7 @@ mcp-servers: type: stdio container: "mcp/filesystem" env: - ALLOWED_PATHS: "/workspace" + ALLOWED_PATHS: "/tmp,/workspace" mounts: - "/tmp/mcp-test-fs:/workspace:rw" memory: From 650b42d8655d4fa96d8afaff5b641187a58d30dc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Feb 2026 03:27:30 +0000 Subject: [PATCH 5/5] Revert config file changes - only update stress test workflow Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --- config.example.toml | 17 +---------------- config.json | 13 ------------- config.toml | 9 --------- 3 files changed, 1 insertion(+), 38 deletions(-) diff --git a/config.example.toml b/config.example.toml index ed28350c..b0de6c7c 100644 --- a/config.example.toml +++ b/config.example.toml @@ -76,22 +76,7 @@ args = [ "mcp/memory" ] -# Example 3: Filesystem MCP Server (stdio via Docker with volume mount) -[servers.filesystem] -command = "docker" -args = [ - "run", - "--rm", - "-i", - "-v", "/tmp:/workspace:rw", # Mount /tmp to /workspace (read-write) - "-e", "ALLOWED_PATHS=/workspace", # Required: whitelist allowed paths - "-e", "NO_COLOR=1", - "-e", "TERM=dumb", - "-e", "PYTHONUNBUFFERED=1", - "mcp/filesystem" -] - -# Example 4: Custom MCP Server with Volume Mounts +# Example 3: Custom MCP Server with Volume Mounts [servers.custom] command = "docker" args = [ diff --git a/config.json b/config.json index a5b402aa..d76a3d71 100644 --- a/config.json +++ b/config.json @@ -15,19 +15,6 @@ "type": "local", "container": "mcp/memory" }, - "filesystem": { - "type": "stdio", - "container": "mcp/filesystem", - "mounts": [ - "/tmp:/workspace:rw" - ], - "env": { - "ALLOWED_PATHS": "/workspace", - "NO_COLOR": "1", - "TERM": "dumb", - "PYTHONUNBUFFERED": "1" - } - }, "serena": { "type": "stdio", "container": "ghcr.io/github/serena-mcp-server:latest", diff --git a/config.toml b/config.toml index 4953e178..6add1bd1 100644 --- a/config.toml +++ b/config.toml @@ -19,15 +19,6 @@ args = ["run", "--rm", "-i", command = "docker" args = ["run", "--rm", "-i", "-e", "NO_COLOR=1", "-e", "TERM=dumb", "-e", "PYTHONUNBUFFERED=1", "mcp/memory"] -[servers.filesystem] -command = "docker" -args = ["run", "--rm", "-i", - "-v", "/tmp:/workspace:rw", - "-e", "ALLOWED_PATHS=/workspace", - "-e", "NO_COLOR=1", "-e", "TERM=dumb", - "-e", "PYTHONUNBUFFERED=1", - "mcp/filesystem"] - [servers.serena] command = "docker" args = ["run", "--rm", "-i",