Skip to content
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

Deployment: Dockerfile and Smithery config #2

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
37 changes: 37 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Node.js image with the necessary version
FROM node:20-alpine AS builder

# Set the working directory
WORKDIR /app

# Copy the package.json and package-lock.json files
COPY package.json .

# Install dependencies
RUN npm install --ignore-scripts

# Copy the rest of the application code
COPY . .

# Build the TypeScript files
RUN npm run build

# Use a smaller Node.js image for production
FROM node:20-alpine AS production

# Set the working directory
WORKDIR /app

# Copy only the build files from the builder stage
COPY --from=builder /app/build /app/build

# Copy package.json and install production dependencies only
COPY --from=builder /app/package.json /app/package-lock.json ./
RUN npm ci --omit=dev

# Expose the port that the app runs on
EXPOSE 3000

# Start the application
CMD ["node", "build/index.js"]
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,20 @@

An MCP server providing Metal Framework documentation search and code generation capabilities.

[![smithery badge](https://smithery.ai/badge/metal-mcp-server)](https://smithery.ai/server/metal-mcp-server)

## One-Line Installation

### Installing via Smithery

To install Metal Framework for Claude Desktop automatically via [Smithery](https://smithery.ai/server/metal-mcp-server):

```bash
npx -y @smithery/cli install metal-mcp-server --client claude
```

### Installing manually

```bash
npx @modelcontextprotocol/create-server metal-mcp && cd metal-mcp && npm install && npm run build
```
Expand Down
12 changes: 12 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -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:'node',args:['build/index.js']})