This record as markdown: /tools/jjpxdev-unreal-mcp/sc-diff.md
What sc_diff does on Unreal
AI agents call sc_diff to retrieve information from Unreal without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | File path to diff |
Parameters from the server's own tool schema.
Why sc_diff is rated Low
This tool retrieves and displays differences between versions of a file in source control. It is a query operation with no side effects—it does not commit, revert, delete, or modify any files or version control state. The blast radius of misuse is minimal, as viewing diffs cannot corrupt data or cause unintended changes. This is a classic read operation.
From the tool's definition Tool name 'sc_diff' and description 'Get the diff for a modified file in source control' indicate retrieval of version control differences.
Risk signalsAccepts file system path (path)
Attacks that exploit this kind of access
The rule that runs sc_diff safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Unreal, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For sc_diff, this is the rule to start with:
sc_diff is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Unreal, apply this rule, and every sc_diff call is checked against it from then on.
Questions about sc_diff
Get the diff for a modified file in source control. It is categorised as a Read tool in the Unreal MCP Server, which means it retrieves data without modifying state.
sc_diff accepts 1 parameter: path. Required: path. The full parameter table on this page comes from the server's own tool schema.
Register the Unreal MCP server in PolicyLayer and add a rule for sc_diff: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Unreal. Nothing to install.
sc_diff is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the sc_diff rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for sc_diff. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
sc_diff is provided by the Unreal MCP server (@jjpxdev/unreal-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Unreal, and thousands of servers like it.
This server
Across the catalogue