Fix: Smithery deployment issue
This commit is contained in:
parent
7e7896b13e
commit
c877963fe1
|
@ -20,4 +20,4 @@ RUN npm run build
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# Default command to run the MCP server with HTTP transport and Discord token
|
# 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"
|
|
@ -1,6 +1,16 @@
|
||||||
# Smithery configuration file: https://smithery.ai/docs/build/project-config/smithery.yaml
|
# Smithery configuration file: https://smithery.ai/docs/build/project-config/smithery.yaml
|
||||||
|
|
||||||
version: 1
|
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:
|
startCommand:
|
||||||
type: http
|
type: http
|
||||||
configSchema:
|
configSchema:
|
||||||
|
@ -14,6 +24,3 @@ startCommand:
|
||||||
description: "Discord bot token. Obtain this from the Discord Developer Portal."
|
description: "Discord bot token. Obtain this from the Discord Developer Portal."
|
||||||
exampleConfig:
|
exampleConfig:
|
||||||
discordToken: YOUR_DISCORD_BOT_TOKEN
|
discordToken: YOUR_DISCORD_BOT_TOKEN
|
||||||
|
|
||||||
build:
|
|
||||||
dockerfile: Dockerfile
|
|
Loading…
Reference in New Issue