Skip to content

Commit e0737ed

Browse files
authored
Update README.md
1 parent ad31896 commit e0737ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,16 +579,16 @@ The guard mode allows you to restrict access to specific tools, prompts, and res
579579
580580
```bash
581581
# Allow only file reading operations, deny file modifications
582-
mcp guard --allow tools:read_* --deny tools:write_*,create_*,delete_* npx -y @modelcontextprotocol/server-filesystem ~
582+
mcp guard --allow 'tools:read_* --deny tools:write_*,create_*,delete_*' npx -y @modelcontextprotocol/server-filesystem ~
583583

584584
# Permit only a single specific tool
585-
mcp guard --allow tools:search_files npx -y @modelcontextprotocol/server-filesystem ~
585+
mcp guard --allow 'tools:search_files' npx -y @modelcontextprotocol/server-filesystem ~
586586

587587
# Restrict by both tool type and prompt type
588-
mcp guard --allow tools:read_*,prompts:system_* --deny tools:execute_* npx -y @modelcontextprotocol/server-filesystem ~
588+
mcp guard --allow 'tools:read_*,prompts:system_*' --deny tools:execute_* npx -y @modelcontextprotocol/server-filesystem ~
589589

590590
# Using with aliases
591-
mcp guard --allow tools:read_* fs # Where 'fs' is an alias for a filesystem server
591+
mcp guard --allow 'tools:read_*' fs # Where 'fs' is an alias for a filesystem server
592592
```
593593

594594
#### How It Works

0 commit comments

Comments
 (0)