Salesforce DX MCP server tools: how a folder picks the org, and how to make your agent ask

All 88 tools of Salesforce's DX MCP server (@salesforce/mcp 0.30.15), checked by running it on this machine against three made-up orgs whose every request went to a local server: how the recommended --orgs DEFAULT_TARGET_ORG let one tool argument reach the production org, which tool marked read-only sent a delete, what a permission set grant asks for, and the Claude Code settings that make the risky tools ask.

Checked on by running @salesforce/mcp 0.30.15 (npm, the latest on 27 November 2026, run with Node 24 on macOS against made-up orgs and a local stand-in for Salesforce) from salesforcecli/mcp; the tool list is its tools/list answer with --toolsets all and --allow-non-ga-tools, since the server refuses to start without --toolsets, --tools or --dynamic-tools. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.

The short answer

The recommended --orgs DEFAULT_TARGET_ORG follows the .sf/config.json of whatever folder a tool is given, so one argument moved queries and a deploy to our production org. Name one org alias in --orgs instead, load only the toolsets you need, and keep deploys, permission set grants and the GraphQL test tool, which sent a delete, on ask.

Can run on their own
53
Should ask a person
35

Lethal trifecta: On its own this server can read private data, take in content other people wrote and send data out: all three legs of the lethal trifecta. Check your whole setup

Which Salesforce server this is

This page is about Salesforce’s own DX MCP server, from the salesforcecli/mcp repository, published on npm as @salesforce/mcp. We ran 0.30.15, the latest release, with Node 24 on macOS. It refuses to start without --toolsets, --tools or --dynamic-tools, and always needs --orgs. With --toolsets all it offered 74 tools; with --allow-non-ga-tools too, 88. The 14 that are not generally available include delete_org, open_org and create_scratch_org. Most of the tools, the LWC, Aura and mobile ones, return guidance text and never reach an org. We called each tool that would run unasked and checked that it wrote no file and sent nothing, since several tools marked read-only were not.

How we ran it without a Salesforce org

We gave it a home folder of its own with three made-up orgs, signed in by access token: dev, the global default, prod and sandbox. Each org’s address was a small server on our own machine, on its own port, that logged every request with its token and answered it, so we could see which org each call went to.

The default org follows the folder the agent names

Salesforce’s README sets the server up like this for Claude Code, Cursor, Cline and VS Code. DEFAULT_TARGET_ORG allows your default org: the local default of your DX project if it has one, otherwise the global one.

"args": ["-y", "@salesforce/mcp",
         "--orgs", "DEFAULT_TARGET_ORG",
         "--toolsets", "orgs,metadata,data,users",
         "--tools", "run_apex_test", "--allow-non-ga-tools"]

Nearly every tool that reaches an org also takes a directory, and the server changes into it before it works out which org is the default. So the default is whatever the .sf/config.json in that folder says. A call for prod from our project was refused; the same call with the directory of another repository, whose config named prod, went to the production org:

# ~/.sf/config.json (global default)     { "target-org": "dev" }
# /work/other-repo/.sf/config.json       { "target-org": "prod" }

{ "name": "run_soql_query", "arguments": { "usernameOrAlias": "prod",
  "directory": "/work/my-project", "query": "SELECT Id, Name FROM Account" } }
→ No org found with the provided username/alias.

{ "name": "run_soql_query", "arguments": { "usernameOrAlias": "prod",
  "directory": "/work/other-repo", "query": "SELECT Id, Name FROM Account" } }
