VS Code + X (Twitter)

X (Twitter) posts with VS Code and Bolta

Draft and queue social posts from VS Code's AI chat. Parts of the VS Code route are not confirmed yet, and the note below says which. Nothing goes live on X until you say yes.

Add one small JSON file with the Bolta server address. Sign in from the browser if VS Code offers it. Otherwise use a Bolta API key.

VS CodeBolta connected
You

Write three X posts about the feature I just shipped and save them as drafts

Illustration of the reply: Bolta returns a draft showing the connected account and the scheduled time, with Approve, Edit and Reject actions.

Illustration. Your drafts show your real text, account and time.

What is and is not confirmed

Read this before you set up VS Code

  • The config and sign-in steps follow Bolta's own guide and VS Code's MCP format. Nobody has run a full draft, review and schedule through VS Code yet.
  • Menu names and file locations change between VS Code versions, so check VS Code's MCP docs if a label does not match.
  • Bolta's skills repository lists VS Code as not tested.
Bolta on X

What Bolta does on X

Bolta reads the limit for each connected X account, so a Premium account and a free account get different ceilings. Text that is too long does not get trimmed on X: the post fails, so the draft has to fit first.

  • Single posts and threads. In a thread, Bolta posts every part after the first as a reply to the one before.
  • Images. A post needs text: an image with no text is not supported on X.
Limits and format

X limits and format rules

Network rules last checked 2026-07-28. Bolta's posting rules for your workspace (get-posting-rules) win if they differ from this page.

Not promised for X from VS Code: Polls and Spaces announcements. Neither is confirmed for Bolta. How many hashtags work best. Bolta checks none, and this page makes no claim about it.

X limits and format rules
What to knowX's own ruleWhat Bolta does
Post lengthAccounts without a paid subscription are limited to 280 characters. X Premium subscribers can publish up to 25,000.Bolta reads the limit per account. Longer text makes the post fail, so shorten it first. The 25,000 limit is a ceiling for Premium accounts, and X can still refuse a long post.
Links and mediaA pasted link counts as 23 characters however long it is. Photos, videos and GIFs count as zero characters.Bolta does not check how many hashtags you use or their format. They are kept as typed.
ThreadsPosts can be chained into a thread, and each post carries its own separate character limit.Each X thread part after the first is posted as a reply to the one before it.
Who can replyReplies can be limited to everyone, accounts you follow, verified accounts, or only the accounts you mention. It is chosen before you post.The default is that anyone can reply unless you limit it.
VideoNot stated on this page.Video on X is checked on X's side for duration, format and posting eligibility, so a successful upload does not guarantee publication. Ask for the posting rules before you attach one.
Best practices

VS Code jobs for X, and how to write them

  • Draft a week of developer-focused posts in your brand voice
  • Write to 280 unless the account has X Premium. Check the count, because a post over the limit fails instead of being cut.
Prompts

Example prompts for X

Things to type in VS Code. Each one asks for a draft and shows you the text first.

Write three X posts about the feature I just shipped and save them as drafts

Read the top entry in CHANGELOG.md and draft an X post about it that fits in 280 characters

Look at the newest tagged release and draft an X post with a link to it

Check the posting rules for X, then draft a post from the README tagline

Review

Bolta saves a draft, you read the exact text, you say yes

  1. 01

    Bolta saves a draft

    VS Code asks Bolta for the X post in your brand voice (save-post). A saved draft is never public.

  2. 02

    You read the exact text

    On X the exact text includes the character count with links counted at 23, and, for a thread, every part in order.

  3. 03

    You say yes

    Only then does Bolta schedule or publish (publish-post), in your workspace's timezone. Safe Mode, client sign-off and brand approval rules still apply.

VS Code and Bolta

Using VS Code for X

Parts of this route are not confirmed. The note above says which.

For X, VS Code, from Microsoft, reaches Bolta through Remote MCP server in mcp.json (Streamable HTTP). Sign-in: Sign in from the browser, or API key as a Bearer header. The X account itself is connected inside Bolta, not in VS Code.

VS Code adds Bolta through a small .vscode/mcp.json file, with a browser sign-in if it offers one and an API key otherwise. You ask for X drafts in its AI chat.

