# Function createDefaultPolicyFirewall

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- createDefaultPolicyFirewall(config?: PolicyFirewallConfig): PolicyFirewall

  Creates a policy firewall with default rules.

  Default rules included:

  - deny-mutations-without-mode
  - safe-paths

  #### Parameters

  - `Optional` config: PolicyFirewallConfig

    Optional configuration

  #### Returns PolicyFirewall

  A configured PolicyFirewall instance

  - Defined in packages/nexus-agents/src/mcp/middleware/policy.ts:253