Skip to content

X MCP in Cursor: Changelog Threads With Tagged Links

Turn a git diff into an X thread from Cursor with the TimeToPost MCP server. Tag the docs link with build_campaign_urls, keep each tweet under 280 characters.

Connect Cursor to TimeToPost

Set up TimeToPost in Cursor

  1. Open ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one repo.
  2. Add the timetopost entry below and save.
  3. Enable the server in Cursor’s MCP settings and finish the browser sign in.
  4. Ask the agent to call whoami, then list_integrations, before the first post.
~/.cursor/mcp.json
{
  "mcpServers": {
    "timetopost": {
      "url": "https://api.timetopost.co/mcp"
    }
  }
}

OAuth with dynamic client registration, so there is no client id or secret to paste.

Diff to thread, with a tracked link

Cursor can read the diff between two tags and summarise it as a thread. The useful extra step is the link: build_campaign_urls tags your docs or changelog URL with a source, medium and campaign, without any network call, so clicks from the thread are counted in your analytics.

Keep the tagged link in the last tweet. TimeToPost counts URLs at full length in its 280 character check, and a long tagged URL can push a tweet over the limit, so ask Cursor to count each tweet after adding the link.

Example prompt and the tool calls it makes

Prompt: “Summarise git diff v2.3.0..v2.4.0 as a 4 tweet X thread, tag https://timetopost.co/changelog/ with source x and campaign v240, put it in the last tweet and file the thread as a draft.”

1. build_campaign_urls

Read only and deterministic: returns the tagged URL, nothing is saved.

input
{"records":[{"url":"https://timetopost.co/changelog/","source":"x","medium":"social","campaign":"v240"}]}

2. create_drafts

Four segments on twitter become a four tweet thread at approval.

input
{"external_ref":"v240-x","variants":[{"platform":"twitter","segments":["<tweet 1>","<tweet 2>","<tweet 3>","<tweet 4 with tagged link>"]}]}

X rules the server enforces

RuleX
Text280 characters per tweet; URLs count at full length
ThreadsUp to 24 tweets, each up to 280 characters; posted as replies 1.1 seconds apart; media only on the first tweet
ImagesUp to 4 per post: JPEG, PNG, GIF or WebP, up to 5 MB each
VideoOne MP4 or MOV per post, up to 512 MB, never mixed with images
Token lifeAbout 2 hours by design; refreshed at publish, so an old expiry date is normal
  • Approval queue: create_drafts accepts X.
  • Numbers back: get_post_metrics returns X results.
  • The provider key is twitter. A draft with two or more segments becomes a thread.

Limits and gotchas

  • URLs count at full length in the 280 character check, so a tagged link costs more than it looks.
  • X allows one video or up to 4 images on the first tweet, never both.
  • If the X account was connected before media upload was allowed, reconnect it before attaching images.
  • Global file ~/.cursor/mcp.json applies to every project; .cursor/mcp.json applies to one repo and is easy to commit by mistake.

Related pages

Cursor setup checked on 2026-12-02 against Cursor MCP docs. X rules read from the TimeToPost server code on 2026-11-07.

Frequently asked questions

Can Cursor schedule the thread straight away instead of drafting it?

Yes, with schedule_post: the first tweet in content, the rest in thread, and a scheduledAt with a time zone. Drafting keeps a review step.

Does build_campaign_urls send anything to X?

No. It only builds tagged URLs from what you pass in and returns them.

How do I see clicks from the thread?

get_post_metrics returns link clicks for X posts under about 30 days old, and the tagged URL shows the campaign in your own analytics.

Should TimeToPost go in the global or the project mcp.json?

The global ~/.cursor/mcp.json. Your social accounts are not tied to one repo, and a project file is easy to commit by mistake.

I build TimeToPost.

Connect Cursor to X through TimeToPost. The MCP server and its 126 tools are on every plan, from $12 a month.