Installation Issues
npx command fails or package not found
npx command fails or package not found
Problem: Running Update your MCP client configuration:
npx -y @ahdev/dokploy-mcp fails with package errors.Solution: Try adding @latest to ensure you’re getting the most recent version:Node.js version errors
Node.js version errors
Problem: Errors about missing Install Node.js v18 or higher:
fetch or other modern Node.js features.Solution: Dokploy MCP Server requires Node.js v18 or higher for native fetch support.Verify your Node.js version:-
Using nvm (recommended):
- Download from nodejs.org: https://nodejs.org/
Windows: Command not found or execution errors
Windows: Command not found or execution errors
Problem: MCP client can’t execute
npx on Windows.Solution: Use cmd as the command wrapper:Connection Issues
DOKPLOY_URL not set or invalid
DOKPLOY_URL not set or invalid
Problem: Server fails to start with “DOKPLOY_URL is required” or connection errors.Solution: Verify your
DOKPLOY_URL environment variable:-
Check the URL format: Must include
/apiendpoint -
Verify URL is accessible:
- Check for typos in your MCP client configuration
-
Use environment variables for easier management:
DOKPLOY_API_KEY authentication failures
DOKPLOY_API_KEY authentication failures
Problem: API requests fail with 401 Unauthorized or 403 Forbidden errors.Solution:
- Verify your API key is correct and active in your Dokploy server
- Generate a new API token from your Dokploy dashboard
-
Check environment variable is set correctly:
-
Update MCP client config with the correct key:
- Check for special characters that might need escaping in JSON
Network timeout or connection refused
Network timeout or connection refused
Problem: Unable to reach Dokploy server, timeout errors.Solution:
-
Verify Dokploy server is running:
- Check firewall rules allow outbound HTTPS connections
- Test from same network to rule out VPN or network issues
-
Verify DNS resolution:
- Check for proxy settings that might interfere with connections
Transport Mode Issues
Stdio mode not working with MCP client
Stdio mode not working with MCP client
Problem: MCP client shows connection errors or server not responding.Solution:
-
Verify stdio is the default mode (no
--httpflag) - Check MCP client logs for detailed error messages
-
Test with MCP Inspector to isolate the issue:
- Ensure no output to stdout in custom builds (use stderr for logging)
-
Try Docker stdio mode if local setup fails:
HTTP mode not accessible
HTTP mode not accessible
Problem: HTTP server starts but can’t access endpoints.Solution:
-
Verify HTTP mode is enabled:
-
Check port 3000 is not in use:
-
Test health endpoint:
- Check firewall allows port 3000
-
For Docker, verify port mapping:
Legacy SSE client compatibility
Legacy SSE client compatibility
Problem: Older MCP clients can’t connect to HTTP mode.Solution: The server supports both modern Streamable HTTP and legacy SSE protocols simultaneously.Legacy SSE endpoints are available at:
GET /sse- SSE stream initializationPOST /messages- Client message posting
POST /mcp- Client requestsGET /mcp- Server notificationsDELETE /mcp- Session termination
MCP Client Errors
Tools not appearing in MCP client
Tools not appearing in MCP client
Problem: Dokploy MCP tools don’t show up in Claude Desktop, VS Code, or other clients.Solution:
- Restart the MCP client after configuration changes
-
Check configuration file path is correct:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(Mac) - VS Code: Check VS Code MCP settings
- Cursor:
~/.cursor/mcp.json
- Claude Desktop:
-
Validate JSON syntax:
- Check client logs for connection errors
-
Test with MCP Inspector to verify tools are available:
Tool execution fails or returns errors
Tool execution fails or returns errors
Problem: Tools show up but fail when executed.Solution:
- Check API credentials are valid (see Connection Issues above)
- Verify parameters match the tool schema
- Review Dokploy server logs for API errors
- Test with MCP Inspector to see detailed error messages
- Check Dokploy permissions for the API key being used
- Verify resource exists (e.g., project ID, application ID) in Dokploy
Performance issues or timeouts
Performance issues or timeouts
Problem: Tools are slow or timing out.Solution:
- Check Dokploy server performance and load
-
Verify network latency to Dokploy server:
-
For Docker HTTP mode, check container resources:
- Increase timeout in MCP client configuration if available
- Check for rate limiting on Dokploy API
Docker-Specific Issues
Docker image build failures
Docker image build failures
Problem:
docker build fails during compilation.Solution:-
Ensure Docker is up to date:
-
Clear Docker build cache:
-
Check disk space:
-
Verify repository is cloned correctly:
Health check failures in Docker
Health check failures in Docker
Problem: Container shows unhealthy status.Solution:
-
Check health endpoint manually:
-
View health check logs:
-
Ensure HTTP mode is enabled:
-
Check container logs for startup errors:
- Health check only runs in HTTP mode - stdio containers always return healthy
Docker Compose environment variables not loading
Docker Compose environment variables not loading
Problem: Environment variables from
.env file not being used.Solution:-
Verify
.envfile location (same directory asdocker-compose.yml) -
Check
.envfile format: -
No quotes needed for simple values in
.env -
Recreate containers after
.envchanges: -
Verify environment variables are loaded:
Development Issues
TypeScript compilation errors
TypeScript compilation errors
Problem:
npm run build fails with type errors.Solution:-
Run type check for detailed errors:
-
Ensure dependencies are installed:
-
Check TypeScript version matches project requirements:
-
Clean and rebuild:
ESLint or formatting errors
ESLint or formatting errors
Problem: Pre-commit checks fail with linting errors.Solution:
-
Auto-fix linting issues:
-
Auto-format code:
-
Run all pre-commit checks:
Verification Commands
Use these commands to verify your setup:Getting Help
Report an issue
If you encounter a bug or issue not covered here, please open an issue on GitHub with:
- Detailed description of the problem
- Steps to reproduce
- Environment information (OS, Node.js version, MCP client)
- Relevant error messages or logs
Read the documentation
- Tools Reference - Complete tool documentation
- TOOLS.md - Detailed tool schemas
- CONTRIBUTING.md - Contributing guidelines
Next Steps
- Review Installation guides for your specific MCP client
- Learn about Docker deployment for production
- Set up Local development environment
- Explore all 67 available tools