From f4ac68c6c766a78c9ed48fe8bed9ace8244c0318 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Sun, 23 Mar 2025 11:11:25 +0000 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b815139 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM python:3.10-slim + +# Set working directory +WORKDIR /app + +# Copy the project files +COPY . /app + +# Install build dependencies +RUN pip install --upgrade pip \ + && pip install --no-cache-dir hatchling + +# Install project dependencies +RUN pip install --no-cache-dir . + +# Expose a port if needed (optional) +# ENV PORT=8000 + +# Command to start the MCP server +CMD ["python", "-m", "mcp_server_calculator"] From 59440baa4002a53c826eb23de7ed4889985adef3 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Sun, 23 Mar 2025 11:11:25 +0000 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..6fe64a6 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,15 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + {} + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ + command: 'python', + args: ['-m', 'mcp_server_calculator'] + }) + exampleConfig: {} From 67f7a6a2138f0dae8d4a2afb5fb6f89960f7c397 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Sun, 23 Mar 2025 11:11:26 +0000 Subject: [PATCH 3/3] Update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index dfa4a5e..43adff7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Calculator MCP Server +[![smithery badge](https://smithery.ai/badge/@githejie/mcp-server-calculator)](https://smithery.ai/server/@githejie/mcp-server-calculator) A Model Context Protocol server for calculating. This server enables LLMs to use calculator for precise numerical calculations. @@ -9,6 +10,14 @@ A Model Context Protocol server for calculating. This server enables LLMs to use ## Installation +### Installing via Smithery + +To install Calculator MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@githejie/mcp-server-calculator): + +```bash +npx -y @smithery/cli install @githejie/mcp-server-calculator --client claude +``` + ### Using uv (recommended) When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will