version: 1
defaults:
action: prompt
timeout: 60000
servers:
postgres:
command: npx
args: ["-y", "@modelcontextprotocol/server-postgres"]
env:
DATABASE_URL: postgres://localhost/dev
policies:
- tools: ["query", "select"]
action: allow
- tools: ["insert", "update"]
action: prompt
- tools: ["drop_*", "delete_*"]
action: deny
filesystem:
command: npx
args: ["-y", "@anthropic/mcp-server-filesystem", "./"]
policies:
- tools: ["read_file", "list_directory"]
action: allow
- tools: ["write_file"]
action: prompt
paths:
allow:
- ./src/**
- ./test/**
deny:
- /.*
- ~/.ssh/**
- **/.env*
- tools: ["delete_file"]
action: deny
toolShadowing:
enabled: true
checkDescriptions: true
detectMutations: true
audit:
enabled: true
redactPII: true