From 29483764cdfa1a8827321864c3c6663387f60f8a Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Wed, 12 Feb 2025 20:02:10 +0800 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..34cf5cd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +# Use Node.js 18 as the base image for building +FROM node:18-alpine AS builder + +# Set the working directory +WORKDIR /app + +# Copy package files and install dependencies +COPY package.json package-lock.json ./ +RUN npm install + +# Copy the source code into the container +COPY . . + +# Build the TypeScript code +RUN npm run build + +# Use a smaller Node.js image to run the application +FROM node:18-alpine AS runner + +# Set the working directory +WORKDIR /app + +# Copy the built files and node_modules from the builder stage +COPY --from=builder /app/dist ./dist +COPY --from=builder /app/node_modules ./node_modules + +# Expose any necessary ports (if applicable, not specified in the README) +# EXPOSE 3000 + +# Set the command to run the application +ENTRYPOINT ["node", "dist/index.js"] From aa7fd60556508cf44ecc4d624e1840d3ccbd3934 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Wed, 12 Feb 2025 20:02:10 +0800 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..4188e7a --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,13 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: [] + properties: {} + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + config => ({ command: 'npx', args: ['architect-test-mcp-tool'], env: {} }) From a068119feae14a5db9dbf25e8448e4c1e8251467 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Wed, 12 Feb 2025 20:02:11 +0800 Subject: [PATCH 3/3] Update README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index af383e4..4804b65 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # MCP Server Template +[![smithery badge](https://smithery.ai/badge/@stevennevins/architect-mcp-server)](https://smithery.ai/server/@stevennevins/architect-mcp-server) + ## Prerequisites ### LLM CLI Installation