→ SOQL query results: … (sent to the prod org, with prod's token)
  • deploy_metadata did the same: with that directory it sent a deploy of the folder’s Apex class to the production org.
  • Any folder works, so a cloned repository that ships a .sf/config.json, or one the agent writes itself, picks the org.
  • With one alias named instead, --orgs dev, the same call for prod was refused from every folder, and list_all_orgs showed only dev, without tokens.

Tools marked read-only that are not

  • test_lds_graphql_query is marked read-only and is meant to test a query the LWC tools wrote. Given a mutation, it sent it to the org as it was:
{ "name": "test_lds_graphql_query", "arguments": {
  "usernameOrAlias": "dev", "operation": "mutation",
  "query": "mutation DeleteAcc { uiapi { AccountDelete(input: { Id: \"001…\" }) { Id } } }" } }
// sent as is: POST /services/data/v64.0/graphql
  • open_org is marked read-only. It asked the org for a one-time login link (/services/oauth2/singleaccess) to open your browser signed in.
  • query_code_analyzer_results is marked read-only and opens any file given as an absolute path. Our .env was refused as not JSON, and the error the model read back began with its first ten characters, STRIPE_SEC.
  • scan_apex_class_for_antipatterns is marked read-only. It read an Apex class from a folder outside the project and asked the org for that class’s runtime data.
  • run_soql_query is read-only in the sense that SOQL cannot change records, but it reads anything the signed-in user can see.

Permission sets for anyone

assign_permission_set carries only an open-world hint. It takes any permission set and, through onBehalfOf, any user of the org. Our call gave a permission set called Modify_All_Data_Admin to intern@example.com and answered “Assigned”, with no question asked. Whoever the agent signs in as can hand out what that user may grant.

Telemetry

Telemetry is on unless you pass --no-telemetry, which we did. Its code sends an event for each tool call, with the tool’s name, how long it took, whether it failed and the size of its answer, but not the arguments, to Azure Application Insights (eastus-1.in.applicationinsights.azure.com) and to a Salesforce site, 794testsite.my.site.com.

A safer setup

claude mcp add salesforce -- npx -y @salesforce/mcp@0.30.15 --orgs my-sandbox --toolsets orgs,data,metadata --no-telemetry

Name one org by alias, here my-sandbox, and make it a sandbox. Never use DEFAULT_TARGET_ORG, DEFAULT_TARGET_DEV_HUB or ALLOW_ALL_ORGS for an agent, since the first two follow the folder and the last allows every org you have signed in to. Leave out --allow-non-ga-tools, so delete_org and open_org stay off, and the users and DevOps Center toolsets unless the agent needs them.

All 88 tools

Hard to undo6 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.

  • delete_org

    Deletes specified salesforce org.

    Server gives no read-only or destructive hint · toolset orgs

    Our call: Deletes a scratch org or sandbox. Not generally available. In our run it stopped before deleting, with Unable to associate this scratch org with a DevHub.

  • deploy_metadata

    Deploy metadata to an org from your local project.

    Server says: destructive · toolset metadata

    Our call: Deploys the source in the folder the model names. With --orgs DEFAULT_TARGET_ORG, a folder whose .sf/config.json named our production org sent the deploy, and its token, there.

  • retrieve_metadata

    Retrieve metadata from an org to your local project.

    Server says: destructive · toolset metadata

  • assign_permission_set

    Assign a permission set to one or more org users.

    Server gives no read-only or destructive hint · toolset users

    Our call: Grants a permission set to any user of the org through onBehalfOf. Our call gave one named Modify_All_Data_Admin to another user, with no question asked. It carries only an open-world hint.

  • test_lds_graphql_query

    This is a sub tool of the create_lds_graphql_read_query and create_lds_graphql_mutation_query tools.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, but it sent the GraphQL AccountDelete mutation we gave it to the org as it was.

  • promote_devops_center_work_item

    Promote an approved work item to the next stage in the DevOps Center pipeline.

    Server gives no read-only or destructive hint · toolset devops

    Our call: Promotes a work item to the next stage of the DevOps Center pipeline, which deploys it there.

Not sure8 toolsAsk a person until you have checked what it does.

  • run_soql_query

    Run a SOQL query against a Salesforce org.

    Server says: read-only · toolset data

    Our call: Marked read-only, and SOQL cannot change records, but it reads every record the signed-in user can see. With --orgs DEFAULT_TARGET_ORG, a directory argument pointed it at our production org.

  • enhance_aura_blueprint_draft

    Use this tool to enhance a draft Product Requirements Document (PRD) as part of the Aura to LWC migration workflow orchestrator.

    Server gives no read-only or destructive hint · toolset aura-experts

  • orchestrate_aura_migration

    Use this tool to orchestrate a workflow to convert or migrate a Salesforce Aura component into its Lightning Web Component (LWC) equivalent.

    Server gives no read-only or destructive hint · toolset aura-experts

    Our call: Its description says it guides a migration, but our call failed its input check, so we did not see what it does.

  • review_lwc_jest_tests

    This is a sub tool of the orchestrate_lwc_component_testing.

    Server gives no read-only or destructive hint · toolset lwc-experts

  • resolve_devops_center_deployment_failure

    Determine if full promotion can fix a deployment failure and guide the user.

    Server gives no read-only or destructive hint · toolset devops

  • query_code_analyzer_results

    Query a Code Analyzer results JSON file and return filtered violations.

    Server says: read-only · toolset code-analysis

    Our call: Marked read-only, but it opens any file given as an absolute path. Our .env was refused as not JSON, and the error showed its first ten characters.

  • scan_apex_class_for_antipatterns

    Apex Code Scan Tool: Invoke (alongside other code scan tools if needed) whenever the user intends to scan or analyze an Apex class.

    Server says: read-only · toolset scale-products

    Our call: Marked read-only, but it read an Apex class from a folder outside the project and sent a request for that class's runtime data to the org.

  • score_issues

    Score validation issues using readiness scoring rules.

    Server says: read-only · toolset experts-validation

    Our call: Marked read-only, but it opens any results file given as a path. Our .env was refused as invalid JSON without its contents.

Changes data21 toolsAsk a person. Once it is routine, a standing rule can answer.

  • resume_tool_operation

    Resume a long running operation that was not completed by another tool.

    Server gives no read-only or destructive hint · toolset core

  • create_org_snapshot

    Creates a new snapshot of an org.

    Server gives no read-only or destructive hint · toolset orgs

  • create_scratch_org

    Creates a scratch org with the specified parameters.

    Server gives no read-only or destructive hint · toolset orgs

  • open_org

    Open a Salesforce org in the browser.

    Server says: read-only · toolset orgs

    Our call: Marked read-only. It asks the org for a one-time login link and opens your browser signed in. Not generally available.

  • run_agent_test

    Run Agent tests in an org.

    Server gives no read-only or destructive hint · toolset testing

    Our call: Starts agent tests in the org as the signed-in user.

  • run_apex_test

    Run Apex tests in an org.

    Server gives no read-only or destructive hint · toolset testing

    Our call: Starts an Apex test run in the org as the signed-in user.

  • create_aura_blueprint_draft

    Use this tool to generate a Product Requirements Document (PRD) from a Salesforce Aura component.

    Server says: read-only · toolset aura-experts

  • create_lwc_jest_tests

    This is a sub tool of the orchestrate_lwc_component_testing.

    Server says: read-only · toolset lwc-experts

  • fetch_lds_graphql_schema

    Fetches the full GraphQL introspection schema from a connected Salesforce org and saves it to the local filesystem.

    Server says: read-only · toolset lwc-experts

  • create_devops_center_work_item

    Creates a new DevOps Center Work Item in the specified project.

    Server gives no read-only or destructive hint · toolset devops

  • detect_devops_center_merge_conflict

    Detects merge conflicts for a selected work item or in given source branch.

    Server gives no read-only or destructive hint · toolset devops

  • resolve_devops_center_merge_conflict

    Guides merge conflict resolution for a selected work item by name.

    Server gives no read-only or destructive hint · toolset devops

  • checkout_devops_center_work_item

    Checks out the branch associated with a selected work item by name.

    Server gives no read-only or destructive hint · toolset devops

    Our call: Clones the work item's repository into a local folder and checks out its branch. It moves no money; the checker takes the word checkout for a payment.

  • commit_devops_center_work_item

    Commit SFDX project changes and register the commit SHA in DevOps Center.

    Server gives no read-only or destructive hint · toolset devops

  • update_devops_center_work_item_status

    Update the status of a DevOps Center work item to either "In Progress" or "Ready to Promote".

    Server gives no read-only or destructive hint · toolset devops

  • check_devops_center_commit_status

    Check the current status of a work item committed to DevOps Center.

    Server gives no read-only or destructive hint · toolset devops

  • create_devops_center_pull_request

    Commit local changes to a DevOps Center work item's feature branch.

    Server gives no read-only or destructive hint · toolset devops

  • run_code_analyzer

    A tool for performing static analysis against code.

    Server gives no read-only or destructive hint · toolset code-analysis

    Our call: Runs Code Analyzer's engines on files the model names and writes a results file.

  • get_ast_nodes_to_generate_xpath

    Purpose: First step for creating a PMD XPath-based custom rule.

    Server gives no read-only or destructive hint · toolset code-analysis

  • create_custom_rule

    Purpose: Create a custom rule using a provided XPath expression.

    Server gives no read-only or destructive hint · toolset code-analysis

  • enrich_metadata

    Enrich metadata components in your DX project by adding AI-generated descriptions.

    Server gives no read-only or destructive hint · toolset enrichment

Only looks53 toolsLet it run. It only looks.

  • get_username

    Intelligently determines the appropriate username or alias for Salesforce operations.

    Server says: read-only · toolset core

    Our call: Returns the default org's alias and the path of the config file it came from. It sent nothing to the org in our run.

  • list_all_orgs

    Lists all configured Salesforce orgs.

    Server says: read-only · toolset orgs

    Our call: Lists only the orgs --orgs lets through, with their user names and addresses but no access tokens.

  • get_mobile_lwc_offline_analysis

    Analyzes LWC components for mobile-specific issues and provides detailed recommendations for improvements.

    Server says: read-only · toolset mobile, mobile-core

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • get_mobile_lwc_offline_guidance

    Provides structured review instructions to detect and remediate Mobile Offline code violations in Lightning web components (LWCs) for Salesforce Mobile Apps.

    Server says: read-only · toolset mobile, mobile-core

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • create_mobile_lwc_app_review

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC App Review Service, laying the foundation for understanding mobile app review and offering expert-level guidance for implementing the App Review feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_ar_space_capture

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC AR Space Capture, laying the foundation for understanding mobile AR space capture and offering expert-level guidance for implementing the AR Space Capture feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_barcode_scanner

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Barcode Scanner, laying the foundation for understanding mobile barcode scanner and offering expert-level guidance for implementing the Barcode Scanner feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile, mobile-core

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_biometrics

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Biometrics Service, laying the foundation for understanding mobile biometrics and offering expert-level guidance for implementing the Biometrics feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile, mobile-core

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_calendar

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Calendar Service, laying the foundation for understanding mobile calendar and offering expert-level guidance for implementing the Calendar feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_contacts

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Contacts Service, laying the foundation for understanding mobile contacts and offering expert-level guidance for implementing the Contacts feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_document_scanner

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Document Scanner, laying the foundation for understanding mobile document scanner and offering expert-level guidance for implementing the Document Scanner feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_geofencing

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Geofencing Service, laying the foundation for understanding mobile geofencing and offering expert-level guidance for implementing the Geofencing feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_location

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Location Service, laying the foundation for understanding mobile location and offering expert-level guidance for implementing the Location feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile, mobile-core

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_nfc

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC NFC Service, laying the foundation for understanding mobile NFC and offering expert-level guidance for implementing the NFC feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_mobile_lwc_payments

    The MCP tool provides a comprehensive TypeScript-based API documentation for Salesforce LWC Payments Service, laying the foundation for understanding mobile payments and offering expert-level guidance for implementing the Payments feature in a Lightning Web Component (LWC).

    Server says: read-only · toolset mobile

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • transition_prd_to_lwc

    Use this tool to provide next-step migration instructions from a Product Requirements Document (PRD) to a Lightning Web Component (LWC), as part of the Aura to LWC migration workflow orchestrator.

    Server gives no read-only or destructive hint · toolset aura-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • verify_aura_migration_completeness

    Completeness Checklist for aura to LWC conversion using this tool.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_figma_to_lwc_conversion

    Prior to generating an LWC component from a Figma design, you must call this tool to understand how to do this for salesforce.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • create_lwc_component_from_prd

    Use this tool to create a Lightning Web Component (LWC) from a Product Requirement Document (PRD).

    Server says: read-only · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • guide_component_accessibility

    Provides accessibility guidelines.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lwc_best_practices

    Use this tool for Salesforce LWC best practices guidelines for Lightning Web Component (LWC).

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lwc_development

    Use this tool to get guidance on Lightning Web Components (LWC) development.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lwc_rtl_support

    Use this tool to review Right-to-Left (RTL) internationalization guidelines for Lightning Web Components (LWC).

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • orchestrate_lwc_component_creation

    Use this tool to create a LWC Components (Lightning Web Components) by orchestrating a workflow that provides step-by-step guidelines.

    Server says: read-only · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • orchestrate_lwc_component_optimization

    Use this tool to orchestrate a workflow that provides step-by-step guidance for optimization of a Lightning Web Component (LWC).

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • orchestrate_lwc_component_testing

    Use this tool to orchestrate a workflow that will comprehensively generate or enhance and validate Jest unit tests for a Lightning Web Component (LWC).

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • explore_lds_uiapi

    Use this tool to explore Lightning Data Service (LDS) UI API documentation, browse available adapter APIs, and retrieve type definitions for LWC development.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lds_data_consistency

    Use this tool to get detailed guidance on implementing data consistency patterns in LWC components when working with Salesforce record data through Lightning Data Service (LDS).

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lds_development

    Use this tool to get comprehensive Lightning Data Service (LDS) guidelines covering data consistency, referential integrity, and choosing UIAPI vs Apex, with review checklists and links to specialized knowledge tools.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lds_referential_integrity

    Use this tool to get detailed guidance on implementing referential integrity best practices in LWC components to make your code resilient against object/field name changes.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • run_lwc_accessibility_jest_tests

    Provides detailed instructions and commands for running Sa11y accessibility Jest tests on LWC components.

    Server says: read-only · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • orchestrate_lwc_slds2_uplift

    Use this tool to get step-by-step guidance for migrating LWC components to SLDS 2 design system.

    Server says: destructive · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • guide_lws_security

    Use this tool to get comprehensive security analysis in accordance with Product Security Guidelines and Lightning Web Security Guidelines.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • orchestrate_lds_data_requirements

    Provides step-by-step workflow guidance for analyzing and clarifying LDS data requirements to produce PRD-ready specifications.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lds_graphql

    Use this tool to get detailed guidance on implementing GraphQL patterns in LWC components when working with Salesforce data through Lightning Data Service (LDS) GraphQL APIs.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • create_lds_graphql_read_query

    This is a sub tool of the guide_lds_graphql tool.

    Server says: read-only · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_lds_graphql_mutation_query

    This is a sub tool of the guide_lds_graphql tool.

    Server says: read-only · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • guide_design_general

    Provides comprehensive Salesforce Lightning Design System (SLDS) guidelines and best practices for creating enterprise Lightning Web Components with proper accessibility, responsive design, and component usage patterns.

    Server says: read-only · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • create_lightning_type

    (Developer Preview) Creates, enhances, and provides expert guidance and best practices for custom Lightning types.

    Server says: read-only · toolset lwc-experts

    Our call: Returns guidance text for the agent to follow. In our run it wrote no file and sent nothing to the org; the checker takes a word in its name, such as create or run, for a change.

  • guide_utam_generation

    Use this tool to generate UTAM Page Object from a LWC component.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lbc_usage

    Use this tool to discover which Lightning Base Components are available and find the best fit for a given use case.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • explore_lbc_components

    Use this tool to retrieve full API documentation for specific Lightning Base Components by name.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • explore_slds_blueprints

    Search and explore SLDS Blueprints.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_slds_blueprints

    Retrieve comprehensive SLDS blueprints guidance and reference documentation.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • explore_slds_styling

    Search and explore SLDS styling hooks with support for exact lookup, fuzzy matching, prefix search, and wildcard patterns.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_slds_styling

    Retrieve SLDS styling hooks guidance and reference documentation.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • reference_lwc_compilation_error

    Look up documentation for a single LWC compilation error code (e.g., "LWC1034").

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • guide_lo_migration

    Migration recipe: converts a Lightning Out (beta) host page into a Lightning Out 2.0 host page.

    Server says: read-only · toolset lwc-experts

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • list_devops_center_projects

    List all DevOps Center projects in a specific org.

    Server gives no read-only or destructive hint · toolset devops

    Our call: We had no DevOps Center org to run it against. Its code only runs a SOQL query for the org's DevOps Center projects.

  • list_devops_center_work_items

    List all the work items for a specific DevOps Center project.

    Server gives no read-only or destructive hint · toolset devops

    Our call: We had no DevOps Center org to run it against. Its code only runs SOQL queries and GET requests for the project's work items.

  • describe_code_analyzer_rule

    A tool for getting the description of a Code Analyzer rule.

    Server says: read-only · toolset code-analysis

    Our call: Looks a rule up in Code Analyzer's own catalog on this machine. In our run it wrote no file and sent nothing; its PMD engine needs Java, which we lacked.

  • list_code_analyzer_rules

    A tool for selecting Code Analyzer rules based on a number of criteria.

    Server says: read-only · toolset code-analysis

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

  • validate_and_optimize

    Validation tool for UI component quality assessment.

    Server says: read-only · toolset experts-validation

    Our call: Marked read-only, and in our run it returned guidance or reference text only: it wrote no file, read none we did not pass in and sent nothing to the org.

Let the reads run in Claude Code

Claude Code asks before every MCP tool it has no rule for. Added as salesforce, this server’s tools are named mcp__salesforce__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.

{
  "permissions": {
    "allow": [
      "mcp__salesforce__get_username",
      "mcp__salesforce__list_all_orgs",
      "mcp__salesforce__get_mobile_lwc_offline_analysis",
      "mcp__salesforce__get_mobile_lwc_offline_guidance",
      "mcp__salesforce__create_mobile_lwc_app_review",
      "mcp__salesforce__create_mobile_lwc_ar_space_capture",
      "mcp__salesforce__create_mobile_lwc_barcode_scanner",
      "mcp__salesforce__create_mobile_lwc_biometrics",
      "mcp__salesforce__create_mobile_lwc_calendar",
      "mcp__salesforce__create_mobile_lwc_contacts",
      "mcp__salesforce__create_mobile_lwc_document_scanner",
      "mcp__salesforce__create_mobile_lwc_geofencing",
      "mcp__salesforce__create_mobile_lwc_location",
      "mcp__salesforce__create_mobile_lwc_nfc",
      "mcp__salesforce__create_mobile_lwc_payments",
      "mcp__salesforce__transition_prd_to_lwc",
      "mcp__salesforce__verify_aura_migration_completeness",
      "mcp__salesforce__guide_figma_to_lwc_conversion",
      "mcp__salesforce__create_lwc_component_from_prd",
      "mcp__salesforce__guide_component_accessibility",
      "mcp__salesforce__guide_lwc_best_practices",
      "mcp__salesforce__guide_lwc_development",
      "mcp__salesforce__guide_lwc_rtl_support",
      "mcp__salesforce__orchestrate_lwc_component_creation",
      "mcp__salesforce__orchestrate_lwc_component_optimization",
      "mcp__salesforce__orchestrate_lwc_component_testing",
      "mcp__salesforce__explore_lds_uiapi",
      "mcp__salesforce__guide_lds_data_consistency",
      "mcp__salesforce__guide_lds_development",
      "mcp__salesforce__guide_lds_referential_integrity",
      "mcp__salesforce__run_lwc_accessibility_jest_tests",
      "mcp__salesforce__orchestrate_lwc_slds2_uplift",
      "mcp__salesforce__guide_lws_security",
      "mcp__salesforce__orchestrate_lds_data_requirements",
      "mcp__salesforce__guide_lds_graphql",
      "mcp__salesforce__create_lds_graphql_read_query",
      "mcp__salesforce__create_lds_graphql_mutation_query",
      "mcp__salesforce__guide_design_general",
      "mcp__salesforce__create_lightning_type",
      "mcp__salesforce__guide_utam_generation",
      "mcp__salesforce__guide_lbc_usage",
      "mcp__salesforce__explore_lbc_components",
      "mcp__salesforce__explore_slds_blueprints",
      "mcp__salesforce__guide_slds_blueprints",
      "mcp__salesforce__explore_slds_styling",
      "mcp__salesforce__guide_slds_styling",
      "mcp__salesforce__reference_lwc_compilation_error",
      "mcp__salesforce__guide_lo_migration",
      "mcp__salesforce__list_devops_center_projects",
      "mcp__salesforce__list_devops_center_work_items",
      "mcp__salesforce__describe_code_analyzer_rule",
      "mcp__salesforce__list_code_analyzer_rules",
      "mcp__salesforce__validate_and_optimize"
    ]
  }
}

The command that adds the server:

claude mcp add salesforce -- npx -y @salesforce/mcp@0.30.15 --orgs my-sandbox --toolsets orgs,data,metadata --no-telemetry

Send the rest to a person, not the terminal

A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "mcp__salesforce__(?!(get_username|list_all_orgs|get_mobile_lwc_offline_analysis|get_mobile_lwc_offline_guidance|create_mobile_lwc_app_review|create_mobile_lwc_ar_space_capture|create_mobile_lwc_barcode_scanner|create_mobile_lwc_biometrics|create_mobile_lwc_calendar|create_mobile_lwc_contacts|create_mobile_lwc_document_scanner|create_mobile_lwc_geofencing|create_mobile_lwc_location|create_mobile_lwc_nfc|create_mobile_lwc_payments|transition_prd_to_lwc|verify_aura_migration_completeness|guide_figma_to_lwc_conversion|create_lwc_component_from_prd|guide_component_accessibility|guide_lwc_best_practices|guide_lwc_development|guide_lwc_rtl_support|orchestrate_lwc_component_creation|orchestrate_lwc_component_optimization|orchestrate_lwc_component_testing|explore_lds_uiapi|guide_lds_data_consistency|guide_lds_development|guide_lds_referential_integrity|run_lwc_accessibility_jest_tests|orchestrate_lwc_slds2_uplift|guide_lws_security|orchestrate_lds_data_requirements|guide_lds_graphql|create_lds_graphql_read_query|create_lds_graphql_mutation_query|guide_design_general|create_lightning_type|guide_utam_generation|guide_lbc_usage|explore_lbc_components|explore_slds_blueprints|guide_slds_blueprints|explore_slds_styling|guide_slds_styling|reference_lwc_compilation_error|guide_lo_migration|list_devops_center_projects|list_devops_center_work_items|describe_code_analyzer_rule|list_code_analyzer_rules|validate_and_optimize)$).*",
        "hooks": [
          { "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
        ]
      }
    ]
  }
}

Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.

Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients

