diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8c36c78 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config +# Dockerfile for B12 website generator MCP server +FROM node:lts-alpine AS builder + +# set working directory +WORKDIR /app + +# install dependencies and build +COPY package.json package-lock.json tsconfig.json ./ +COPY src ./src +RUN npm ci && npm run build + +# production image +FROM node:lts-alpine +WORKDIR /app + +# copy built artifacts and dependencies +COPY --from=builder /app/package.json ./package.json +COPY --from=builder /app/package-lock.json ./package-lock.json +COPY --from=builder /app/dist ./dist + +# install only production dependencies +RUN npm ci --production + +# expose stdio by default +ENTRYPOINT ["node", "dist/server.js"] diff --git a/README.md b/README.md index 37af5c5..cf48812 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,22 @@ # @b12/website-generator-mcp-server B12's model context protocol server for generating websites with AI +[![smithery badge](https://smithery.ai/badge/@b12io/website-generator-mcp-server)](https://smithery.ai/server/@b12io/website-generator-mcp-server) + Website Generator MCP server ## Usage with Claude Desktop +### Installing via Smithery + +To install Website Generator for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@b12io/website-generator-mcp-server): + +```bash +npx -y @smithery/cli install @b12io/website-generator-mcp-server --client claude +``` + ### Prerequisites - NodeJS @@ -26,4 +36,4 @@ To use this server with the Claude Desktop app, add the following configuration } } ``` -**** \ No newline at end of file +**** diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..301d64b --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,14 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + default: {} + description: No configuration needed to start the B12 website generator MCP server + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['dist/server.js'] }) + exampleConfig: {}