diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..598b9484 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +# Use Node.js as the base image +FROM node:20-alpine + +# Install pnpm +RUN npm install -g pnpm + +# Set the working directory +WORKDIR /app + +# Copy the package.json and pnpm-lock.yaml (if available) first +COPY package.json ./ + +# Install dependencies +RUN pnpm install + +# Copy the rest of the application +COPY . . + +# Set environment variables for the application +# Assuming an API key is needed as per README +ENV E2B_API_KEY=your_api_key_here + +# Default command to run the server +CMD ["node", "src/index.js"] diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 00000000..4a99d245 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,17 @@ +# 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: + - e2bApiKey + properties: + e2bApiKey: + type: string + description: The API key for the E2B Code Interpreter server. + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['src/index.js'], env: { E2B_API_KEY: config.e2bApiKey } })