Skip to content

Dropins AI tools

The AI tools for drop-ins are distributed as the @dropins/ai-tools npm package. They provide a tool server for Cursor, VS Code, Claude Code, and Claude Desktop. They index drop-in source code — both B2C and B2B — so your AI editor gets current slots, events, containers, API functions, and design tokens, instead of relying on outdated training data.

Before installing the AI tools for drop-ins, make sure you have the following:

Configure the AI tools for drop-ins in your editor and verify the connection.

  1. Add the server to your editor configuration. Open the tab for your editor and paste the snippet into the config file shown. If you use the Claude Code extension in VS Code, choose the Claude Code tab, rather than VS Code (Copilot), which is for VS Code’s built-in tool-server support through GitHub Copilot.

    Add to ~/.cursor/mcp.json for all projects, or .cursor/mcp.json inside a specific project:

    {
    "mcpServers": {
    "dropins": {
    "command": "npx",
    "args": ["--yes", "@dropins/ai-tools"]
    }
    }
    }
  2. Restart your editor. When the server loads, dropins appears in your editor’s tool server list.

  3. Verify the connection. Ask your AI editor:

“Use the AI tools for drop-ins — what slots does the CartSummaryList container have?”

If your AI editor returns a list of slot names with context types, the AI tools for drop-ins are connected and working.

If dropins doesn’t appear in your editor’s tool server list, or your editor can’t answer the question, open your editor’s tool server logs and confirm that npx --yes @dropins/ai-tools runs without errors in a terminal outside the editor.

The AI tools for drop-ins work best when you ask specific questions about your project. For example:

  • “What events does the checkout drop-in emit when a payment method is selected?”
  • “Create a block that combines CartSummaryList and OrderConfirmation”
  • “Are there any stale containers or removed APIs in my commerce-cart block?”
  • “What GraphQL mutation does checkout use to place an order?”
  • “Generate a slot implementation that adds a loyalty points badge next to the cart line item price”
  • “Am I using the latest drop-in versions?”
  • “What CSS design tokens control button colors?”

The search_commerce_docs tool searches Adobe Commerce documentation on Adobe’s servers using the Adobe I/O command-line interface (CLI). Without it, the AI tools for drop-ins still answer drop-in questions using search_docs, which searches a local copy of the documentation included with the server.

To sign in and enable remote documentation search, install the Adobe I/O CLI and log in once:

Terminal window
npm install -g @adobe/aio-cli
aio auth login