Create GitHub PR with generated component and test results.
AI agents use create_design_pr to create or update resources in Figma to React MCP — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Figma to React MCP environment.
This tool performs a write operation by creating a pull request (data modification in GitHub), but does not irreversibly delete data or execute arbitrary code with unpredictable side effects. While it does trigger downstream GitHub workflows, the primary action is creating/writing a PR.
From the tool's definition The tool 'create_design_pr' creates a GitHub pull request with generated component code and test results. Creating a PR is a write operation that commits code changes to a repository, modifying the state of the codebase and potentially affecting CI/CD…
Attacks that exploit this kind of access
Create GitHub PR with generated component and test results. It is categorised as a Write tool in the Figma to React MCP MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Figma to React MCP server in PolicyLayer and add a rule for create_design_pr: 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 Figma to React MCP. Nothing to install.
create_design_pr is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the create_design_pr 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 create_design_pr. 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.
create_design_pr is provided by the Figma to React MCP server (surisagar900/figma-to-react-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →