Install an LPM package as a managed dependency. JS packages go to node_modules (like npm install), Swift packages edit Package.swift via SE-0292. Use for libraries, utilities, and SDKs. Requires LPM CLI installed.
AI agents use lpm_install to create or update resources in Lpm Registry — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Lpm Registry environment.
Installing packages modifies the project state by adding dependencies to configuration files and package directories. While this is technically reversible (packages can be uninstalled/removed), it has significant side effects including code execution during installation scripts, transitive dependency chain modifications, and potential security risks from third-party code.
From the tool's definition The tool performs 'Install an LPM package as a managed dependency' which modifies project configuration files ('Package.swift via SE-0292') and dependency trees ('node_modules').
Attacks that exploit this kind of access
Install an LPM package as a managed dependency. JS packages go to node_modules (like npm install), Swift packages edit Package.swift via SE-0292. Use for libraries, utilities, and SDKs. Requires LPM CLI installed. It is categorised as a Write tool in the Lpm Registry MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Lpm Registry MCP server in PolicyLayer and add a rule for lpm_install: 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 Lpm Registry. Nothing to install.
lpm_install 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 lpm_install 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 lpm_install. 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.
lpm_install is provided by the Lpm Registry MCP server (lpm-dev/mcp-server). 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 →