Back to Home
codingsasi icon

ddev-mcp

by codingsasi

Overview

Provides AI assistants with DDEV development environment automation for various web projects, managing environments, databases, and executing commands.

Installation

Run Command
npx ddev-mcp

Environment Variables

  • DDEV_MCP_LOG_LEVEL
  • ALLOW_DANGEROUS_COMMANDS
  • DDEV_MCP_TOOL_TIMEOUT
  • DDEV_PROJECT_PATH

Security Notes

The server's primary tool, `ddev_exec`, directly executes arbitrary shell commands provided by AI input within the DDEV container. While a 'Dangerous Command Protection' feature is implemented using regex patterns, blacklisting is inherently vulnerable to bypass. There is no explicit shell escaping or robust whitelisting for the `command` argument before it's passed to `child_process.exec`. This poses a significant command injection risk if the AI-generated input is not strictly validated and sanitized by an external client or if a malicious prompt bypasses the regex filters, allowing execution of arbitrary code on the host system. The `sanitizeCommand` and `sanitizeOptions` functions are for logging purposes only, not for preventing injection into the execution itself. Running with `ALLOW_DANGEROUS_COMMANDS=true` escalates this risk further.

Similar Servers

Stats

Interest Score36
Security Score4
Cost ClassLow
Stars7
Forks0
Last Update2026-01-09

Tags

mcpddevai-assistantdevelopment-automationtypescript