mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-20 12:55:21 +02:00
Update src/filesystem/README.md
Fix broken link to Roots
This commit is contained in:
@@ -9,11 +9,11 @@ Node.js server implementing Model Context Protocol (MCP) for filesystem operatio
|
|||||||
- Move files/directories
|
- Move files/directories
|
||||||
- Search files
|
- Search files
|
||||||
- Get file metadata
|
- Get file metadata
|
||||||
- Dynamic directory access control via [Roots](https://modelcontextprotocol.io/docs/concepts/roots)
|
- Dynamic directory access control via [Roots](https://modelcontextprotocol.io/docs/learn/client-concepts#roots)
|
||||||
|
|
||||||
## Directory Access Control
|
## Directory Access Control
|
||||||
|
|
||||||
The server uses a flexible directory access control system. Directories can be specified via command-line arguments or dynamically via [Roots](https://modelcontextprotocol.io/docs/concepts/roots).
|
The server uses a flexible directory access control system. Directories can be specified via command-line arguments or dynamically via [Roots](https://modelcontextprotocol.io/docs/learn/client-concepts#roots).
|
||||||
|
|
||||||
### Method 1: Command-line Arguments
|
### Method 1: Command-line Arguments
|
||||||
Specify Allowed directories when starting the server:
|
Specify Allowed directories when starting the server:
|
||||||
@@ -22,7 +22,7 @@ mcp-server-filesystem /path/to/dir1 /path/to/dir2
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Method 2: MCP Roots (Recommended)
|
### Method 2: MCP Roots (Recommended)
|
||||||
MCP clients that support [Roots](https://modelcontextprotocol.io/docs/concepts/roots) can dynamically update the Allowed directories.
|
MCP clients that support [Roots](https://modelcontextprotocol.io/docs/learn/client-concepts#roots) can dynamically update the Allowed directories.
|
||||||
|
|
||||||
Roots notified by Client to Server, completely replace any server-side Allowed directories when provided.
|
Roots notified by Client to Server, completely replace any server-side Allowed directories when provided.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user