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: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,10 @@ Run the server with access to specific directories:
42
42
43
43
```bash
44
44
# Using uv (recommended)
45
-
uv run -m mcp_filesystem run /path/to/dir1 /path/to/dir2
45
+
uv run run_server.py /path/to/dir1 /path/to/dir2
46
46
47
47
# Or using standard Python
48
-
python -m mcp_filesystem run /path/to/dir1 /path/to/dir2
48
+
python run_server.py /path/to/dir1 /path/to/dir2
49
49
```
50
50
51
51
#### Options
@@ -60,13 +60,13 @@ For interactive testing and debugging with the MCP Inspector:
60
60
61
61
```bash
62
62
# Basic usage
63
-
npx @modelcontextprotocol/inspector uv run -m mcp_filesystem run /path/to/directory
63
+
npx @modelcontextprotocol/inspector uv run run_server.py /path/to/directory
64
64
65
65
# With SSE transport
66
-
npx @modelcontextprotocol/inspector uv run -m mcp_filesystem run /path/to/directory --transport sse --port 8080
66
+
npx @modelcontextprotocol/inspector uv run run_server.py /path/to/directory --transport sse --port 8080
67
67
68
68
# With debug output
69
-
npx @modelcontextprotocol/inspector uv run -m mcp_filesystem run /path/to/directory --debug
69
+
npx @modelcontextprotocol/inspector uv run run_server.py /path/to/directory --debug
70
70
```
71
71
72
72
This server has been built with the FastMCP SDK for better alignment with current MCP best practices. It uses an efficient component caching system and direct decorator pattern.
@@ -85,10 +85,10 @@ Edit your Claude Desktop config file to integrate MCP-Filesystem:
85
85
"mcp-filesystem": {
86
86
"command": "uv",
87
87
"args": [
88
+
"--directory",
89
+
"/path/to/mcp-filesystem/repo",
88
90
"run",
89
-
"-m",
90
-
"mcp_filesystem",
91
-
"run"
91
+
"run_server.py"
92
92
]
93
93
}
94
94
}
@@ -103,10 +103,10 @@ To allow access to specific directories, add them as additional arguments:
103
103
"mcp-filesystem": {
104
104
"command": "uv",
105
105
"args": [
106
+
"--directory",
107
+
"/path/to/mcp-filesystem/repo",
106
108
"run",
107
-
"-m",
108
-
"mcp_filesystem",
109
-
"run",
109
+
"run_server.py",
110
110
"/Users/yourusername/Projects",
111
111
"/Users/yourusername/Documents"
112
112
]
@@ -115,7 +115,7 @@ To allow access to specific directories, add them as additional arguments:
115
115
}
116
116
```
117
117
118
-
Note: The `run` command at the end is required as it specifies the subcommand to execute.
118
+
> Note: The `--directory` flag is important as it tells uv where to find the repository containing run_server.py. Replace `/path/to/mcp-filesystem/repo` with the actual path to where you cloned the repository on your system.
0 commit comments