AI agent guides / Codex

Codex by OpenAI

How to post to social media from Codex

Codex writes the code and the release notes. Add Hey Tasky once in config.toml and every Codex surface can queue the announcement too.

Updated October 14, 2026

Setup

Connect Codex in 3 steps

You need a Hey Tasky workspace with at least one social account connected. Connect X, LinkedIn, Bluesky, Mastodon, or another network in Hey Tasky first, so Codex has somewhere to post.

  1. Add the server

    Run this, or add the same entry to ~/.codex/config.toml, which the CLI, app, and IDE extension share.

    codex mcp add heytasky --url https://mcp.heytasky.com/mcp
  2. Sign in to Hey Tasky

    Run the login command and approve access in the browser.

    codex mcp login heytasky
  3. Check it works

    Ask Codex which Hey Tasky accounts it can post to.

Try it

Things to ask Codex

  • "Draft release notes for this tag as an X thread and save it to Hey Tasky."
  • "Schedule the LinkedIn version for Wednesday at 10am."
Capabilities

What Codex can do in Hey Tasky

These are the tools Hey Tasky's MCP server gives Codex. Ask for a draft when you want to read a post before it goes out; a scheduled post publishes on its own at the time you set.

list_channels
Lists the accounts connected to your workspace, with the ids the agent needs to target them.
list_social_sets
Lists your social sets, such as one brand across X and Threads, so you can say "post this to my text list".
create_post
Saves a draft you review and schedule later in Hey Tasky. Nothing is published.
schedule_post
Schedules a post to one or more channels at an exact time. Hey Tasky publishes it automatically.
get_queue
Reads what is scheduled, published, or failed.
get_post_results
Returns impressions, likes, replies, reposts, and quotes for published posts, where the network reports them.
list_replies
Pulls replies to your posts, sorted into leads, questions, and praise.
get_best_times
Suggests weekday and hour slots from how your posts performed over the last 90 days.
get_account
Confirms which workspace and timezone the agent is working in.
Good to know

Before you rely on it

  • Ask for drafts until you trust the setup. A draft waits in Hey Tasky for you; a scheduled post publishes on its own at the time you set.
  • Prefer a key? In config.toml, add bearer_token_env_var = "HEYTASKY_API_KEY" under [mcp_servers.heytasky] and export that variable. Create an API key in Hey Tasky under Settings, Developers. Treat it like a password: anyone with the key can post to your workspace.
FAQ

Codex and Hey Tasky questions

Does this work in the Codex app and IDE extension?

Yes. They read the same ~/.codex/config.toml as the CLI.

Sources

Codex: MCP