Integrations/MuleSoft Anypoint
Live ยท Partner Integration

GuardEntry ร— MuleSoft Anypoint

Drop GuardEntry's Flow Gate into any MuleSoft Anypoint integration and every Mule flow step, API call, or Agentforce agent action is evaluated against your security policy before it executes. Two integration surfaces: a Mule sub-flow for traditional iPaaS flows (HTTP Requester Connector), and a MCP Connector for MuleSoft's Agent Fabric autonomous agent platform. Both evaluate the same POST /api/v2/policy-router/evaluate endpoint. Setup takes about 20 minutes.

Surface A โ€” Mule Flow Gate

Add the guardentry-policy-gate sub-flow to any Mule application. Set actor type to service.mulesoft.*. Raises GUARDENTRY:BLOCKED on policy violations.

Surface B โ€” Agent Fabric / MCP

Connect the MuleSoft MCP Connector to the GuardEntry MCP server. Every Agentforce agent action is gated before execution. Actor type: agent.mulesoft.*.

Prerequisites

  • โ€ขMuleSoft Anypoint Platform (CloudHub 2.0, Anypoint Runtime Fabric, or on-premises Mule Runtime 4.4+)
  • โ€ขAnypoint Studio 7.16+ or Anypoint Code Builder (for importing the app template)
  • โ€ขA GuardEntry API key โ€” get one free at guardentry.ai/connect
  • โ€ขOutbound HTTPS from your Mule Runtime / CloudHub workers to app.guardentry.ai:443
  • โ€ข(Agent Fabric surface only) Node.js 18+ and the GuardEntry MCP server running locally or hosted
Surface AMule Flow Gate
1

