Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .cursor/rules/discord_embed.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
description: JSON Body Format for Discord Embeds to be sent to Discord Webhook URL
globs:
alwaysApply: false
---
```json

You can optionally omit the `username` and `avatar_url`, this will simply leverage the default author, which is usually correct.
To include images, they must be externally hosted and publicly available. Using icons from live online sources like iconsv8 is preferred.
`content` can be omitted if `embeds` is not empty or missing.
all colors must be provided in decimal format, not HEX.
You can 'at' (AKA mention) with these formats within embed or content text:
- Channel: <#channel_id>
- User: <@user_id>
- Role: <&role_id>
- Discord Emojis: <:emojiName:emojiId>

{
"username": "Webhook",
"avatar_url": "https://i.imgur.com/4M34hi2.png",
"content": "Text message. Up to 2000 characters.",
"embeds": [
{
"author": {
"name": "Birdie♫",
"url": "https://www.reddit.com/r/cats/",
"icon_url": "https://i.imgur.com/R66g1Pe.jpg"
},
"title": "Title",
"url": "https://google.com/",
"description": "Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](mdc:https:/google.com) `code`",
"color": 15258703,
"fields": [
{
"name": "Text",
"value": "More text",
"inline": true
},
{
"name": "Even more text",
"value": "Yup",
"inline": true
},
{
"name": "Use `\"inline\": true` parameter, if you want to display fields in the same line.",
"value": "okay..."
},
{
"name": "Thanks!",
"value": "You're welcome :wink:"
}
],
"thumbnail": {
"url": "https://upload.wikimedia.org/wikipedia/commons/3/38/4-Nature-Wallpapers-2014-1_ukaavUI.jpg"
},
"image": {
"url": "https://upload.wikimedia.org/wikipedia/commons/5/5a/A_picture_from_China_every_day_108.jpg"
},
"footer": {
"text": "Woah! So cool! :smirk:",
"icon_url": "https://i.imgur.com/fKL31aD.jpg"
}
}
]
}
```
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[project]
name = "mcp-discord"
version = "0.1.0"
version = "0.2.1"
description = "Discord integration for Model Context Protocol"
authors = [
{name = "Hanweg Altimer", email = "hanwegaltimer@outlook.com"},
{name = "Jason McElhenney", email = "me@zod.tf"}
]
dependencies = [
"discord.py>=2.3.0",
Expand Down
Loading