From 0cda2e8fa7b979a397d7450fefd85685f2f32a57 Mon Sep 17 00:00:00 2001 From: semihbkgr Date: Fri, 6 Jun 2025 03:37:17 +0300 Subject: [PATCH] Improve Docker Configuration section by adding volume mount explanation and example --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ecd3f2..a7cfc7e 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,26 @@ To integrate the Docker image with apps that support MCP: } ``` +If you need changes made inside the container to reflect on the host filesystem, you can mount a volume. This allows the container to access and modify files on the host system. Here's an example: + +```json +{ + "mcpServers": { + "filesystem": { + "command": "docker", + "args": [ + "run", + "-i", + "--rm", + "--volume=/allowed/directory/in/host:/allowed/directory/in/container", + "ghcr.io/mark3labs/mcp-filesystem-server:latest", + "/allowed/directory/in/container" + ] + } + } +} +``` + ## License -See the [LICENSE](LICENSE) file for details. \ No newline at end of file +See the [LICENSE](LICENSE) file for details.