From 9ba5637ce50f22740d21823dc373e49ef80cb271 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Fri, 31 Jan 2025 10:01:52 +0800 Subject: [PATCH 1/2] Add Dockerfile --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0de85ec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +# Start with a Python base image +FROM python:3.11-slim-bookworm + +# Set the working directory +WORKDIR /app + +# Install system dependencies +RUN apt-get update && \ + apt-get install -y texlive-xetex pandoc && \ + rm -rf /var/lib/apt/lists/* + +# Copy the application files +COPY . . + +# Install the Python dependencies +RUN pip install --no-cache-dir . + +# Set the environment variables +ENV UV_COMPILE_BYTECODE=1 +ENV UV_LINK_MODE=copy + +# Run the MCP server +ENTRYPOINT ["uv", "run", "mcp-pandoc"] From 1717a82ffc31ffa00fde288726a0361312e4b515 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Fri, 31 Jan 2025 10:01:53 +0800 Subject: [PATCH 2/2] Add Smithery configuration --- smithery.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..9b9b230 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,12 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + properties: {} + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + () => ({command: 'uv', args: ['run', 'mcp-pandoc']})