AI agent guides / Gemini CLI

Gemini CLI by Google

How to post to social media from Gemini CLI

Gemini CLI takes remote MCP servers in settings.json. Add Hey Tasky and Gemini can draft and schedule posts from the terminal.

Updated October 14, 2026

Setup

Connect Gemini CLI in 3 steps

You need a Hey Tasky workspace with at least one social account connected. Connect X, LinkedIn, Bluesky, Mastodon, or another network in Hey Tasky first, so Gemini CLI has somewhere to post.

  1. Add Hey Tasky to settings.json

    Edit ~/.gemini/settings.json, or .gemini/settings.json in a project. Use httpUrl: url means SSE in Gemini CLI.

    {
      "mcpServers": {
        "heytasky": {
          "httpUrl": "https://mcp.heytasky.com/mcp"
        }
      }
    }
  2. Sign in to Hey Tasky

    Start Gemini CLI and run /mcp auth heytasky. Approve access in the browser.

  3. Check it works

    Ask Gemini which Hey Tasky accounts it can post to.

Try it

Things to ask Gemini CLI

  • "Draft a launch post for this repo and save it to Hey Tasky."
  • "Schedule it for Friday at 11am."
Capabilities

What Gemini CLI can do in Hey Tasky

These are the tools Hey Tasky's MCP server gives Gemini CLI. Ask for a draft when you want to read a post before it goes out; a scheduled post publishes on its own at the time you set.

list_channels
Lists the accounts connected to your workspace, with the ids the agent needs to target them.
list_social_sets
Lists your social sets, such as one brand across X and Threads, so you can say "post this to my text list".
create_post
Saves a draft you review and schedule later in Hey Tasky. Nothing is published.
schedule_post
Schedules a post to one or more channels at an exact time. Hey Tasky publishes it automatically.
get_queue
Reads what is scheduled, published, or failed.
get_post_results
Returns impressions, likes, replies, reposts, and quotes for published posts, where the network reports them.
list_replies
Pulls replies to your posts, sorted into leads, questions, and praise.
get_best_times
Suggests weekday and hour slots from how your posts performed over the last 90 days.
get_account
Confirms which workspace and timezone the agent is working in.
Good to know

Before you rely on it

  • Ask for drafts until you trust the setup. A draft waits in Hey Tasky for you; a scheduled post publishes on its own at the time you set.
  • Sign-in needs a local browser. On a remote machine, add "headers": { "Authorization": "Bearer YOUR_API_KEY" } instead. Create an API key in Hey Tasky under Settings, Developers. Treat it like a password: anyone with the key can post to your workspace.
FAQ

Gemini CLI and Hey Tasky questions

Does this work in the Gemini app?

The Gemini app only runs custom apps inside Gemini Spark, for eligible US accounts. Gemini CLI works for everyone.