The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.

claude_desktop_config.json{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp@0.30.15",
        "--orgs",
        "my-sandbox",
        "--toolsets",
        "orgs,data,metadata",
        "--no-telemetry"
      ]
    }
  }
}

Any MCP client: put the proxy in front

Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:

claude_desktop_config.json{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
        "mcp-proxy",
        "--name",
        "salesforce",
        "--look-only",
        "get_username,list_all_orgs,get_mobile_lwc_offline_analysis,get_mobile_lwc_offline_guidance,create_mobile_lwc_app_review,create_mobile_lwc_ar_space_capture,create_mobile_lwc_barcode_scanner,create_mobile_lwc_biometrics,create_mobile_lwc_calendar,create_mobile_lwc_contacts,create_mobile_lwc_document_scanner,create_mobile_lwc_geofencing,create_mobile_lwc_location,create_mobile_lwc_nfc,create_mobile_lwc_payments,transition_prd_to_lwc,verify_aura_migration_completeness,guide_figma_to_lwc_conversion,create_lwc_component_from_prd,guide_component_accessibility,guide_lwc_best_practices,guide_lwc_development,guide_lwc_rtl_support,orchestrate_lwc_component_creation,orchestrate_lwc_component_optimization,orchestrate_lwc_component_testing,explore_lds_uiapi,guide_lds_data_consistency,guide_lds_development,guide_lds_referential_integrity,run_lwc_accessibility_jest_tests,orchestrate_lwc_slds2_uplift,guide_lws_security,orchestrate_lds_data_requirements,guide_lds_graphql,create_lds_graphql_read_query,create_lds_graphql_mutation_query,guide_design_general,create_lightning_type,guide_utam_generation,guide_lbc_usage,explore_lbc_components,explore_slds_blueprints,guide_slds_blueprints,explore_slds_styling,guide_slds_styling,reference_lwc_compilation_error,guide_lo_migration,list_devops_center_projects,list_devops_center_work_items,describe_code_analyzer_rule,list_code_analyzer_rules,validate_and_optimize",
        "--",
        "npx",
        "-y",
        "@salesforce/mcp@0.30.15",
        "--orgs",
        "my-sandbox",
        "--toolsets",
        "orgs,data,metadata",
        "--no-telemetry"
      ]
    }
  }
}

Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):

npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktop

The same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__salesforce, keeps Claude Code from asking a second time in the terminal:

claude mcp add salesforce -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name salesforce --look-only get_username,list_all_orgs,get_mobile_lwc_offline_analysis,get_mobile_lwc_offline_guidance,create_mobile_lwc_app_review,create_mobile_lwc_ar_space_capture,create_mobile_lwc_barcode_scanner,create_mobile_lwc_biometrics,create_mobile_lwc_calendar,create_mobile_lwc_contacts,create_mobile_lwc_document_scanner,create_mobile_lwc_geofencing,create_mobile_lwc_location,create_mobile_lwc_nfc,create_mobile_lwc_payments,transition_prd_to_lwc,verify_aura_migration_completeness,guide_figma_to_lwc_conversion,create_lwc_component_from_prd,guide_component_accessibility,guide_lwc_best_practices,guide_lwc_development,guide_lwc_rtl_support,orchestrate_lwc_component_creation,orchestrate_lwc_component_optimization,orchestrate_lwc_component_testing,explore_lds_uiapi,guide_lds_data_consistency,guide_lds_development,guide_lds_referential_integrity,run_lwc_accessibility_jest_tests,orchestrate_lwc_slds2_uplift,guide_lws_security,orchestrate_lds_data_requirements,guide_lds_graphql,create_lds_graphql_read_query,create_lds_graphql_mutation_query,guide_design_general,create_lightning_type,guide_utam_generation,guide_lbc_usage,explore_lbc_components,explore_slds_blueprints,guide_slds_blueprints,explore_slds_styling,guide_slds_styling,reference_lwc_compilation_error,guide_lo_migration,list_devops_center_projects,list_devops_center_work_items,describe_code_analyzer_rule,list_code_analyzer_rules,validate_and_optimize -- npx -y @salesforce/mcp@0.30.15 --orgs my-sandbox --toolsets orgs,data,metadata --no-telemetry

When the agent should deploy

Keep deploy_metadata, assign_permission_set and the GraphQL test on ask, and read the directory and usernameOrAlias before you approve: they decide which org the call goes to. Claude Code’s rules match a tool’s name, never its arguments. Outside Claude Code, the VariantGate MCP proxy sends each call to a person with its arguments.

See it before you decide.

The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.