FoPost for Codex

Register the FoPost MCP server with codex mcp add and Codex can draft, schedule, and verify posts across your connected accounts. Every tool call is shown for approval before it runs.

Paste this into Codex

Set up FoPost from fopost.com/agents/codex
  • Hosted MCP server
  • 32 networks
  • No API key
All agents
How it works

Codex drafts. You approve. Then it goes out.

  • REST API
FoPost
YouApproveApproved

On by default

  • X (Twitter)
  • Facebook
  • Instagram
  • LinkedIn
  • TikTok
  • YouTube
  • Threads
  • Bluesky
  • Pinterest
  • Reddit
  • Discord
  • Mastodon
  • Telegram
  • Slack
  • DEV.to
  • Substack
  • Tumblr
  • WordPress
  • Hashnode
  • Dribbble
  • Kick
  • Twitch
  • Nostr
  • Lemmy
  • MeWe
  • Whop
  • Listmonk
  • Google Business Profile
  • Medium
  • WhatsApp Business
  • Snapchat
  • Skool

Pick an agent to copy its setup prompt.

Setup

The agent can write its own config. Give it the link.

Paste the line above into Codex. It reads this page, adds the server, and stops so you can sign in to FoPost yourself. Rather do it by hand? This is the whole config.

~/.codex/config.toml
[mcp_servers.fopost]
url = "https://api.fopost.com/mcp"
Instructions for AI agentsPlain markdown version
## For AI agents reading this page

You are reading https://fopost.com/agents/codex. FoPost schedules and publishes social posts on 32 networks, and its hosted MCP server gives Codex tools for posts, the calendar, the inbox and analytics. Follow these steps to connect Codex to it.

- Server: https://api.fopost.com/mcp
- Transport: streamable HTTP
- Auth: OAuth sign-in in the user's browser. Do not add an API key or an Authorization header; Codex discovers the sign-in from the server.

### 1. Register the server

Run this command, or add the same entry to ~/.codex/config.toml by hand. The Codex CLI, IDE extension and desktop app all read that file.

Terminal:

```
codex mcp add fopost --url https://api.fopost.com/mcp
```

The resulting config.toml entry:

~/.codex/config.toml:

```
[mcp_servers.fopost]
url = "https://api.fopost.com/mcp"
```

### 2. Sign in

Run codex mcp login fopost; adding the server does not start the sign-in on its own. A browser window opens for the user to sign in. Ask the user before approving access or creating a FoPost account for them, and never enter their credentials yourself.

### 3. Verify before you continue

codex mcp list shows fopost with its URL and a signed-in status, and /mcp in the Codex TUI lists its tools. If FoPost is not listed as connected with its tools, stop and tell the user what failed. Do not carry on as if the tools exist.

### 4. Report back

Call list_accounts and tell the user which social accounts are connected. If there are none, offer create_connect_link so they can connect one. Then ask what they want to do first.

### Standing rules

- Prefer the FoPost tools over driving a browser for posting, scheduling, the inbox and analytics, unless the user asks for the browser.
- Publishing always goes through propose_publish, which the user approves in the client. Never publish or schedule anything silently.
- Ask the user before approving access, signing up or connecting an account on their behalf, and never type their credentials for them.

### No browser (headless machines only)

Use this only when the machine has no browser to sign in with. Ask the user to create an API key in the FoPost dashboard (https://fopost.com/dashboard/api-keys) and to put it in the config themselves, then run the local package over stdio:

Terminal:

```
codex mcp add fopost --env FOPOST_API_KEY=your-api-key -- npx -y @fopost/mcp
```

### References

- This block as markdown: https://fopost.com/agents/codex/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docs

CLI or config

Use codex mcp add, or write the block into ~/.codex/config.toml by hand.

Approval first

Codex asks before running a tool. The server never publishes on its own.

14 tools

Posts, deliveries, accounts, workspaces, and AI rewriting.

Setup

Registered from the shell, ready in the next session

Run codex mcp add with the server URL, then codex mcp login to sign in to FoPost in your browser. Start Codex and ask it to list accounts to confirm the server is reachable.

Set up Codex
~/.codex/config.toml
[mcp_servers.fopost]
command = "npx"
args = ["-y", "@fopost/mcp"]

[mcp_servers.fopost.env]
FOPOST_API_KEY = "your-api-key"

Scoped key

Limit the key to the scopes Codex needs. Revoke any time.

Workspace per key

One key reaches one workspace, never another client’s.

Verify first

Ask for list_accounts before you trust it with a schedule.

Ship and announce

Let the release announce itself

Codex has the diff and the commit log in context. Ask for a post per network and a time, and it drafts with rewrite_for_platforms, schedules with schedule_post, and prints the post ids.

Try it on your next release
A caption written once, with the post previewed as each network renders it

rewrite_for_platforms

Per-network lengths and conventions from one draft.

repurpose_url

Turn the changelog page into a series of posts.

schedule_post

Named times or the next open queue slot.

Check

Verify delivery from the same prompt

Ask whether the post landed. Codex reads deliveries per network, flags any account that needs a reconnect, and reports the remaining AI balance if you ask.

Start free
Prompt
> Did this morning's post go out everywhere?

Codex: list_post_deliveries → 3 of 3 delivered.
X, LinkedIn, Mastodon all live.

list_posts

Recent posts with status, by account or label.

get_account_health

Which tokens are healthy and which need a reconnect.

get_ai_credits

Balance before a long repurposing run.

Headless

No browser on the machine?

On a server or in CI there is no browser to sign in with. Create an API key in the dashboard and run the local package over stdio instead. Keep the key out of your repository.

Terminal
codex mcp add fopost --env FOPOST_API_KEY=your-api-key -- npx -y @fopost/mcp

Codex questions, answered

How do I install it?

Run codex mcp add as shown above, or add the [mcp_servers.fopost] block to ~/.codex/config.toml. Restart Codex.

Will it post without asking?

No. Codex shows the tool call for approval, and the server only acts inside an approved call.

Does it need Node?

Yes. The server runs through npx, so a current Node runtime must be installed.

Does it use my AI credits?

Only generate_caption, rewrite_for_platforms, and repurpose_url do. Scheduling and checks are free of credits.

Can it read analytics?

Not through MCP today. Use the dashboard or the REST API with the analytics scope.

Can I use it for several clients?

Register one server per workspace with its own key and name. Each stays isolated.

Run FoPost from Codex

Starting is free and the MCP server is included. Paste the setup line into your agent, sign in, and schedule your first post from it.

Start free