A DDEV add-on that integrates Claude Code with Serena MCP for Drupal 11 development.
ddev add-on get lexsoft00/ddev-drupal-claude-code
ddev restart
# 1. Enter the DDEV container
ddev ssh
# 2. Start Claude Code (first run - login and configure)
claude
# 3. Exit Claude Code (/exit or Ctrl+C)
# 4. Add Serena MCP
claude mcp add serena -- uvx --from git+https://github.com/oraios/serena serena start-mcp-server --context ide-assistant --project "$(pwd)"
# 5. (Optional) Index your project for faster code navigation
uvx --from git+https://github.com/oraios/serena serena project index
# 6. Start Claude Code with Serena
claude
Inside Claude Code, you have access to:
config.drupal-claude-code.yaml - Post-start hooks that configure Claude Code.ddev/.claude/ - Symlinked to ~/.claude for persisting Claude Code runtime data.ddev/drupal-claude-code/)settings.json - Extended thinking, stable updates, and statuslinesettings.local.json - Permission rules protecting core/vendor from editsstatusline.sh - Status bar showing git branch and Drupal info.ddev/drupal-claude-code/serena/)project.yml - Project settings for PHP/TypeScript analysismemories/ - Drupal knowledge bases:
project-overview.md - Project structure and patternscode-style-conventions.md - Drupal coding standardscommands-reference.md - Drush and CLI commandsarchitecture-patterns.md - Drupal best practicessecurity-guidelines.md - Security checklisttask-completion-checklist.md - Quality gatesCLAUDE.md - Project-specific instructions for Claude Code.claudeignore - Excludes vendor, node_modules, and generated files from contextAfter starting Claude Code, install these recommended plugins using /plugin:
| Plugin | Description | Install Command |
|---|---|---|
| context7 | Up-to-date library documentation | /plugin install context7@claude-plugins-official |
| security-guidance | Security best practices | /plugin install security-guidance@claude-plugins-official |
| code-simplifier | Code refactoring assistance | /plugin install code-simplifier@claude-plugins-official |
| frontend-design | Frontend/UI development | /plugin install frontend-design@claude-plugins-official |
Or browse all available plugins interactively:
/plugin
# Navigate to "Discover" tab and install with Enter