Discord Conversation Logger MCP Server
An MCP (Model Context Protocol) server that allows AI assistants to log conversations to Discord for review and history tracking.
接入你的智能体
從發布者安裝。不是 PlugMCP 端點。
遠端 URL 還是本機指令? 兩種安裝方式的差異
來自發布者
An MCP (Model Context Protocol) server that allows AI assistants to log conversations to Discord for review and history tracking.
MCP server that enables AI assistants to log conversations to Discord for audit trails, review, and team collaboration
This MCP server provides a simple way for AI assistants to maintain conversation logs in Discord. It's useful for:
cargo install --git https://github.com/SH11235/discord-conversation-logger.git
Or clone and build locally:
git clone https://github.com/SH11235/discord-conversation-logger.git
cd discord-conversation-logger
cargo install --path .
Run the setup script from the repository directory:
./setup-discord-env.sh
Edit ~/.claude/discord-config.json with your Discord credentials:
{
"bot_token": "YOUR_DISCORD_BOT_TOKEN",
"channel_id": "YOUR_CHANNEL_ID",
"thread_name": "Conversation Log" // Optional, defaults to "Conversation Log"
}
Load environment variables (optional for testing):
source ./load-discord-env.sh
Add the MCP server to Claude Code:
# First, load the environment variables (if using discord-config.json):
source ./load-discord-env.sh
# For global use (available in all projects):
claude mcp add -s user discord-conversation-logger discord-conversation-logger \
-e DISCORD_TOKEN="$DISCORD_TOKEN" \
-- --log-channel-id "$LOG_CHANNEL_ID" --log-thread-name "$LOG_THREAD_NAME"
# Or manually specify values:
claude mcp add -s user discord-conversation-logger discord-conversation-logger \
-e DISCORD_TOKEN="your-actual-discord-bot-token" \
-- --log-channel-id "123456789012345678" --log-thread-name "Conversation Log"
# For local project use (default):
claude mcp add discord-conversation-logger discord-conversation-logger \
-e DISCORD_TOKEN="$DISCORD_TOKEN" \
-- --log-channel-id "$LOG_CHANNEL_ID" --log-thread-name "$LOG_THREAD_NAME"
Note: The MCP server reads configuration from environment variables or command-line arguments, not directly from ~/.claude/discord-config.json.
Alternatively, you can manually add the following to your MCP configuration file (~/.claude.json):
{
"mcpServers": {
"discord-conversation-logger": {
"command": "discord-conversation-logger",
"args": [
"--log-channel-id", "your-channel-id",
"--log-thread-name", "AI Conversation Log"
],
"env": {
"DISCORD_TOKEN": "your-discord-bot-token"
}
}
}
}
DISCORD_TOKEN: Your Discord bot tokenLOG_CHANNEL_ID: Discord channel ID for logsLOG_THREAD_NAME: Thread name (default: "Conversation Log")The logger automatically includes the current working directory in the thread name. For example:
LOG_THREAD_NAME is "Conversation Log" and you're working in /home/user/projectThis helps identify which project or context the conversation logs belong to.
Once configured, AI assistants can use the log_conversation tool:
Assistant: I'll log this important decision.
[Uses log_conversation tool with role="assistant", message="Implemented feature X with approach Y"]
{
"role": "human",
"message": "Please implement a new authentication system",
"context": "feature-request"
}
Logged messages appear in Discord as embedded messages with:
To contribute or modify:
git clone https://github.com/SH11235/discord-conversation-logger.git
cd discord-conversation-logger
cargo build
cargo run -- --log-channel-id YOUR_CHANNEL_ID
MIT License - see LICENSE file for details
When using with Claude Code, you can create a CLAUDE.md file in your project to establish logging rules:
# Discord Conversation Logger Rules
## Important Message Logging Rules
Please use discord-conversation-logger MCP to log messages in the following cases:
### 1. User Messages (human)
- Task start/change/completion instructions
- Important decisions or confirmations
- Error reports or issue identification
### 2. Assistant Messages (assistant)
- Task completion reports
- Important suggestions or solutions
- Error resolution methods
- Summary of significant changes made
### 3. System Messages (system)
- Critical errors or warnings
- Important environment changes
- Security-related notifications
## Logging Format
mcp__discord-conversation-logger__log_conversation( message: "Actual message content", role: "human" | "assistant" | "system", context: "Brief context description" )
## Cases Not Requiring Logs
- Simple acknowledgments
- Intermediate progress reports
- Temporary debug outputs
This configuration helps maintain an audit trail of important project decisions and progress.
Contributions are welcome! Please feel free to submit a Pull Request.
Built using:
MCP server that enables AI assistants to log conversations to Discord for audit trails, review, and team collaboration
工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
Discord Conversation Logger 透過 stdio 在本機執行。
上次檢查時間:2026-10-28。 MCP server that enables AI assistants to log conversations to Discord for audit trails, review, and team collaboration