GitHub Copilot + X

Post to X from GitHub Copilot

Ask GitHub Copilot to write and schedule your X posts. BrokenPost connects the two, follows X's rules and posts at the time you pick.

How to connect GitHub Copilot to X

  1. 1

    Connect X in BrokenPost. Sign in with your X account. BrokenPost asks X for permission to post on your behalf.

  2. 2

    In BrokenPost, open Plugins and copy your MCP URL.

  3. 3

    Add the config below to .vscode/mcp.json in your project root.

  4. 4

    Start the server in VS Code and sign in to BrokenPost.

  5. 5

    Ask Copilot in agent mode to schedule a post.

{
  "servers": {
    "brokenpost": { "type": "http", "url": "<MCP_URL>" }
  }
}

What to ask GitHub Copilot

Type these in Copilot agent mode in VS Code. Change the details to fit your posts.

What happens next

  1. 1

    You ask in Copilot agent mode in VS Code, in plain words.

  2. 2

    GitHub Copilot lists the channels you connected in BrokenPost and picks your X account.

  3. 3

    It reads X's rules and settings from BrokenPost, so the post fits X's limits before it is written.

  4. 4

    If you shared a picture, a video or a link to one, it uploads it to your media library.

  5. 5

    It creates the post as scheduled, as a draft, or to go out now, and gives you a preview link.

  6. 6

    At the set time BrokenPost publishes it to X and it shows on your calendar.

X limits GitHub Copilot follows

GitHub Copilot reads these rules from BrokenPost before it writes, so the post fits the first time.

Characters280 characters (4,000 for verified (Premium) accounts, up to 100,000 for articles)
MediaUp to 4 pictures or 1 video per post, or text only
PicturesUp to 4 per post
Video1 per post
ThreadsYes, every extra part is posted as a reply
ArticlesLong-form articles, saved as a draft or published

X settings you can ask for

Say them in plain words, like "who can reply (everyone, people you follow, people you mention, subscribers, verified accounts)", and GitHub Copilot sets them on the post.

If X rejects a post

GitHub Copilot sees the same message and can fix the post for you.

What you seeHow to fix it
You are not allowed to create a post with duplicate contentX blocks posts that match one you sent before. Change a few words, or add a picture, and schedule it again.
There must be a maximum of 4 items per postRemove pictures until there are 4 or fewer, or send one video instead.
There can be maximum of one cashtag ($SYMBOL) per postKeep one $TICKER per post and move the rest to a reply.
Publishing articles on X requires an X Premium subscriptionArticles need X Premium on that account. Post it as a thread instead, or upgrade on X.
X rate limit reached, please try again laterX limits how often an app can post. Space your posts out by a few minutes and retry.
X authentication has expired, please reconnect your accountOpen the channel in BrokenPost and click reconnect. Your scheduled posts stay in place.

Good to know

Questions people ask

Can GitHub Copilot post to X directly?

Yes, through BrokenPost. Connect X in BrokenPost, connect BrokenPost to GitHub Copilot, and GitHub Copilot can schedule, draft or publish X posts.

Does GitHub Copilot know the X limits?

Yes. GitHub Copilot reads X's rules from BrokenPost before it writes: 280 characters (4,000 for verified (premium) accounts, up to 100,000 for articles) and up to 4 pictures or 1 video per post, or text only. BrokenPost checks again before it posts.

Can GitHub Copilot schedule X posts for later?

Yes. Give a day and time, like "Friday at 6pm", and the post goes out then. Ask for a draft if you want to check it first.

Is it free?

GitHub Copilot with BrokenPost works on every plan. The Free plan includes 1 account on every app and 20 posts a month. Paid plans start at $19 a month with unlimited posts.

Which X settings can GitHub Copilot set?

Who can reply (everyone, people you follow, people you mention, subscribers, verified accounts); Post to an X Community; Post or article; Article title, cover picture and draft or published; Made with AI label; Paid partnership label.

Can GitHub Copilot post an X thread or comments?

Yes. Ask for a thread or a first comment and BrokenPost posts each part as a reply, right after the first one.

Can I schedule an X thread?

Yes. Add more parts under your first post. BrokenPost posts the first part at your time, then each next part as a reply.

Can I schedule X articles?

Yes. Set the post type to article, add a title and a cover picture, and choose if it goes live or stays a draft on X.

More apps with GitHub Copilot

Post to X with other AI

All about scheduling X posts

Write once. Post everywhere.

Start free with BrokenPost. Connect your apps and your AI in a few minutes.