A DDEV add-on that integrates Claude Code with Serena MCP for Drupal 11 development.
- Claude Code running inside your DDEV web container
- Serena MCP for semantic code analysis and intelligent editing
- Drupal 11 optimized with pre-configured CLAUDE.md and Serena memories
- Security rules preventing dangerous operations on core/vendor files
- Pre-configured settings with extended thinking and stable updates
- DDEV v1.24.3+
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
claudeInside Claude Code, you have access to:
- Serena tools for code search, symbol navigation, and refactoring
- Drupal memories with coding standards, Drush commands, and best practices
- Context7 for up-to-date library documentation
config.drupal-claude-code.yaml- Post-start hooks that configure Claude Code.ddev/.claude/- Symlinked to~/.claudefor persisting Claude Code runtime data
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
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 gates
CLAUDE.md- Project-specific instructions for Claude Code.claudeignore- Excludes vendor, node_modules, and generated files from context
After 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