Skip to content

Commit 50066c0

Browse files
committed
docs: require admin permissions and all gateway intents
- Update bot setup to require Administrator permission - Enable all Privileged Gateway Intents (Presence, Members, Message Content) - Update troubleshooting section with admin permission guidance - Clarify OAuth2 URL generation steps
1 parent 8497448 commit 50066c0

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,17 @@ An MCP (Model Context Protocol) server for automating Discord server setup using
3434

3535
1. Create an application at https://discord.com/developers/applications
3636
2. Add a bot user and copy the bot token
37-
3. Enable **SERVER MEMBERS INTENT** in bot settings (Bot → Privileged Gateway Intents)
38-
4. Generate an OAuth2 invite URL with required permissions:
39-
- Manage Server
40-
- Manage Roles
41-
- Manage Channels
42-
- View Channels
43-
5. Invite the bot to your Discord server(s)
44-
45-
See [docs/BOT_SETUP.md](docs/BOT_SETUP.md) for detailed instructions.
37+
3. Enable **ALL Privileged Gateway Intents** in bot settings (Bot → Privileged Gateway Intents):
38+
- Presence Intent
39+
- Server Members Intent
40+
- Message Content Intent
41+
4. Generate an OAuth2 invite URL:
42+
- Go to OAuth2 → URL Generator
43+
- Select scopes: `bot` and `applications.commands`
44+
- Select **Administrator** permission (required for full server management)
45+
5. Invite the bot to your Discord server(s) using the generated URL
46+
47+
**Important**: The bot requires Administrator permission to manage all server settings, roles, channels, and permissions without restrictions.
4648

4749
## Installation
4850

@@ -426,18 +428,18 @@ Reorder roles so Admin is highest, then Moderator, then Member, then @everyone
426428

427429
### Bot Not Connecting
428430
- Verify bot token is correct
429-
- Check that SERVER MEMBERS INTENT is enabled in Discord Developer Portal
431+
- Check that **ALL Privileged Gateway Intents** are enabled in Discord Developer Portal
430432
- Ensure the bot user is created (not just the application)
431433

432434
### Can't Manage Roles/Channels
433-
- Bot's role must be higher than roles it manages
434-
- Check bot has required permissions in server settings
435-
- Verify the bot was invited with correct OAuth2 scopes
435+
- Ensure bot has **Administrator** permission
436+
- Bot's role must be higher than roles it manages (drag bot role up in server settings)
437+
- Verify the bot was invited with correct OAuth2 scopes (`bot` and `applications.commands`)
436438

437439
### Permission Errors
438-
- Bot can only manage roles below its highest role
439-
- Some permissions require the bot to have them first
440-
- Channel overwrites may conflict with category permissions
440+
- Grant the bot **Administrator** permission for unrestricted access
441+
- Bot can only manage roles below its highest role in the hierarchy
442+
- Drag the bot's role higher in Server Settings → Roles
441443

442444
### Guild Not Found
443445
- Confirm bot is in the server
@@ -452,7 +454,7 @@ Debug logs are written to `/tmp/discord-mcp-debug.log` for troubleshooting permi
452454
- **Never share your bot token** - treat it like a password
453455
- **Use environment variables** - don't commit tokens to version control
454456
- **Regenerate tokens if compromised** - reset in Discord Developer Portal
455-
- **Limit bot permissions** - only grant what's actually needed
457+
- **Limit server access** - only add the bot to servers you trust
456458
- **Restrict file permissions** - `chmod 600 ~/.discord-mcp/config.json`
457459

458460
## Architecture

0 commit comments

Comments
 (0)