Fix: Smithery deployment issue

This commit is contained in:
IAPP-BY 2025-06-03 13:57:47 +08:00
parent 7e7896b13e
commit c877963fe1
2 changed files with 11 additions and 4 deletions

View File

@ -20,4 +20,4 @@ RUN npm run build
EXPOSE 8080
# Default command to run the MCP server with HTTP transport and Discord token
CMD ["node", "build/index.js", "--transport", "http", "--port", "8080"]
CMD node build/index.js --transport http --port 8080 --config "$DISCORD_TOKEN"

View File

@ -1,6 +1,16 @@
# Smithery configuration file: https://smithery.ai/docs/build/project-config/smithery.yaml
version: 1
runtime: "container"
build:
dockerfile: "Dockerfile" # Path to your Dockerfile
dockerBuildPath: "." # Docker build context
dockerBuildArgs:
DISCORD_TOKEN: ${discordToken}
dockerBuildEnv:
DISCORD_TOKEN: ${discordToken}
dockerRunEnv:
DISCORD_TOKEN: ${discordToken}
startCommand:
type: http
configSchema:
@ -14,6 +24,3 @@ startCommand:
description: "Discord bot token. Obtain this from the Discord Developer Portal."
exampleConfig:
discordToken: YOUR_DISCORD_BOT_TOKEN
build:
dockerfile: Dockerfile