Tips // Claude in practice

Tips for working better with Claude

One short tip at a time, with an example you can copy. Move through them at random or search for what you need.

MCPAdvancedClaude Code

Close off the MCP risk class with a single key

allowManagedMcpServersOnly blocks every MCP server the admin has not defined, without going server by server.

allowedMcpServers is a list of approved servers; empty means no MCP at all. allowManagedMcpServersOnly goes one level up: only the ones defined by the admin run, and any a developer adds are blocked. OAuth connections have an extra gate: they require Owner approval before enabling per-user access to resources. The list says which servers can exist; consent says what data can be touched.

Example
// managed-settings.json
{
  "allowManagedMcpServersOnly": true
}
#mcp#managed-settings#governance#allowlist