Schedule social posts from Gemini CLI

One command adds Sharek to Gemini CLI. Sign in when your browser opens, then ask for posts in plain words from your terminal.

{"mcpServers":{"sharek":{"httpUrl":"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.

~/site
$gemini mcp add --transport http -s user sharek https://dash.sharek.app/mcp-oauth-dynamic
$gemini
>/mcp auth sharek
Your browser opens on Sharek. Sign in and press Authorize, and Gemini CLI saves the sign-in for later sessions.
>/mcp
sharek shows as CONNECTED, with its tools listed.
>Read docs/whats-new.md and schedule a LinkedIn post and a Threads postabout it for Monday at 09:00.
sharek integrationListlinkedin, threads
sharek integrationSchemalinkedin, threads
sharek integrationSchedulePostTool2 posts
✓Scheduled 2 posts for Monday at 09:00, on LinkedIn and Threads.

How do I connect Gemini CLI to Sharek?

Gemini CLI reads its MCP servers from settings.json. One command writes the entry for you, and the first time Sharek asks who you are, your browser opens.

With gemini mcp add

Start here

The command picks the right transport for you. Sign-in happens in your browser, so no key lands in the file.

  1. 1
    terminal
    gemini mcp add --transport http -s user sharek https://dash.sharek.app/mcp-oauth-dynamic

    Add the server

    The -s user flag saves it in ~/.gemini/settings.json, so it works in every folder. Without it, the server only applies to the current project.

  2. 2
    gemini
    /mcp auth sharek

    Sign in to Sharek

    Start Gemini CLI and run this. Your browser opens on Sharek: sign in and press Authorize. Gemini CLI also starts sign-in by itself the first time Sharek asks for it.

  3. 3
    gemini
    /mcp

    Check the connection

    sharek shows as CONNECTED, with its tools. From your shell, gemini mcp list shows the same status.

In settings.json

By hand

Use httpUrl, not url. Gemini CLI treats url as an older SSE endpoint, and Sharek's sign-in address speaks streamable HTTP.

  1. 1
    ~/.gemini/settings.json
    {"mcpServers":{"sharek":{"httpUrl":"https://dash.sharek.app/mcp-oauth-dynamic"}}}

    Add the entry

    Add this to ~/.gemini/settings.json, or merge the sharek entry into the mcpServers block you already have.

  2. 2

    Restart and authorize

    Start Gemini CLI again. When Sharek asks you to sign in, your browser opens on the consent page: press Authorize.

Over SSH or in a container

API key

Browser sign-in needs a browser on the same machine. Without one, use an API key from Settings, then Developers, in Sharek.

  1. 1
    terminal
    gemini mcp add --transport http -s user --header "Authorization: Bearer your-api-key" sharek https://dash.sharek.app/mcp

    Add the server with your key

    Put your key in place of your-api-key. This route also adds ask_sharek, so Gemini CLI can ask Samy.

What can I ask Gemini CLI to do in Sharek?

Point it at a file in your project or describe the post. Each request below shows the Sharek tools it calls.

Read docs/whats-new.md and schedule a LinkedIn post and a Threads post about it for Monday at 09:00.

  • integrationList
  • integrationSchema
  • integrationSchedulePostTool

Two posts on Monday morning, each within its channel's limit.

Find my Pinterest boards and pin the image from our launch page to the Product board on Friday.

  • triggerTool
  • uploadFromUrlTool
  • integrationSchedulePostTool

Sharek reads your boards first, because every pin needs one.

Generate a square image of our new dark theme and keep it for next week's posts.

  • generateImageTool
  • mediaListTool

The image goes to your media library and uses one image credit.

Show me every post that failed this month.

  • postsListTool

Each failed post comes back with its channel, its date and the error.

Gemini CLI, Codex or Claude Code: what's different?

All three are terminal agents that reach the same Sharek account. Where the setting lives and how you sign in differ.

Gemini CLICodexClaude Code
Add Sharekgemini mcp add, or settings.jsoncodex mcp add, or config.tomlclaude mcp add
Where the setting lives~/.gemini/settings.json, or the project's .gemini folder~/.codex/config.tomlClaude Code's config for the current project
Sign-in/mcp auth sharek, or automatic on first usecodex mcp login sharek/mcp inside Claude Code
See it connected/mcp shows CONNECTED/mcp lists your active servers/mcp shows sharek as connected
Without a browserAn API key in a header--no-browser login, or a key from an environment variableAn API key in a header

What can Gemini CLI do with my Sharek account?

It acts only through the tools Sharek exposes, in the account you authorized, and it asks before each call unless you trust the server.

Gemini CLI can

  • Write posts from files and notes in your project
  • Read each channel's rules, like Pinterest's boards, before posting
  • Draft, schedule or publish posts, many at once
  • Make images and video from your plan's credits
  • List your posts and their states between two dates

Gemini CLI can't

  • Upload a file straight from your disk. It needs a public link or your media library.
  • See your analytics, which stay in the Sharek app.
  • Rewrite a scheduled post's text or move its date. Delete the post and schedule a fresh one.
  • Add channels or change account settings.

Can Gemini CLI write Arabic posts?

Yes. Write your request in any language and name the language of the post. Sharek publishes the text it receives with no special counting, so an Arabic post has the same limit as any other.

اقرأ ملف docs/whats-new.md واكتب منه منشورًا بالعربية على لينكدإن، وجدوله يوم الاثنين الساعة 09:00.

تمت الجدولة. المنشور في تقويم شارك يوم الاثنين الساعة 09:00.

Questions, answered

Run gemini mcp add --transport http -s user sharek https://dash.sharek.app/mcp-oauth-dynamic, start Gemini CLI and run /mcp auth sharek. Your browser opens on Sharek, and you press Authorize.
Use httpUrl. Gemini CLI connects to url as an SSE endpoint and to httpUrl over streamable HTTP, which is what Sharek's sign-in address uses. gemini mcp add --transport http writes the right one for you.
By default, Gemini CLI asks you to confirm each tool call from an MCP server. You can mark sharek as trusted in settings.json, but confirming keeps you in control of what gets scheduled.
Not with the browser. Sign-in needs a browser on the same machine, so it won't work in a headless session or a container. Use an API key there, sent in a header with gemini mcp add --header.
These steps are for Gemini CLI, the terminal agent. We don't have steps for the Gemini app yet.
Run gemini mcp remove sharek, and revoke Gemini CLI in Sharek under Settings, Apps, Approved Apps.
The connection itself costs nothing extra. Sharek has no free plan: plans start at $25 a month with a 7-day free trial, and we collect a card at checkout. Images and video you generate use your plan's credits.

Schedule this week from Gemini CLI

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

Start free trial