Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
426 B
Raw Blame
import type { Settings } from 'claude-code'

/**
 * Whether managed policy holds an MCP allowlist (allowedMcpServers set at
 * all, empty included): the organization decides which servers add tools.
 *
 * @param policy the managed settings, as `$.settings.read` answers them
 * @returns true when allowedMcpServers is in force
 */
export const hasMcpAllowlist = (policy: Settings) =>
  Array.isArray(policy.allowedMcpServers)