Skip to content
MCP

Post to social media from Codex

~/.codex/config.toml (CLI, IDE extension and app share it)

Steps

  1. 1In Mynahcast, open Agents & API and create a key. Pick the Agent preset so its posts wait for your approval. The key is shown once; copy it.
  2. 2Add the server with the CLI, or paste the table into ~/.codex/config.toml. Codex reads the key from the environment variable you name.
  3. 3Run codex mcp list to confirm it's enabled.
Create an API key
Terminal
export MYNAHCAST_KEY="myn_live_…"
codex mcp add mynahcast --url https://api.mynahcast.xyz/mcp --bearer-token-env-var MYNAHCAST_KEY
~/.codex/config.toml
[mcp_servers.mynahcast]
url = "https://api.mynahcast.xyz/mcp"
bearer_token_env_var = "MYNAHCAST_KEY"

Check the key works

Lists the channels you've connected; you'll need their ids to post.

List channels
curl "https://api.mynahcast.xyz/v1/channels" \
  -H "Authorization: Bearer $MYNAHCAST_KEY"

Tools your agent gets

39 tools, filtered by the key's scopes. Anything that changes data accepts dry_run.

Every name is prefixed mynahcast_

Posts8

  • validate_postCheck a post against every target channel without saving it
  • create_postCreate a post for one brand, fanned out to one or more channels
  • get_postRead one post with its per-channel delivery state
  • list_postsList posts, filtered by status, channel and time range
  • update_postEdit a post (an edit voids an earlier approval)
  • reschedule_postMove a post to a new time
  • delete_postDelete a post and cancel deliveries that haven't gone out
  • get_post_timelineEvery delivery attempt for a post, with platform responses

Approvals2

  • submit_for_approvalAsk a human to approve a post
  • decide_approvalApprove or request changes (humans only; agents are refused)

Channels2

  • list_channelsList connected channels and their health
  • get_channel_capabilitiesLimits for one channel (characters, media, threads)

Media2

  • request_uploadGet a signed URL to upload media
  • complete_uploadMark an upload as finished
Show all 39 tools+25

Brand voice & context4

  • get_brand_voiceRead the brand's voice profile
  • update_brand_voicePublish a new voice version (publisher keys)
  • get_product_contextRead the product context before writing a post
  • set_product_contextSave what your product is: URL, one-liner, audience, problems, features, proof, CTA, banned claims

Styles & memory5

  • save_styleSave a style: general patterns from a reference account, never copies
  • list_stylesList the brand's styles (default first)
  • get_styleRead one style: hooks, tone, length, slides, colours, fonts
  • delete_styleDelete a style
  • get_content_memoryWhat was drafted, published or rejected: hooks, topics, claims, reasons

Batches & automation4

  • get_batch_promptReady weekly instruction to paste into your own agent (claude -p, codex exec)
  • submit_batchSubmit a weekly batch: validated, auto-scheduled within daily caps, approval per mode
  • approve_batchRelease a whole batch with one approval (humans only)
  • set_autopilot_settingsSet approval mode (each_post, whole_batch, autopilot) and per-channel daily cap (Autopilot keys and apps)

Account & reports9

  • get_accountYour workspace, plan and trial status, and your brands
  • connect_channelA link where you connect a social account on mynahcast.xyz (no passwords in chat)
  • get_reportWhat went out and what failed in a date range, with links to the live posts
  • get_analyticsPublished and failed posts per day, per channel and by hour, over your plan's analytics history
  • list_brandsThe brands in your workspace (each with its own channels, voice and calendar)
  • create_brandCreate another brand, up to your plan's brand allowance
  • get_checkout_linkA link to your plan page: to add a card before scheduling on the trial, when the trial ends, or when a limit is reached
  • show_approval_calendarMonth calendar of planned posts with approve and skip buttons, as a card where the app supports it
  • ui_decide_postApprove or skip one post from the calendar card (only the card calls it, on your click)

Safety3

  • stop_allEmergency stop: hold every scheduled post of a brand
  • resume_allResume publishing after stop_all
  • get_autopilotCheck whether publishing is stopped for a brand

Frequently asked questions

Can Codex post to social media?
Yes, with Mynahcast. Codex connects through Mynahcast's MCP server at https://api.mynahcast.xyz/mcp, authenticated with a Mynahcast API key as a bearer token. It can then draft and schedule posts to your connected channels (Bluesky, Mastodon, Telegram, Discord, Nostr, Lemmy and more), and every post waits for your approval unless you switch on autopilot.
Can Codex publish without my approval?
Not with an Agent key. Agent keys can draft, validate and schedule, but the server refuses approval decisions from agents. Every post waits for your approval unless you switch on autopilot.
Is it free to connect Codex to Mynahcast?
The MCP server and API are included on every Mynahcast plan, from $12 per month with a 7-day free trial. You need your own access to the agent itself.