An illustration from the VS Code guide, not real output. You ask: Write three X posts about the feature I just shipped and save them as drafts The reply goes along these lines: Three drafts saved with different angles. None is scheduled. Tell me which one to keep. Drafts saved. Wait for your yes.

An illustration from the VS Code guide, not real output. You ask: What is waiting for my approval in Bolta right now? The reply goes along these lines: Here are the drafts in your review list, grouped by routine or campaign, with a short preview of each. Read only. Nothing approved.

A key pasted into a committed file is a key shared with everyone who can read the repo. Use VS Code's inputs block so the key is typed once and held outside the file.

Give it only the permissions you need. A key without posts:write cannot save posts.

  • Several drafts in one go. Ask for a few angles on the same release, such as one for customers and one for developers, and review them side by side.
  • Routines that repeat. Plan a weekly update and confirm it before it is saved. A routine lives in Bolta, and switching it on is a separate yes.
  • It checks the connected accounts. It lists which social accounts are linked. If none are, it asks Bolta for a connect link instead of guessing.
  • It reads your voice. Before writing, it pulls your saved voice and brand context so the draft sounds like you and not like release notes.
  • Setup: Add Bolta to .vscode/mcp.json. In your project folder, create .vscode/mcp.json and add a server named bolta with type http and the URL https://mcp.bolta.ai/mcp. The JSON on the Bolta MCP docs page can be pasted as is. Newer VS Code versions may point new setups at other locations, so the file path can differ for you. The address and the http type stay the same.
  • Setup: Check that Bolta's tools are listed. Open VS Code's chat in agent mode and look for Bolta in the tools list. If it is listed and not switched off, the connection works. Ask which Bolta brands it can see, and it should name the ones you ticked.
  • MCP with an API key. Create a key in Settings, API Keys, and pass it as a Bearer header through a promptString input. The config is documented in Bolta's guide, but this route has not been run end to end.
  • Posts you approved earlier and scheduled in Bolta publish at their time.
Connect

Connect VS Code to Bolta

Add one small JSON file with the Bolta server address. Sign in from the browser if VS Code offers it. Otherwise use a Bolta API key.

FAQ

X questions, answered for VS Code

What happens if VS Code writes an X post that is too long?
The post fails. Bolta does not trim X text, so VS Code has to shorten it first. The limit is 280 characters for accounts without a paid subscription, and X Premium accounts can post up to 25,000, though X can still refuse a long post.
Can VS Code write an X thread?
Yes. Ask for several parts, and Bolta posts each part after the first as a reply to the one before it, so they read as one thread. Each part carries its own limit. You read all of the parts in VS Code and say yes before any of them goes out.
Does Bolta publish without my approval?
Not by default. A connected AI app cannot schedule or publish a post that has not been approved. Bolta refuses it or sends it to review, and the chat should show you the exact text first. An API key you create yourself acts as you, so the same care is then up to you and the app. Safe Mode and required client sign-off still apply.
Where does the Bolta config file go in VS Code?
For one project it is .vscode/mcp.json inside the project folder, with a top-level servers key. VS Code's guided MCP: Add Server command can also write it for you. Newer VS Code versions may point new setups at other locations, so check VS Code's MCP docs if the file seems ignored.
Do I need the Bolta skill as well?
It is optional but useful. Run npx skills add boltaai/bolta-skills --skill bolta, or copy the skills/bolta folder from the bolta-skills repository to where your app reads skills. The skill teaches the chat to draft in your voice and to ask before anything is approved. Node.js is needed for the command.
Can it run a weekly post routine when VS Code is closed?
A routine is saved in Bolta and runs there, so it does not need the editor open. Creating one takes your confirmation of what it will do, and switching it on takes a separate yes. Routines draft for your review. They do not publish unattended for client brands.
Does VS Code publish X posts without my yes?
No. Nothing is approved, scheduled or published until you say yes to that X post. Whether VS Code completes the connection is not fully confirmed, so read the note above first.

More from VS Code

VS Code can work with the other networks Bolta publishes to. Each page has its own limits and review notes.

X from other AI agents

The same X limits apply whichever agent asks. The connection and the setup are what change.

Try an X draft from VS Code

Connect VS Code, ask for an X draft and read the exact text. Nothing goes live until you say yes.