Forward your Xcode Cloud build notifications to Discord with beautifully formatted embed messages.
![]()
| Status | Color | Emoji |
|---|---|---|
| Succeeded | 🟢 Green | ✅ |
| Failed | 🔴 Red | ❌ |
| Errored | 🔴 Red | 💥 |
| Canceled | ⚫ Gray | 🚫 |
| Skipped | 🟡 Yellow | ⏭️ |
| Running | 🔵 Blue | 🔄 |
| Pending | 🔵 Cyan | ⏳ |
Fork this val to your own Val Town account.
Add the DISCORD_WEBHOOK_URL environment variable in your Val Town settings with your Discord webhook URL.
To get a Discord webhook URL:
Your endpoint URL will look like:
https://[username]--[file-id].web.val.run
Once configured, Xcode Cloud will automatically send webhook notifications to this endpoint whenever:
The val will transform these into rich Discord embeds and post them to your configured channel.
Receives Xcode Cloud webhook payloads and forwards them to Discord.
Request Body: Xcode Cloud webhook JSON payload
Response:
200 OK - {"success": true} - Webhook forwarded successfully405 Method Not Allowed - Only POST requests are accepted500 Internal Server Error - Configuration error (e.g., missing DISCORD_WEBHOOK_URL)502 Bad Gateway - Failed to send to DiscordThis entire project was created by Claude (Anthropic) using the Val Town MCP (Model Context Protocol) integration.
Please create a simple Val Town Val which receives a xcode cloud webhook (https://developer.apple.com/documentation/xcode/configuring-webhooks-in-xcode-cloud) and forwards this as a webhook request to discord, that way I get notification as if I would connect slack directly to the xcode cloud.
The discord webhook should be in a ENV Variable but is [REDACTED] if you want to test things
All done in a single conversation using Val Town's MCP tools!
MIT