Process Discord Suggestions (MCP)
End-to-end workflow for an agent with access to user-discord-mcp (call_mcp_tool with server user-discord-mcp). Read each tool’s JSON schema under the MCP tools/ folder before calling it.
Constants
| Key | Value |
| ---------------- | --------------------- |
| Processed tag ID | 1497626100849840250 |
Do not change this ID unless the server’s forum tag is recreated.
Prerequisite IDs
You need the guild (server) ID and the forum channel ID for the suggestions board.
- If the user does not pass IDs:
find_channelwithguildId(if known) andchannelNamematching the forum; orlist_forum_channelswithguildIdand pick the correct channel. - If tools require
channelId/guildIdand the user can provide them from Discord (Developer Mode: copy ID), prefer those to avoid name collisions.
Classification (exactly one per thread)
| Value | Meaning |
| --------------------- | ---------------------------------------------------------------------------------------------------------- |
| MOD/SKIN_REQUEST | In-game visuals, models, VPK/GameBanana content, sound packs, map/mod content for Deadlock itself. |
| MOD_MANAGER_FEATURE | DMM / Deadlock Mod Manager app: UI, install flow, API, Tauri, settings, mod library, sync, error handling. |
| OTHER | Off-topic, meta Discord, unparseable, or not fitting the two above (still export and tag if processed). |
Rules
- If the first message mixes topics, pick the primary user ask.
- When uncertain between mod content and app feature, use
MOD_MANAGER_FEATUREif the text is about _how the manager works_; otherwiseMOD/SKIN_REQUESTfor _what to add in-game_.
Output layout (repository root)
Create the directory tree on first use:
.suggestions/
mod-skin-request/ # maps to category MOD/SKIN_REQUEST
mod-manager-feature/ # maps to category MOD_MANAGER_FEATURE
other/ # maps to category OTHER
Files: one file per thread, path:
.suggestions/<subfolder>/{threadId}.md
Use the Discord thread (post) ID as the filename stem so re-runs do not duplicate.
File format
Each file is valid Markdown with YAML front matter, then the thread body for humans to edit later.
Front matter (required fields)
title: Thread name as shown in Discord.thread_id: Snowflake of the thread / forum post.forum_channel_id: Parent forum channel ID.guild_id: Guild ID, if available from the tool context.author_username: Display name or username at time of export (best effort).author_id: Author snowflake of the first (parent) post.parent_message_id: ID of the first message in the thread, if returned byread_messages.category: One ofMOD/SKIN_REQUEST,MOD_MANAGER_FEATURE,OTHER(match table above, not the folder slug).processed_tag_id:1497626100849840250exported_at: ISO-8601 UTC timestamp when the file was written.
Body
- A single
#heading with the thread title (same astitleis fine). - The text of the first message (starter post) as the main content.
- If follow-up messages add material constraints or acceptance criteria, add a
## Thread notessection with a short bulleted summary only when it changes meaning; do not dump full history by default to keep files reviewable.
Fetch workflow
- List threads:
list_forum_postswithchannelId(forum). If the result is known to be active-only, note that archived threads may be missing. Optionallylist_active_threadswithguildIdto cross-check, then only process IDs that belong to the suggestions forum. - Filter: For each candidate thread, determine if it is already “processed”:
- If the list payload includes
applied_tags/ tag IDs, skip when1497626100849840250is already present. - If tag membership is not visible,
read_messagesis still used for export; before tagging, merge tag IDs with care (see next section).
- Read content:
read_messageswithchannelIdset to the thread ID,countas needed (max 100 per call; paginate withbeforeif the thread is long; include enough to classify the _starter_ and optional notes for## Thread notes). - Classify using the table above; assign the
categoryand target subfolder. - Write the file under
.suggestions/...as specified. - Tag the thread:
modify_forum_postwithpostIdequal to the thread ID andtagIdsa comma-separated list of tag snowflakes. Merging tags: the API sets the full set. If the listing response for the thread includes existing tag IDs, settagIdsto the union of those IDs and1497626100849840250(de-duplicated). If existing tags are unknown, prefer asking the user before applying a tag that might clear other tags; if the user has confirmed replace-with-processed-only is OK, you may settagIds: "1497626100849840250"only. - Idempotency: If a file for
{threadId}.mdalready exists in the correct subfolder and the thread already has the processed tag, skip writing and re-tagging unless the user asked for a full refresh.
Ordering and rate limits
Process threads in a stable order (e.g. ascending thread_id or as returned). Space MCP calls reasonably; on failures, log which threadId failed and continue or retry that ID once.
Privilege note
modify_forum_post requires the bot account behind user-discord-mcp to have Manage Threads and permission to set forum tags in that channel. If tagging fails, still write the export file and report the error so a moderator can tag manually.
What not to do
- Do not store bot tokens in the repo or in front matter.
- Do not replace this skill with raw instructions that bypass MCP tool schemas; always read the tool descriptor before the first use in a session.
Optional follow-up (not automatic)
- Add
.suggestions/to.gitignoreif exports should stay local and contain PII. - Reconcile
OTHERand misclassified files after human review (move file + update front mattercategoryif needed).