Skip to main content
Glama

MCP Reminder Service

by xiaohui
Dockerfile1.31 kB
# 使用官方 Python 3.11 镜像 FROM python:3.11-slim # 设置标签 LABEL maintainer="MCP Reminder Service <mcp-reminder@example.com>" LABEL description="基于 Model Context Protocol 的消息发送和定时提醒服务" LABEL version="3.0.0" # 设置环境变量 ENV PYTHONPATH=/app ENV PYTHONUNBUFFERED=1 ENV PYTHONDONTWRITEBYTECODE=1 ENV PIP_NO_CACHE_DIR=1 ENV PIP_DISABLE_PIP_VERSION_CHECK=1 ENV TZ=Asia/Shanghai # 创建非 root 用户 RUN groupadd -r mcpuser && useradd -r -g mcpuser mcpuser # 设置工作目录 WORKDIR /app # 设置时区 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # 安装系统依赖 RUN apt-get update && apt-get install -y \ gcc \ curl \ && rm -rf /var/lib/apt/lists/* \ && apt-get clean # 复制依赖文件 COPY requirements.txt . # 安装 Python 依赖 RUN pip install --no-cache-dir -r requirements.txt # 复制应用代码 COPY mcp_reminder/ ./mcp_reminder/ COPY main.py . COPY healthcheck.py . # 创建必要的目录 RUN mkdir -p logs && \ chown -R mcpuser:mcpuser /app # 切换到非 root 用户 USER mcpuser # 暴露端口 EXPOSE 8000 # 健康检查 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD python healthcheck.py # 设置启动命令 CMD ["python", "main.py"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiaohui/mcp_reminder'

If you have feedback or need assistance with the MCP directory API, please join our Discord server