mcp-adb/Dockerfile
Ryan Malloy db6998510c Initial commit: Android ADB MCP Server
- FastMCP server with STDIO interface
- Comprehensive ADB tools for device automation
- Docker support with USB device access
- Console script entry point for uvx compatibility
- Type-safe Pydantic models for all parameters

Tools included:
- adb_devices: List connected Android devices
- adb_screenshot: Capture and retrieve screenshots
- adb_input: Send taps, swipes, key events, text
- adb_launch_app: Launch apps by package name
- adb_launch_url: Open URLs in browser
- adb_list_packages: List installed packages
- adb_shell_command: Execute shell commands

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 11:56:14 -06:00

28 lines
572 B
Docker

FROM python:3.11-slim
# Install system dependencies including ADB
RUN apt-get update && apt-get install -y \
android-tools-adb \
android-tools-fastboot \
usbutils \
&& rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Set working directory
WORKDIR /app
# Copy project files
COPY pyproject.toml uv.lock* ./
# Install dependencies
RUN uv sync --frozen
# Copy source code
COPY src/ ./src/
# Expose ADB server port (optional, mainly for debugging)
EXPOSE 5037
CMD ["uv", "run", "python", "-m", "src.server"]