Integrate

MCP tool reference

The typed interface your agent uses to fork infrastructure, explore changes, and inspect their consequences across the documented lenses.

Using the tools

Emfirge runs as an MCP server that your agent invokes over the local stdio connection. Each tool below is a registered operation; select its linked page for the full parameter and response details.

Persist the analysis_id and branch_id returned by your own calls. Do not substitute IDs from screenshots or examples. A compatible engine is required for branch operations.

Setup and account

ToolWhat it does
emfirge_setup_helpReturn the CloudFormation setup link and read-only role instructions.
emfirge_loginSign in to Emfirge with GitHub or Google in your browser.
emfirge_logoutSign out of Emfirge on this device.
emfirge_link_projectLink your browser sign-in to an existing API-key project.

Scan and inspect

ToolWhat it does
emfirge_scanCollect an AWS account and region and return an analysis_id.
emfirge_get_findingsRetrieve findings from a scan, optionally filtered by severity.
emfirge_attack_pathsRead modeled internet-to-internal paths, critical resources, orphans, and graph statistics.
emfirge_simulate_breachEvaluate a graph-based scenario without executing a real exploit.
emfirge_verify_fixSimulate one supported rule remediation against an analysis. Not every rule has a fix mutation.
emfirge_check_complianceRetrieve mapped CIS AWS Foundations 1.5 or SOC 2 control results. These checks do not constitute certification.

Branch lifecycle

ToolWhat it does
emfirge_create_branchCreate an isolated branch from a completed analysis.
emfirge_get_branchRead a branch’s metadata, status, revision, and ordered change log without the base snapshot.
emfirge_fork_branchCopy an open branch into a new independent branch with the same base and changes.
emfirge_apply_changeAppend an add, modify, or delete mutation to the branch model.
emfirge_list_branchesList branches, optionally filtered by their base analysis.
emfirge_rollback_branchRemove the most recent change from a branch in the current backend.
emfirge_rollback_branch_to_countKeep only the first N changes of a branch, optionally rejecting stale state.
emfirge_discard_branchMark a branch as discarded without changing AWS.

Diff and verdict

ToolWhat it does
emfirge_branch_diffCompare a branch against its base: resources, relationships, findings, and reachability.
emfirge_branch_verdictEvaluate the branch with native findings, optional scanner results, and cost notes.
emfirge_compare_branchesCompare modeled changes and outcomes for one or more branches.

Plans and hand-back

ToolWhat it does
emfirge_plan_verdictCheck a Terraform plan, CloudFormation change set, AWS API calls, or AWS CLI commands on a branch and return the verdict and hash-bound hand-back.
emfirge_branch_handbackReturn the exact AWS API calls for a branch, bound to its state by hash; optionally verify them.
emfirge_in_use_evidenceEstimate, then after approval read, CloudTrail and CloudWatch evidence for resources a branch deletes.
emfirge_policy_checksEstimate, then after approval ask AWS IAM Access Analyzer whether changed S3 bucket policies and role trust policies are public.
Based on the Emfirge MCP and engine source.View source
Documentation