Schedule social posts from Codex

Add Sharek to Codex once and sign in from your browser. Then ask from your terminal, and the posts land on your Sharek calendar.

[mcp_servers.sharek] url = "https://dash.sharek.app/mcp-oauth-dynamic"

You need a Sharek account. Plans start at $25 a month with a 7-day free trial, and we collect a card at checkout.

~/release
$codex mcp add sharek --url https://dash.sharek.app/mcp-oauth-dynamic
$codex mcp login sharek
Your browser opens on Sharek. Sign in, press Authorize, and come back to the terminal.
$codex
>/mcp
sharek is in the list of active servers, with its tools.
>Read RELEASE_NOTES.md and write a LinkedIn post and an X post aboutversion 2.4 for Thursday at 10:00.
sharek integrationListlinkedin, x
sharek integrationSchemalinkedin, x
sharek integrationSchedulePostTool2 posts
✓Scheduled 2 posts for Thursday at 10:00: one on LinkedIn, one on X.

How do I connect Codex to Sharek?

Codex keeps its MCP servers in ~/.codex/config.toml. Add Sharek there with one command or by hand, then sign in once.

With a command

Start here

Two commands: one saves the server, the other signs you in through your browser. No key is stored in the file.

  1. 1
    terminal
    codex mcp add sharek --url https://dash.sharek.app/mcp-oauth-dynamic

    Add the server

    Run this once, from any folder. Codex saves sharek in its config.

  2. 2
    terminal
    codex mcp login sharek

    Sign in to Sharek

    Your browser opens on Sharek. Sign in, press Authorize, and Codex keeps the login for later sessions.

  3. 3
    codex
    /mcp

    Check it in Codex

    Start Codex and run this to see your active servers. From the shell, codex mcp list shows them too.

In config.toml

By hand

The same entry, written yourself. The Codex CLI, the IDE extension and the ChatGPT desktop app share this file, so one entry covers all three.

  1. 1
    ~/.codex/config.toml
    [mcp_servers.sharek]
    url = "https://dash.sharek.app/mcp-oauth-dynamic"

    Add the block

    Open ~/.codex/config.toml in any editor, create it if it isn't there, and add these two lines.

  2. 2
    terminal
    codex mcp login sharek

    Sign in

    Run the login once. On a machine with no browser, add --no-browser, open the link it prints and paste the redirect back.

On a server or in CI

API key

With no one there to sign in, Codex can send a key from an environment variable. Create one in Sharek under Settings, then Developers.

  1. 1
    ~/.codex/config.toml
    [mcp_servers.sharek]
    url = "https://dash.sharek.app/mcp"
    bearer_token_env_var = "SHAREK_API_KEY"

    Point Codex at the key address

    Codex sends the key as a Bearer token. This route also adds ask_sharek, so Codex can ask Samy.

  2. 2
    terminal
    export SHAREK_API_KEY=your-api-key

    Set the variable

    Put your key in place of your-api-key, in the environment Codex runs in.

What can I ask Codex to do in Sharek?

Codex already works inside your repo, so release notes, a changelog or a README can be the brief. These are the Sharek tools behind each request.

Read RELEASE_NOTES.md and write a LinkedIn post and an X post about version 2.4, both for Thursday at 10:00.

  • integrationList
  • integrationSchema
  • integrationSchedulePostTool

Two scheduled posts, each written to fit its channel's limit.

Use the screenshot at our public docs link in Friday's Instagram post about the new search.

  • uploadFromUrlTool
  • integrationSchema
  • integrationSchedulePostTool

The image goes to your media library first, then onto the post.

List what's scheduled on X this week. Don't change anything, just show me the empty days.

  • postsListTool

Each post with its date and state, so the gaps are easy to spot.

The launch moved, so delete Saturday's X post.

  • postsListTool
  • deletePostTool

That post is removed from X. Anything else on Saturday stays.

Codex, ChatGPT or Claude Code: which one fits?

All three reach the same Sharek account. They differ in where you work and how you sign in.

CodexChatGPTClaude Code
Where you workYour terminal, inside a repoA chat on the web, desktop or phoneYour terminal, inside a repo
How you add Sharekcodex mcp add, or ~/.codex/config.tomlSettings > Connectors > Createclaude mcp add
Sign-incodex mcp login sharek opens your browserYou sign in when you create the connector/mcp inside Claude Code opens your browser
Files from your computerNot over MCP. Use a public link or your media libraryAn upload box in the chatWith the Sharek CLI and skill
On a server or in CIAn API key through bearer_token_env_varNot built for itAn API key in a header
Best forRelease notes and docs that live in a repoPlanning posts in a conversationRepos with media files to upload

What can Codex reach in my Sharek account?

Only the account you authorized, and only through the tools Sharek gives it.

Codex can

  • Turn files in your repo into posts for each channel
  • Check a channel's limit and required settings before it schedules
  • Save drafts, schedule posts or publish now, several in one call
  • Bring in an image or video from a public link
  • Generate images and video from your plan's credits

Codex can't

  • Attach a file from your computer over MCP. Put it in your media library or at a public link first.
  • Read analytics. There is no analytics tool over MCP.
  • Edit a scheduled post's text or date. Delete it and schedule a new one instead.
  • Connect channels, or answer comments and messages.

Can Codex write posts in Arabic?

Yes. Write your request in whatever language you like, and say which language the post should be in. Sharek publishes the text Codex sends, and Arabic counts against each channel's limit like any other text.

اكتب منشورًا بالعربية على X عن الإصدار 2.4 من ملف RELEASE_NOTES.md، وجدوله يوم الخميس الساعة 10:00.

تم. المنشور مجدول على X يوم الخميس الساعة 10:00.

Questions, answered

Run codex mcp add sharek --url https://dash.sharek.app/mcp-oauth-dynamic, then codex mcp login sharek. Your browser opens on Sharek, and you press Authorize. You can also add the [mcp_servers.sharek] block to ~/.codex/config.toml by hand.
Yes. The Codex CLI, the IDE extension and the ChatGPT desktop app read the same config.toml, so after you add Sharek once, you can switch between them without setting it up again.
Run /mcp inside Codex to see your active servers, or codex mcp list from the shell. If sharek is listed but asks for sign-in, run codex mcp login sharek again.
Yes. Run codex mcp login sharek --no-browser, open the link it prints on any device, sign in, and paste the full redirect address back into the terminal. For a job that runs unattended, use an API key with bearer_token_env_var instead.
Only on the API key route. The ask_sharek tool isn't part of the sign-in connection.
Remove the [mcp_servers.sharek] block from ~/.codex/config.toml, and revoke Codex in Sharek under Settings, Apps, Approved Apps.
Connecting costs nothing extra, and a post from Codex counts like any post in Sharek. Sharek has no free plan: plans start at $25 a month with a 7-day free trial, and we collect a card at checkout. Generated images and video use your plan's credits.

Ship the release, then the posts

Start a 7-day free trial, add Sharek to Codex and ask for your first post. We collect a card at checkout, and you can cancel from settings.

Start free trial