Class AccessGate

java.lang.Object
burp.mcp.server.AccessGate

public class AccessGate extends Object
Evaluates permission policy and Burp target scope for a tool call and resolves "prompt" outcomes through the operator UI via ApprovalManager.

Decision protocol: gated calls wait up to the configured approval window for an operator decision. If the operator answers in time the call is allowed or denied immediately; otherwise the caller receives an APPROVAL_PENDING result and can retry the identical call while the request stays queued for its TTL.

  • Constructor Details

  • Method Details

    • check

      public AccessGate.Result check(String clientIp, String toolName, Map<String,Object> args, List<String> targets)
      Evaluate a tool call.
      Parameters:
      clientIp - caller identity so retries match the same pending request
      toolName - canonical tool name
      args - tool arguments (used only for the fingerprint/summary)
      targets - target URLs derived from TargetedTool
    • onServerStop

      public void onServerStop()
      Cancel every queued approval; called when the server stops.
    • originOf

      public static String originOf(String url)
      Lowercase scheme://host[:port], default ports omitted; null when unparsable.