diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fef2dd4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config +FROM node:lts-alpine AS build +WORKDIR /app + +# Install dependencies +COPY package.json package-lock.json ./ +RUN npm ci --ignore-scripts + +# Copy source and build +COPY tsconfig.json ./ +COPY src ./src +RUN npm run build + +# Production image +FROM node:lts-alpine +WORKDIR /app +ENV NODE_ENV=production + +# Copy production artifacts +COPY --from=build /app/dist ./dist +COPY package.json package-lock.json ./ + +# Install production dependencies +RUN npm ci --production --ignore-scripts + +# Start the MCP server +CMD ["node", "dist/index.js"] diff --git a/README.md b/README.md index 4b1f747..cb5ac33 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # LittleSis MCP +[![smithery badge](https://smithery.ai/badge/@code-rabi/littlesis-mcp)](https://smithery.ai/server/@code-rabi/littlesis-mcp) + Updated for release sync + +### Installing via Smithery + +To install littlesis-mcp for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@code-rabi/littlesis-mcp): + +```bash +npx -y @smithery/cli install @code-rabi/littlesis-mcp --client claude +``` diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..e4ca2c6 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,18 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +startCommand: + type: stdio + 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/index.js'], env: config.debug ? { DEBUG: '1' } : {} }) + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + properties: + debug: + type: boolean + default: false + description: Enable debug logging + exampleConfig: + debug: false