From c37e55d5f59f44e81ae861437e27c58bc14f7f49 Mon Sep 17 00:00:00 2001 From: IAPP-BY Date: Tue, 10 Jun 2025 15:01:06 +0800 Subject: [PATCH] Fixing Tool Scan issues --- Dockerfile | 7 ++----- smithery.yaml | 11 ++++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1507fc4..935fc06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ WORKDIR /app # Copy package files COPY package.json package-lock.json ./ -# Install dependencies -RUN npm ci +# Install dependencies without running scripts +RUN npm install --ignore-scripts # Copy source code COPY . . @@ -16,9 +16,6 @@ COPY . . # Build the TypeScript code RUN npm run build -# Set environment variable for Discord token -ENV DISCORD_TOKEN="" - # Expose HTTP port EXPOSE 8080 diff --git a/smithery.yaml b/smithery.yaml index d5efa95..e1bc672 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -1,3 +1,6 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config/smithery.yaml + +version: 1 startCommand: type: http configSchema: @@ -7,4 +10,10 @@ startCommand: properties: discordToken: type: string - description: "The bot token for Discord integration." \ No newline at end of file + title: "Discord Bot Token" + description: "Discord bot token. Obtain this from the Discord Developer Portal." + exampleConfig: + discordToken: YOUR_DISCORD_BOT_TOKEN + +build: + dockerfile: Dockerfile \ No newline at end of file