> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Protect Policy

> Block explicitly denied MCP sources in Protect while allowing unmatched sources

Protect applies your scanner's Block and Mask actions to supported endpoint tool calls. Its source policy is **allow unless denied**: configured MCP sources continue to run unless they match an entry on the Protect denylist.

This is intentionally different from [Enforce policy](https://docs.runlayer.com/shadow-ai/enforce/policy.md), which denies configured MCP sources unless they match an Enforce allowlist. Protect denylists apply only in Protect mode; Enforce ignores them.

## Where to configure it

Admins with the **Manage org settings** capability edit the policy under **Settings** → **Tool governance** → **Protect**. The Protect tab appears when Protect mode is available for the organization.

The editor has three groups — **Denied remote MCP URLs**, **Denied local (STDIO) packages**, and **Denied built-in MCP servers**. The page saves Protect and Enforce settings together, so unchanged policy groups are preserved.

## Decision behavior

For a configured MCP source in Protect:

1. Runlayer-managed MCP sources are allowed.
2. A source that matches the applicable denylist is blocked with an organization-denylist decision.
3. An unmatched source is allowed and continues through Protect's normal content-scanner path.
4. If Runlayer cannot evaluate the source check — for example, Runlayer is unreachable or a local command cannot be resolved to a package identity — the check fails open and content scanning still runs.

> [!NOTE]
>
> The denylist governs **where an MCP call comes from**. It does not replace
> content scanning. An MCP source that is not denied can still be blocked or
> masked by your configured scanners.

## Denied remote MCP URLs

Add the base URL of an external remote MCP server that Protect should block. Each entry saves as you add it; each list holds up to 5,000 entries.

Matching uses the same URL rules as the Enforce allowlist:

* Scheme, host, and port must match. Default ports `443` and `80` are equivalent to omitting the port.
* An origin-only entry matches every path on that origin.
* An entry with a path matches that path and its descendants on a path boundary. For example, `/mcp` matches `/mcp/stream` but not `/mcpbackup`.

URLs that do not match remain allowed.

## Denied local (STDIO) packages

Protect can block a local MCP launched through a recognized npm or PyPI package runner. Each entry contains:

* **Ecosystem** — `npm` or `PyPI`
* **Package name** — the canonical package identity
* **Version** — optional; omit it to deny every version, or set an exact version to deny only that version

Package parsing and normalization follow the same rules described under [Enforce package identity](https://docs.runlayer.com/shadow-ai/enforce/policy.md#package-identity).

Protect is fail-open for source governance: a command that cannot be resolved to one package identity does not match the denylist and continues to content scanning. Only `npx`, `uvx`, and `uv tool run` commands resolve to a package identity — servers launched through other runners such as `pnpm dlx`, `bunx`, or `docker run` pass the denylist.

## Denied built-in MCP servers

Some AI clients provide built-in MCP servers that have no URL or local command. Add a `(client, built-in server id)` pair to block that server in Protect.

The pair must match exactly. An unidentified or unmatched built-in server remains allowed in Protect. Claude Code built-in (`sdk`) servers are identified in Enforce only, so a Protect deny for one of them only removes it from Enforce's allowed list.

## Related resources

> [card] [Enforce policy](https://docs.runlayer.com/shadow-ai/enforce/policy.md)
>
> Configure deny-by-default allowlists and built-in tool blocks for Enforce

> [card] [Deploy AI Watch](https://docs.runlayer.com/shadow-ai/deploy.md)
>
> Select Monitor, Protect, or Enforce for managed devices

> [card] [Protect and Enforce](https://docs.runlayer.com/shadow-ai/enforce.md)
>
> Understand endpoint modes, scanner decisions, and source governance

> [card] [Detect](https://docs.runlayer.com/shadow-ai/detect.md)
>
> Discover shadow MCP servers across your device fleet


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.