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