You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_configs/claude-desktop.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ Incorporate the following into your `claude_desktop_config.json`, based on your
35
35
36
36
## Running via Docker
37
37
38
-
**Note:** In the example below, all allowed directories are mounted to `/projects`, and `/projects` is passed as the allowed directory argument to the server CLI. You can modify this as needed to fit your requirements.
38
+
**Note:** In the example below, all allowed directories are mounted to `/projects`, and `/projects` is passed as the allowed directory argument to the server CLI. You can modify this as needed to fit your requirements.
39
+
40
+
`ALLOW_WRITE` and `ENABLE_ROOTS` environments could be used to enable write and MCP Roots support.
39
41
40
42
```json
41
43
{
@@ -46,6 +48,10 @@ Incorporate the following into your `claude_desktop_config.json`, based on your
Copy file name to clipboardExpand all lines: src/cli.rs
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,29 @@ pub struct CommandArguments {
9
9
#[arg(
10
10
short = 'w',
11
11
long,
12
-
help = "Enables read/write mode for the app, allowing both reading and writing. Defaults to disabled."
12
+
action = clap::ArgAction::SetTrue,
13
+
value_parser = clap::value_parser!(bool),
14
+
help = "Enables write mode for the app, allowing both reading and writing. Defaults to disabled.",
15
+
env = "ALLOW_WRITE"
13
16
)]
14
17
puballow_write:bool,
15
-
#[arg(
16
-
help = "List of directories that are permitted for the operation. It is required when 'enable-roots' is not provided OR client does not support Roots.",
17
-
long_help = concat!("Provide a space-separated list of directories that are permitted for the operation.\nThis list allows multiple directories to be provided.\n\nExample: ", env!("CARGO_PKG_NAME")," /path/to/dir1 /path/to/dir2 /path/to/dir3"),
18
-
required = false
19
-
)]
20
-
puballowed_directories:Vec<String>,
21
18
22
19
#[arg(
23
20
short = 't',
24
21
long,
25
-
help = "Enables dynamic directory access control via Roots from the MCP client side. Defaults to disabled.\nWhen enabled, MCP clients that support Roots can dynamically update the allowed directories.\nAny directories provided by the client will completely replace the initially configured allowed directories on the server."
22
+
help = "Enables dynamic directory access control via Roots from the MCP client side. Defaults to disabled.\nWhen enabled, MCP clients that support Roots can dynamically update the allowed directories.\nAny directories provided by the client will completely replace the initially configured allowed directories on the server.",
23
+
action = clap::ArgAction::SetTrue,
24
+
value_parser = clap::value_parser!(bool),
25
+
env = "ENABLE_ROOTS"
26
26
)]
27
27
pubenable_roots:bool,
28
+
29
+
#[arg(
30
+
help = "List of directories that are permitted for the operation. It is required when 'enable-roots' is not provided OR client does not support Roots.",
31
+
long_help = concat!("Provide a space-separated list of directories that are permitted for the operation.\nThis list allows multiple directories to be provided.\n\nExample: ", env!("CARGO_PKG_NAME")," /path/to/dir1 /path/to/dir2 /path/to/dir3"),
0 commit comments