Skip to content

Post to TikTok from VS Code

Kreatix's MCP server (https://api.kreatix.cc/mcp) lets VS Code schedule posts on every TikTok account you connect, move or cancel them and read their stats. Plans start at $13 a month after a 7-day free trial with a card.

VS Code is Microsoft's code editor. Its Copilot agent sessions can call MCP tools such as Kreatix, so you can plan posts without leaving the editor. A video with your caption, shared with the privacy you choose; TikTok takes no text-only post.

Updated November 2026

Install in VS Code

VS Code opens and asks to add kreatix, then to sign in. Sign in to Kreatix, or create your account there, and press Allow.

Connect VS Code to Kreatix

Sign in with Kreatix

No key to copy: paste the address, sign in to Kreatix and press Allow.

  1. In Kreatix, connect the pages VS Code should post to (kreatix.cc/pages).
  2. In the Chat view, select Copilot as the Session Target. Then run Chat: Open Customizations from the Command Palette and select MCP Servers.
  3. Select Add Server, choose HTTP and enter https://api.kreatix.cc/mcp. Use kreatix as the server ID.
  4. For the destination, select Global > Copilot Global. That saves the entry from the snippet to ~/.copilot/mcp-config.json. You can also add it to that file by hand.
  5. Accept the trust request. When VS Code asks you to authorize, or when you choose Authenticate in the server's actions menu, sign in to Kreatix and press Allow.
  6. Ask Copilot to list your Kreatix pages and expand the tool call to see that Kreatix answered.
{
  "mcpServers": {
    "kreatix": {
      "type": "http",
      "url": "https://api.kreatix.cc/mcp",
      "tools": ["*"]
    }
  }
}

With a key

For setups without sign-in. The key works like a password, so keep it to yourself.

  1. In Kreatix, connect the pages VS Code should post to (kreatix.cc/pages).
  2. In Kreatix, open Settings > AI agent and create a key. It is shown once.
  3. Set the key as an environment variable named KREATIX_API_KEY in the environment VS Code starts from. VS Code's docs say to use a reference like this and not to write the key itself into the file.
  4. Open ~/.copilot/mcp-config.json (create the file if it isn't there) and add Kreatix with its url and the Authorization header, as in the snippet.
  5. Run Chat: Open Customizations, select MCP Servers and check that kreatix is listed and on.
{
  "mcpServers": {
    "kreatix": {
      "type": "http",
      "url": "https://api.kreatix.cc/mcp",
      "headers": {
        "Authorization": "Bearer ${KREATIX_API_KEY}"
      },
      "tools": ["*"]
    }
  }
}

What VS Code can do on TikTok

A video with your caption, shared with the privacy you choose; TikTok takes no text-only post.

SettingValuesNeededWhat it does
media_urlURLYesThe video: a link from your Kreatix library or a public YouTube, TikTok, Instagram or Facebook post, which Kreatix imports first.
tiktok_privacyPUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLYYesWho can see the video: everyone, friends, followers or only you (private), in that order. There is no default, so the agent has to ask you.
tiktok_music_confirmedtrueYesSet to true once you agree to TikTok's Music Usage Confirmation. Without it, the TikTok post is refused.
captionstring (max 5000)NoThe video's text on TikTok. Only the first 2,200 characters go.

Ask in plain words

Ask in a Copilot chat session in VS Code and name Kreatix, for example "Use Kreatix to list this week's posts on my brand group." Naming the server helps the agent pick the right tool.

  • Post my newest video on both TikTok pages tomorrow at 19:00, public. I agree to TikTok's music terms.
  • Take this YouTube Shorts link and post it on TikTok tonight at 21:00, followers only.
  • Move Saturday's TikTok post to Sunday 12:00.

TikTok rules to know

  • Kreatix never picks a privacy level for you: a TikTok post without your choice is refused.
  • You must agree to TikTok's Music Usage Confirmation, or the TikTok post is refused.
  • TikTok refuses videos whose average frame rate is outside 23 to 60 fps, so Kreatix sends it a 30 fps copy and keeps your original.
  • Only the first 2,200 characters of the caption go to TikTok.
  • The agent schedules videos only; TikTok photo posts go from Kreatix's Publish now to your TikTok inbox.

Tips for VS Code

  • Choose Copilot Global, not a workspace's .mcp.json: the workspace file is meant to be committed and shared with your team.
  • Copilot Global is the file ~/.copilot/mcp-config.json. Other Copilot clients on the same computer, such as Copilot CLI, read it too. It is not synced to your other machines.
  • For a setup that can only read, replace "*" in tools with "list_channels", "list_groups", "list_posts" and "get_stats".
  • Skip .vscode/mcp.json and code --add-mcp for this. VS Code's docs describe them as the older editor-managed format, which belongs to the Local harness that is being retired.
  • Kreatix asks the agent to confirm the pages, caption and time with you before it schedules. It cannot delete pages, read messages or change your account, and you can remove it any time in Settings > AI agent.

Questions

How do I post to TikTok from VS Code?

Connect VS Code to Kreatix once, as shown above. Then ask it to post: name your TikTok pages or a page group, the video or text and the time. Kreatix asks VS Code to confirm the pages, caption and time with you before it schedules.

Why does the agent ask me about privacy every time?

TikTok's rule for apps that post for you: the person picks who can see each video, and there is no default. Kreatix never picks Public for you, so a TikTok post without your choice is refused.

Can I post a YouTube Short to TikTok?

Yes. Give the agent the public link: Kreatix downloads the video into your library first (from YouTube, the best version up to 1080p), then schedules it on TikTok. If the download fails, the agent says so and nothing is scheduled.

My video was shot at a low frame rate. Will TikTok take it?

TikTok refuses videos whose average frame rate is outside 23 to 60 fps. Kreatix checks the file and sends TikTok a 30 fps copy; your original stays as it is.

Can the agent turn off comments, duets or stitches?

No. schedule_post sends TikTok only your privacy choice. The comment, duet and stitch switches, branded content and the AI label are set on Kreatix's Publish screen.

Where does VS Code keep the Kreatix entry?

With Copilot Global, in ~/.copilot/mcp-config.json, or in $COPILOT_HOME/mcp-config.json when that variable is set. The entry sits under mcpServers. A workspace's .mcp.json uses the same format, but it is the file teams commit and share.

How do I remove Kreatix from VS Code?

Run Chat: Open Customizations, select MCP Servers, open the actions menu on kreatix and choose Uninstall, or Disable to keep the entry. If Uninstall isn't offered, delete the kreatix entry from ~/.copilot/mcp-config.json. If you used a key, also delete it in Kreatix under Settings > AI agent.

Kreatix schedules one video to every page you run, each with its own platform settings.

Start your 7-day free trial

VS Code with other platforms

TikTok from other agents