Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/arustydev_dotfiles.json
T

1 line
6.9 KiB
JSON

{"repo": "arustydev/dotfiles", "files": {"tools/infra/docker/files/multi-agent-system.dockerfile": {"1c49c7f6d23a631bf98bcc1a564dee25f6769713": {"t": 1785747002.454807, "n": 3263, "h": "4fb0927c41483838", "c": "# =============================================================================\n# MAS Sequential Thinking MCP Server - Streamable HTTP\n# =============================================================================\n# Wraps FradSer/mcp-server-mas-sequential-thinking with supergateway to provide\n# Streamable HTTP transport. Multi-Agent System with 6 specialized agents for\n# parallel problem-solving from multiple perspectives.\n#\n# Build:\n# docker build -f multi-agent-system.dockerfile -t multi-agent-system-mcp:http .\n#\n# Run:\n# docker run -p 8080:8080 \\\n# -e LLM_PROVIDER=deepseek \\\n# -e DEEPSEEK_API_KEY=your_key \\\n# multi-agent-system-mcp:http\n#\n# Source: https://github.com/FradSer/mcp-server-mas-sequential-thinking\n# =============================================================================\n\n# -----------------------------------------------------------------------------\n# Stage 1: Build the Python MCP server\n# -----------------------------------------------------------------------------\nFROM python:3.10-slim AS builder\n\nWORKDIR /build\n\n# Install build dependencies\nRUN apt-get update && apt-get install -y --no-install-recommends \\\n git \\\n gcc \\\n libffi-dev \\\n && rm -rf /var/lib/apt/lists/*\n\n# Clone the repository\nRUN git clone --depth 1 https://github.com/FradSer/mcp-server-mas-sequential-thinking.git .\n\n# Install uv for faster dependency resolution\nRUN pip install --no-cache-dir uv\n\n# Create virtual environment and install dependencies\nRUN uv venv /opt/venv\nENV PATH=\"/opt/venv/bin:$PATH\"\nRUN uv pip install hatchling && uv pip install .\n\n# -----------------------------------------------------------------------------\n# Stage 2: Runtime image with supergateway\n# -----------------------------------------------------------------------------\nFROM python:3.10-slim\n\n# Build Arguments\nARG PORT=8080\nARG MCP_PATH=/mcp\nARG SESSION_TIMEOUT=120000\n\n# Environment Variables (can be overridden at runtime)\nENV PORT=${PORT}\nENV MCP_PATH=${MCP_PATH}\nENV SESSION_TIMEOUT=${SESSION_TIMEOUT}\nENV PYTHONDONTWRITEBYTECODE=1\nENV PYTHONUNBUFFERED=1\n\n# Copy virtual environment from builder\nCOPY --from=builder /opt/venv /opt/venv\nENV PATH=\"/opt/venv/bin:$PATH\"\n\n# Install Node.js for supergateway\nRUN apt-get update && apt-get install -y --no-install-recommends \\\n nodejs \\\n npm \\\n && rm -rf /var/lib/apt/lists/*\n\n# Install supergateway globally\nRUN npm install -g supergateway\n\n# Create data directory for persistent storage\nRUN mkdir -p /data/mas_sequential_thinking\nENV DATABASE_URL=\"sqlite:///data/mas_sequential_thinking/sessions.db\"\n\nWORKDIR /app\n\n# Expose the configured port\nEXPOSE ${PORT}\n\n# Health check - verify supergateway is listening\nHEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \\\n CMD node -e \"require('net').connect(${PORT}, 'localhost').on('error', () => process.exit(1)).on('connect', () => process.exit(0))\"\n\n# Run supergateway wrapping the MAS sequential thinking server\n# Note: Longer session timeout due to multi-agent parallel processing\nCMD supergateway \\\n --stdio \"mcp-server-mas-sequential-thinking\" \\\n --outputTransport streamableHttp \\\n --port ${PORT} \\\n --streamableHttpPath ${MCP_PATH} \\\n --stateful \\\n --sessionTimeout ${SESSION_TIMEOUT}\n"}, "af3606f927de16bded39b40145743e3d2d4d483e": {"t": 1785769733.9504614, "n": 3263, "h": "4fb0927c41483838", "c": "# =============================================================================\n# MAS Sequential Thinking MCP Server - Streamable HTTP\n# =============================================================================\n# Wraps FradSer/mcp-server-mas-sequential-thinking with supergateway to provide\n# Streamable HTTP transport. Multi-Agent System with 6 specialized agents for\n# parallel problem-solving from multiple perspectives.\n#\n# Build:\n# docker build -f multi-agent-system.dockerfile -t multi-agent-system-mcp:http .\n#\n# Run:\n# docker run -p 8080:8080 \\\n# -e LLM_PROVIDER=deepseek \\\n# -e DEEPSEEK_API_KEY=your_key \\\n# multi-agent-system-mcp:http\n#\n# Source: https://github.com/FradSer/mcp-server-mas-sequential-thinking\n# =============================================================================\n\n# -----------------------------------------------------------------------------\n# Stage 1: Build the Python MCP server\n# -----------------------------------------------------------------------------\nFROM python:3.10-slim AS builder\n\nWORKDIR /build\n\n# Install build dependencies\nRUN apt-get update && apt-get install -y --no-install-recommends \\\n git \\\n gcc \\\n libffi-dev \\\n && rm -rf /var/lib/apt/lists/*\n\n# Clone the repository\nRUN git clone --depth 1 https://github.com/FradSer/mcp-server-mas-sequential-thinking.git .\n\n# Install uv for faster dependency resolution\nRUN pip install --no-cache-dir uv\n\n# Create virtual environment and install dependencies\nRUN uv venv /opt/venv\nENV PATH=\"/opt/venv/bin:$PATH\"\nRUN uv pip install hatchling && uv pip install .\n\n# -----------------------------------------------------------------------------\n# Stage 2: Runtime image with supergateway\n# -----------------------------------------------------------------------------\nFROM python:3.10-slim\n\n# Build Arguments\nARG PORT=8080\nARG MCP_PATH=/mcp\nARG SESSION_TIMEOUT=120000\n\n# Environment Variables (can be overridden at runtime)\nENV PORT=${PORT}\nENV MCP_PATH=${MCP_PATH}\nENV SESSION_TIMEOUT=${SESSION_TIMEOUT}\nENV PYTHONDONTWRITEBYTECODE=1\nENV PYTHONUNBUFFERED=1\n\n# Copy virtual environment from builder\nCOPY --from=builder /opt/venv /opt/venv\nENV PATH=\"/opt/venv/bin:$PATH\"\n\n# Install Node.js for supergateway\nRUN apt-get update && apt-get install -y --no-install-recommends \\\n nodejs \\\n npm \\\n && rm -rf /var/lib/apt/lists/*\n\n# Install supergateway globally\nRUN npm install -g supergateway\n\n# Create data directory for persistent storage\nRUN mkdir -p /data/mas_sequential_thinking\nENV DATABASE_URL=\"sqlite:///data/mas_sequential_thinking/sessions.db\"\n\nWORKDIR /app\n\n# Expose the configured port\nEXPOSE ${PORT}\n\n# Health check - verify supergateway is listening\nHEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \\\n CMD node -e \"require('net').connect(${PORT}, 'localhost').on('error', () => process.exit(1)).on('connect', () => process.exit(0))\"\n\n# Run supergateway wrapping the MAS sequential thinking server\n# Note: Longer session timeout due to multi-agent parallel processing\nCMD supergateway \\\n --stdio \"mcp-server-mas-sequential-thinking\" \\\n --outputTransport streamableHttp \\\n --port ${PORT} \\\n --streamableHttpPath ${MCP_PATH} \\\n --stateful \\\n --sessionTimeout ${SESSION_TIMEOUT}\n"}}}}