Add policy enforcement to Cline in one line.
Config file: cline_mcp_settings.json via MCP Servers icon > Configure tab > Configure MCP Servers
A standard MCP server in your Cline config -- no controls.
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"],
"env": {},
"disabled": false
}
}
} Wrap the server command with Intercept. Same config structure, policy enforced.
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y", "@policylayer/intercept",
"-c", "policy.yaml",
"--",
"npx", "-y", "@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
],
"env": {},
"disabled": false
}
}
} version: "1"
default: deny
tools:
list_customers:
rules:
- action: allow
rate_limit: 30/minute
create_refund:
rules:
- name: "daily cap"
rate_limit: 10/day
delete_repository:
rules:
- action: deny