diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..90fece0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM node:lts-alpine + +# Install build dependencies for native modules +RUN apk add --no-cache python3 make g++ + +WORKDIR /app + +# Copy dependency manifests +COPY package.json bun.lock esbuild.js tsconfig.json ./ +COPY src ./src +COPY schemas ./schemas +COPY resources ./resources +COPY snippets ./snippets +COPY esbuild.js . + +# Install dependencies without running any prepare scripts +RUN npm install --ignore-scripts --legacy-peer-deps + +# Build the extension and MCP server +RUN npm run compile + +# Expose any needed ports (the server fetches http on localhost:50001 via remote DB service) +EXPOSE 50001 + +# Default command to run MCP server +CMD ["node", "dist/services/mcp/server.js"] diff --git a/README.md b/README.md index 7ca2e11..8606731 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ VS Code Marketplace Installs VS Code Marketplace Rating Sponsor + Smithery Badge

diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..c5add9f --- /dev/null +++ b/smithery.yaml @@ -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 + 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/services/mcp/server.js'] }) + exampleConfig: {}