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"] 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 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: {}