Skip to content

Deployment: Dockerfile and Smithery config #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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
Expand Down
15 changes: 15 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -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: {}