MCP
Connect Codex
~/.codex/config.toml (CLI, IDE extension and app share it)
Steps
- 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.
- 2Add the server with the CLI, or paste the table into ~/.codex/config.toml. Codex reads the key from the environment variable you name.
- 3Run codex mcp list to confirm it's enabled.
Terminal
export MYNAHCAST_KEY="myn_live_…"
codex mcp add mynahcast --url https://api.mynahcast.xyz/mcp --bearer-token-env-var MYNAHCAST_KEYconfig.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.
curl "https://api.mynahcast.xyz/v1/channels" \
-H "Authorization: Bearer $MYNAHCAST_KEY"Tools your agent gets
Filtered by the key's scopes. Anything that changes data accepts dry_run.
mynahcast_validate_postCheck a post against every target channel without saving itmynahcast_create_postCreate a post for one brand, fanned out to one or more channelsmynahcast_get_postRead one post with its per-channel delivery statemynahcast_list_postsList postsmynahcast_update_postEdit a post (an edit voids an earlier approval)mynahcast_reschedule_postMove a post to a new timemynahcast_delete_postDelete a post that hasn't gone outmynahcast_get_post_timelineEvery attempt, approval and read-back for a postmynahcast_submit_for_approvalAsk a human to approve a postmynahcast_decide_approvalApprove or request changes (humans only; agents are refused)mynahcast_list_channelsConnected channelsmynahcast_get_channel_capabilitiesLimits for one channel (characters, media, threads)mynahcast_request_uploadGet a signed URL to upload mediamynahcast_complete_uploadMark an upload as finishedmynahcast_get_brand_voiceRead the brand's voice profilemynahcast_update_brand_voicePublish a new voice version (publisher keys)
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 each post waits for your approval.
- 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, so a person approves every post in Mynahcast.
- 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.