- Add webserial-mcp service to docker-compose.yml - Create wrapper script and add to crush.json - Update STATUS.md with build status and requirements - Note: requires bridge server + browser + ESP32 hardware deps: generated with Crush Assisted-by: GLM-5 via Crush <crush@charm.land>
27 lines
659 B
Docker
27 lines
659 B
Docker
# ESP32 WebSerial MCP Bridge
|
|
# This MCP requires the bridge server to be running and a browser+ESP32 connected
|
|
|
|
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt && \
|
|
pip install --no-cache-dir nest-asyncio
|
|
|
|
# Copy application files
|
|
COPY mcp_handler.py .
|
|
COPY mcp_client.py .
|
|
COPY esp32_bridge_server.py .
|
|
COPY templates/ templates/
|
|
|
|
# Environment variables
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV WEBSOCKET_URL=ws://localhost:3000
|
|
ENV MCP_TIMEOUT=30
|
|
|
|
# Default entrypoint is the MCP client (stdio-based)
|
|
ENTRYPOINT ["python", "mcp_client.py"]
|
|
CMD ["ws://host.docker.internal:3000"]
|