# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Python image
FROM python:3.12-slim
# Set the working directory
WORKDIR /app
# Copy pyproject.toml and uv.lock to the working directory
COPY pyproject.toml uv.lock /app/
# Install the project's dependencies using a package manager that understands pyproject.toml
RUN pip install --no-cache-dir hatchling && hatch build && pip install --no-cache-dir dist/*.whl
# Copy the source files to the container
COPY src/dify_mcp_server /app/src/dify_mcp_server
# Set environment variables, you should provide CONFIG_PATH during container run
ENV DIFY_BASE_URL="https://cloud.dify.ai/v1"
ENV DIFY_APP_SKS="app-sk1,app-sk2"
# ENV CONFIG_PATH=/path/to/config.yaml
# Set the entrypoint
ENTRYPOINT ["dify_mcp_server"]
# The command to run the server
CMD ["run"]
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/YanxingLiu/dify-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server