New MCP server: let ChatGPTClaudeClaude CodeCodexCursorOpenClaw or any AI agent schedule your posts See how it works

Codex + Discord

Post to Discord from Codex

Through iHatePosting, Codex can post messages with media into a Discord channel. Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, then ask it for the post you want.

Setup takes about a minute. A message can hold up to 1,980 characters.

DiscordCodex15 networks

Posting to Discord from Codex

Add iHatePosting to Codex once, connect Discord, and then describe the post. Setup takes about a minute.

Step 1

Add iHatePosting to Codex once

Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login. Then connect Discord in iHatePosting if you have not already.

Add to the end of ~/.codex/config.toml, then run the login command.

~/.codex/config.toml
[mcp_servers.ihateposting] url = "https://app.ihateposting.com/mcp/oauth" # then, in a terminal: codex mcp login ihateposting
Step 2

Ask for the Discord post

Describe the post in plain language. Codex writes it, applies the settings and schedules it.

Codex
> Share the 2.4 changelog in our Discord #announcements channel at 16:00 today. Codex: Done. Scheduled on Discord.

What Codex can do on Discord

On Discord, Codex can post messages with media into a Discord channel.

Channel messages

Send a message into one channel of your server.

Channel list

List the channels the agent may post in, then choose one.

Media

Attach pictures or files to a message.

Scheduling

Send the message at a time you name.

How Codex gets a post onto Discord

You say what you want and Codex makes the calls. A typical conversation goes like this.

Find your Discord channel

Which Discord accounts do I have in iHatePosting?

What happens

  • Codex lists your channels and finds Discord
  • It can also run the channels helper: Lists the channels the agent can post to.

Compose your content

List my Discord channels and remind the events channel about Friday's call tomorrow at 9:00.

What happens

  • Codex drafts the text for Discord
  • It uploads any media you mention

Schedule and publish

Yes, schedule it for tomorrow at 9:00.

What happens

  • Codex schedules the post in iHatePosting
  • iHatePosting publishes it to Discord at that time

Discord settings reference

Say the option in your own words and Codex fills in the matching field. This is every Discord setting it can use.

FieldTypeRequiredDescription
channelstringYesChannel must be an id

Common configurations

Each case below is a request Codex understands, followed by the Discord options it sets.

Choose a channel

Post it in the announcements channel

  • Applies: channel: the channel's id

What is Codex?

Codex is OpenAI's coding agent. The command line, the IDE extension and the ChatGPT desktop app all read the same config.toml, so one entry connects every one of them.

It can read a repository, write the announcement for a change and schedule it in iHatePosting.

How iHatePosting works with Codex

Once connected, iHatePosting hands Codex its tools: your channels, posts, media and each channel's settings (14 tools in all). Codex calls them while you describe what you want.

  • iHatePosting MCP server (sign in): Entry in ~/.codex/config.toml, then codex mcp login
  • iHatePosting MCP server (API key): Entry in ~/.codex/config.toml that names the variable holding your key
  • iHatePosting skill (command line): npx skills add iHatePostingOrg/iHatePosting-Agent
Set up Codex
# iHatePosting MCP server (sign in) [mcp_servers.ihateposting] url = "https://app.ihateposting.com/mcp/oauth" # then, in a terminal: codex mcp login ihateposting

Discord and the other platforms Codex reaches

Ask for Discord and other channels in a single message; every channel still applies its own settings.

Discord requests to try in Codex

An announcement

Share the 2.4 changelog in our Discord #announcements channel at 16:00 today.

A reminder

List my Discord channels and remind the events channel about Friday's call tomorrow at 9:00.

A picture

Post banner.png with a one-line caption to the news channel on Discord tonight.

Discord limits and gotchas to know

A few of Discord's rules shape how Codex writes your request, so it helps to know them.

  • A message can hold up to 1,980 characters.
  • Every post names one channel by its id; the agent lists the channels first and picks the one you mean.

Frequently asked questions

Start free for 30 days

Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, connect Discord in iHatePosting, then ask Codex for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.

Hand your Discord posts to Codex

Start free for 30 days.