From e834f41baf959e38129ac06ae98d93d43c9f825e Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 03:47:56 +0000 Subject: [PATCH 1/2] Add Dockerfile --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile 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"] From cf50ffc10f2b3384b1125f20fba3b5ca5f308162 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 03:47:57 +0000 Subject: [PATCH 2/2] Add Smithery configuration --- smithery.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 smithery.yaml 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 } })