# Shopware Plugin MCP Tools

**MCP Tools** (Model Context Protocol) provide AI assistants with structured access to Shopware project information like extension context and extension inventory.

### Enabling MCP Server

To use MCP tools, enable the built-in MCP Server in IntelliJ IDEA / PhpStorm:

1. Go to **Settings | Tools | MCP Server**
2. Click **Enable MCP Server**
3. In **Clients Auto-Configuration**, click **Auto-Configure** for each client you want to set up

For more details, see the [official documentation](https://www.jetbrains.com/help/idea/mcp-server.html).

---

## Shopware context MCP tool

**Feature ID:** `ShopwareContextMcpToolset`  
**Feature Page:** [Shopware context MCP tool](https://espend.de/phpstorm/plugin/shopware#shopware-context-mcp-toolset)  

Lists indexed Shopware project context as CSV for Administration components, routes, mixins, snippets, icons, feature flags, theme config, and system config.

### Code Examples

```json
# Tool examples:
{ "type": "admin_component", "search": "sw-page" }
{ "type": "snippet", "search": "checkout" }
{ "type": "system_config", "search": "SwagBasicExample" }
```

---

## Shopware extension inventory MCP tool

**Feature ID:** `ShopwareExtensionInventoryMcpToolset`  
**Feature Page:** [Shopware extension inventory MCP tool](https://espend.de/phpstorm/plugin/shopware#shopware-extension-inventory-mcp-toolset)  

Lists plugins and apps found in the opened shop project from Composer metadata and app manifests, including local, root, and Composer-managed extensions.

### Code Examples

```csv
# Returned CSV columns:
kind,identifier,name,composerName,baseClass,version,managedByComposer,relation,filePath,rootPath,metadata
```

---

