.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DISCORD_TOKEN
secret
ALLOWED_GUILDS
ALLOWED_CHANNELS
API_HOST
API_PORT
PUBLIC_DOMAIN
DISCORD_CLIENT_ID
Discord OAuth (optional for full OAuth login flow) Get these from https://discord.com/developers/applications
DISCORD_CLIENT_SECRET
secret
OAUTH_TOKEN_EXPIRY_HOURS
secret
OAuth token settings
OAUTH_REFRESH_TOKEN_EXPIRY_DAYS
secret
OAUTH_CODE_EXPIRY_MINUTES
brew install flyctl && fly launch --from https://github.com/bentlybro/discord-mcp-bot
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/bentlybro/discord-mcp-bot
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/bentlybro/discord-mcp-bot