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.
integrationListlinkedin, xintegrationSchemalinkedin, xintegrationSchedulePostTool2 postsHow 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 hereTwo commands: one saves the server, the other signs you in through your browser. No key is stored in the file.
- 1
codex mcp add sharek --url https://dash.sharek.app/mcp-oauth-dynamicAdd the server
Run this once, from any folder. Codex saves sharek in its config.
- 2
codex mcp login sharekSign in to Sharek
Your browser opens on Sharek. Sign in, press Authorize, and Codex keeps the login for later sessions.
- 3
/mcpCheck 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 handThe 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
[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
codex mcp login sharekSign 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 keyWith no one there to sign in, Codex can send a key from an environment variable. Create one in Sharek under Settings, then Developers.
- 1
[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
export SHAREK_API_KEY=your-api-keySet 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.
integrationListintegrationSchemaintegrationSchedulePostTool
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.
uploadFromUrlToolintegrationSchemaintegrationSchedulePostTool
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.
postsListTooldeletePostTool
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.
| Codex | ChatGPT | Claude Code | |
|---|---|---|---|
| Where you work | Your terminal, inside a repo | A chat on the web, desktop or phone | Your terminal, inside a repo |
| How you add Sharek | codex mcp add, or ~/.codex/config.toml | Settings > Connectors > Create | claude mcp add |
| Sign-in | codex mcp login sharek opens your browser | You sign in when you create the connector | /mcp inside Claude Code opens your browser |
| Files from your computer | Not over MCP. Use a public link or your media library | An upload box in the chat | With the Sharek CLI and skill |
| On a server or in CI | An API key through bearer_token_env_var | Not built for it | An API key in a header |
| Best for | Release notes and docs that live in a repo | Planning posts in a conversation | Repos 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
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