Import the GuardEntry Flow Gate app template

  1. 1. Download GuardEntry_FlowGate_v1.0.0.zip from the in-dashboard wizard at app.guardentry.ai/dashboard/integrations/setup/mulesoft
  2. 2. Anypoint Studio: unzip โ†’ File โ†’ Import โ†’ General โ†’ Existing Projects into Workspace โ†’ Select root directory โ†’ browse to guardentry-flowgate/ โ†’ Finish
  3. 3. CloudHub 2.0 / Runtime Fabric: unzip โ†’ cd guardentry-flowgate && mvn clean package -DskipMunitTests โ†’ upload target/*.jar to Runtime Manager โ†’ Deploy Application

The import adds one Mule sub-flow to your application:

  • โ€ข guardentry-policy-gate โ€” call via Flow Reference from any flow to gate an action
2

Configure secure properties

The Flow Gate reads three Mule properties at startup.

PropertyValueNotes
guardentry.api.keyge_k1_โ€ฆFrom the wizard. Store as a secure property (encrypted).
guardentry.base.urlhttps://app.guardentry.aiYour GuardEntry tenant URL. No trailing slash.
guardentry.modebalancedOne of fast | balanced | strict. Start with fast.

In CloudHub 2.0: set properties in Runtime Manager โ†’ Application โ†’ Properties. On-premises: add to your mule-artifact.json secure properties file.

3

Add a Flow Reference to the policy gate

  1. 1. In the flow you want to gate, add a Set Variable step before the downstream logic
  2. 2. Set the required gate variables:
VariableValueNotes
guardentry_contentDescription of the actionWhat is this flow step doing? Be descriptive โ€” APR evaluates this string.
guardentry_actor_typeservice.mulesoft.<api-name>e.g. service.mulesoft.customer-export โ€” drives policy lookup
guardentry_labelFree-text intent tagAudit grouping, e.g. mulesoft.export
guardentry_directioningress | egressUse egress to catch data leaks on outbound responses
  1. 3. Add a Flow Reference step pointing to guardentry-policy-gate
  2. 4. Add an Error Handler to your flow to handle GUARDENTRY:BLOCKED and GUARDENTRY:APPROVAL_REQUIRED โ€” typically return 403 to the caller
  3. 5. Order/run the flow to send a test call to GuardEntry APR
โš ๏ธVariables guardentry_content and guardentry_actor_type are required. The sub-flow will fail-open (continue without blocking) if it cannot reach GuardEntry APR, so a GuardEntry outage never takes down your integration.
Surface BAgent Fabric / MCP
4

Connect Agent Fabric via the MuleSoft MCP Connector

MuleSoft Agent Fabric (GA June 2026) supports MCP as the standard agent-to-system protocol. Connect it to the GuardEntry MCP server so every Agentforce agent action is evaluated before execution.

  1. 1. Start the GuardEntry MCP server:
    cd mcp-server
    GUARDENTRY_API_KEY=<your-key> npm run start:http
  2. 2. In Anypoint Code Builder, add the MCP Connector configuration from src/mcp-config.json in the downloaded package
  3. 3. Set GUARDENTRY_API_KEY and (optionally) GUARDENTRY_MCP_URL for hosted deployments
  4. 4. Agents will use actor type agent.mulesoft.<agent-name> โ€” one shared policy per agent type

The GuardEntry MCP server exposes the guardentry_evaluate_action tool, which agents call before any action. Decisions are logged in the GuardEntry dashboard under Policy Router โ†’ Decisions.

Actor types

GuardEntry creates one shared policy per unique actorType. Use the dotted prefix convention to scope policies per integration surface:

SourceactorTypeExample
Mule flow / APIservice.mulesoft.<api-name>service.mulesoft.customer-export
Agent Fabric / Agentforceagent.mulesoft.<agent-name>agent.mulesoft.order-fulfillment

Flow variables set after evaluation

The guardentry-policy-gate sub-flow sets these Mule variables that downstream steps can read:

VariableDescription
vars.guardentry_decisionallow | block | require_approval | uncertain | verify | unreachable
vars.guardentry_policy_idGuardEntry policy UUID โ€” empty string if no policy matched
vars.guardentry_audit_linkDeep link to the audit record in GuardEntry dashboard
vars.guardentry_reviews_linkDeep link to review queue (populated when require_approval)
vars.guardentry_reasoningHuman-readable reasoning string from APR
vars.guardentry_confidenceConfidence score 0โ€“1 float

Example use cases

Customer data export gate

Gate a Mule flow that exports customer records to external destinations. Set actorType=service.mulesoft.customer-export and pass the destination path and record count in content. APR blocks exports matching PII-exfiltration patterns or outside change windows.

Payment / ERP API gate

Gate outbound calls to payment processors or ERP systems (SAP, NetSuite). Set actorType=service.mulesoft.payment-api and pass the transaction details as content. APR can require approval for high-value transactions against SOC 2 financial controls.

Agentforce agent governance

Gate Agentforce agents built on MuleSoft Agent Fabric. Connect the MCP Connector to GuardEntry so every agent action (web search, API call, record update) is evaluated before execution. Set actorType=agent.mulesoft.order-fulfillment and audit all agent decisions in the GuardEntry dashboard.

Egress data leak detection

Set direction=egress to catch sensitive data leaving your integration โ€” credentials, PII, internal system URLs โ€” before responses are returned to external callers. Use strict mode for LLM-assisted detection of subtler leakage patterns.

Troubleshooting

โš ๏ธFlow continues even when APR returns block โ€” Check that your Error Handler catches GUARDENTRY:BLOCKED. Without an error handler, Mule's default handler may swallow the error. Add on-error-propagate type="GUARDENTRY:BLOCKED" to your flow's error handler.
โš ๏ธ"unreachable" decisions โ€” The Mule worker can't reach GuardEntry. Check outbound HTTPS to app.guardentry.ai:443. The Flow Gate fails open on network errors so a GuardEntry outage never blocks your integration.
โš ๏ธAll decisions are allow โ€” Your policy may be in observe mode. The ๐Ÿ‘ observe badge in your GuardEntry dashboard means violations are logged but not blocked. Switch to enforcement from the policy settings page when ready.
โš ๏ธ401 Unauthorized โ€” Check that guardentry.api.key is set correctly and that the key has not been revoked. The key must have readwrite permissions and an integration label of mulesoft.