How It Works
When Enforce is installed, it intercepts MCP tool calls before execution:- User invokes a tool — The AI assistant requests a tool call from a shadow MCP
- Intercept — The call is captured before reaching the MCP server
- Policy evaluation — The call is checked against your organization’s policies
- Decision — The call is either:
- Allowed — Proceeds to the MCP server normally
- Blocked — Prevented and logged for security review
- Audit logging — All intercepted calls are logged for visibility
What Gets Intercepted
Enforce intercepts tool calls from shadow MCP servers (those configured directly in the client, not through Runlayer). Tool calls to Runlayer-managed MCPs are handled by the Runlayer proxy and are not affected.Supported Clients
| Client | macOS | Windows |
|---|---|---|
| Cursor | ✓ | Coming soon |
Additional client support is in active development. Check the Runlayer dashboard for the latest supported clients.
Deployment
MDM Deployment
Deploy Enforce across your organization directly from the Runlayer dashboard:Manual Installation
For testing or individual device setup, install Enforce directly using the Runlayer CLI. Install the Runlayer CLI:| Flag | Description |
|---|---|
--install | Perform the installation |
--yes | Skip confirmation prompts |
--host | Validate this host exists in config before install |
--client cursor | Install only for Cursor (default: all supported clients) |
Troubleshooting
Not intercepting calls
Not intercepting calls
- Verify installation:
uvx runlayer setup hooks --status - Restart the client application after installation
- Check that the client is supported (currently Cursor on macOS)
- Ensure Enforce is installed for the correct client
Installation fails
Installation fails
- Ensure
uvis installed:curl -LsSf https://astral.sh/uv/install.sh | sh - Check network connectivity to your Runlayer instance
- Verify the host URL is correct
- Try running with verbose output for more details
Performance issues
Performance issues
- Check your Runlayer instance connectivity
- Review the number of policies being evaluated
- Contact Runlayer support if issues persist