Update README.md

This commit is contained in:
BarryY 2025-03-25 13:00:42 +08:00
parent bb79516c97
commit 31a29131c6
1 changed files with 5 additions and 5 deletions

View File

@ -49,8 +49,8 @@ MCP-Discord provides the following Discord-related functionalities:
```bash ```bash
# Clone the repository # Clone the repository
git clone https://github.com/barryyip0625/MCP-Discord.git git clone https://github.com/barryyip0625/mcp-discord.git
cd MCP-Discord cd mcp-discord
# Install dependencies # Install dependencies
npm install npm install
@ -70,7 +70,7 @@ DISCORD_TOKEN=your_discord_bot_token
2. Using the `--config` parameter when launching: 2. Using the `--config` parameter when launching:
``` ```
node path/to/MCP-Discord/build/index.js --config "{\"DISCORD_TOKEN\":\"your_discord_bot_token\"}" node path/to/mcp-discord/build/index.js --config "{\"DISCORD_TOKEN\":\"your_discord_bot_token\"}"
``` ```
## Usage with Claude/Cursor ## Usage with Claude/Cursor
@ -82,7 +82,7 @@ node path/to/MCP-Discord/build/index.js --config "{\"DISCORD_TOKEN\":\"your_disc
"discord": { "discord": {
"command": "node", "command": "node",
"args": [ "args": [
"path/to/MCP-Discord/build/index.js" "path/to/mcp-discord/build/index.js"
], ],
"env": { "env": {
"DISCORD_TOKEN": "your_discord_bot_token" "DISCORD_TOKEN": "your_discord_bot_token"
@ -102,7 +102,7 @@ node path/to/MCP-Discord/build/index.js --config "{\"DISCORD_TOKEN\":\"your_disc
"args": [ "args": [
"/c", "/c",
"node", "node",
"path/to/MCP-Discord/build/index.js" "path/to/mcp-discord/build/index.js"
], ],
"env": { "env": {
"DISCORD_TOKEN": "your_discord_bot_token" "DISCORD_TOKEN": "your_discord_bot_token"