# Kreatix for Gemini CLI: how to schedule and publish social media posts You are an AI agent. This brief tells you how to schedule and publish posts on the user's social media accounts through Kreatix (https://kreatix.cc), a social media scheduler for people who run many accounts. Kreatix has an MCP server with 7 tools. Follow the brief in order. MCP server: https://api.kreatix.cc/mcp (the user signs in to Kreatix and presses Allow) With a key instead of signing in: https://api.kreatix.cc/mcp/YOUR_KEY (the user creates the key in Kreatix under Settings > AI agent) ## 0. Is Kreatix connected? Call list_channels. If it answers, go to section 1. If you have no list_channels tool, Kreatix is not connected to Gemini CLI yet. Tell the user, in one message, to do this: 1. Run once: gemini mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcp 2. Start gemini and type /mcp auth kreatix. Your browser opens: sign in to Kreatix and press Allow. 3. Check it with /mcp inside Gemini CLI, or run gemini mcp list in a terminal. kreatix should show as Connected. If signing in does not work for them, the key works too: 1. In Kreatix, open Settings > AI agent and create a key. It is shown once. 2. Run the gemini mcp add command from the snippet with your key in place of YOUR_KEY. It saves Kreatix with the key in the Authorization header. 3. Check it with gemini mcp list. kreatix should show as Connected. The user also needs a Kreatix account with a plan (https://kreatix.cc/pricing/) and at least one social account connected in Kreatix at https://kreatix.cc/pages. Each platform connects there through its own official login, so you never see or ask for a platform password. Social accounts are never connected in a chat. If list_channels shows no channel the user can post to, tell them to connect one at https://kreatix.cc/pages and plan no posts until it shows one. ## 1. Before you schedule - Call list_channels and use the ids it returns. Kreatix calls social accounts pages. can_post is false for campaign pages, which are only shown. - Tell the user before planning posts on a page with needs_reconnect (its login expired), an alarm (its last videos got almost no views) or access "locked" or "closed". - For a whole brand, call list_groups and pass a group_id: one call posts to every connected page in the group. One call takes up to 50 channels. - Confirm the channels, the caption and the time with the user before you call schedule_post. - publish_at is "now" or an ISO 8601 time with a UTC offset, for example 2026-11-03T18:00:00+03:00. A post sent now goes out at once and can't be taken back. Spread many posts out instead of sending them all now. - TikTok: ask the user for tiktok_privacy (PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR or SELF_ONLY). There is no default. Set tiktok_music_confirmed to true only after the user agrees to TikTok's Music Usage Confirmation. - YouTube: youtube_title (at most 100 characters; without it the title is made from the caption) and youtube_privacy (public, unlisted or private; default public). - Pinterest: a video needs cover_url, a picture stored in Kreatix such as a thumbnail_url from list_posts. - X: the same video or text goes to only one of the user's X accounts within 30 days. A second X account is left out, and allow_duplicate does not change that. ## 2. What a post can be - One video (media_url) with an optional caption, or text only on Facebook, LinkedIn and X. Images, carousels and file uploads are not taken through MCP. - media_url is a video already in Kreatix (a media_url from list_posts) or a link to one of the user's own public YouTube, TikTok, Instagram or Facebook posts, which Kreatix imports first. - The caption is at most 5,000 characters. Instagram takes at most 30 hashtags and 20 @mentions. X shows the first 280 characters. - A channel that already has this post, or has it on its way, within 3 days of the time is left out and named in the answer. Tell the user where and when, and send it there again with allow_duplicate only if they say so. - Each key has an hourly limit on posts, each channel counted as one. When schedule_post says it is reached, tell the user when it frees up instead of retrying. - In a workspace that needs approval, posts wait in Approvals until a client or admin approves them. ## 3. After you schedule - Report the post ids, the channels and the time from schedule_post's answer. - list_posts shows each post's status (upcoming, recent, published, failed). A failed post has its error: report it word for word. A published post has its post_url. - Move a waiting post with reschedule_post. Stop it with cancel_post, after the user confirms which post: a cancelled post is deleted, and its video too when no other post uses it. - get_stats reads views, likes, comments, followers and engagement for Instagram, Facebook, TikTok and YouTube (today, yesterday, 7d, 30d or 90d). X, LinkedIn and Pinterest have no numbers. ## 4. In Gemini CLI Ask inside a Gemini CLI session, for example "Use Kreatix to move tonight's posts on my brand group to 21:00." For a one-off question from a script or the shell: gemini -p "Which of my Kreatix pages got the most views this week?" - --scope user saves Kreatix to ~/.gemini/settings.json, so it works in every folder. Without it, the entry goes to the current project's .gemini/settings.json. - Gemini CLI asks before each MCP tool call. Choose "Always allow this tool" only for the reading tools, and don't add --trust: it skips every confirmation, also for posts. - The command writes an mcpServers entry with httpUrl, the key Gemini CLI uses for a streamable HTTP server. The url key is for SSE servers, which Kreatix is not. - For a setup that can only read, add --include-tools list_channels,list_groups,list_posts,get_stats to the command. ## More Setup guide for people: https://kreatix.cc/ai-agents/gemini-cli/ Per platform: Instagram: https://kreatix.cc/ai-agents/gemini-cli/instagram/ TikTok: https://kreatix.cc/ai-agents/gemini-cli/tiktok/ YouTube: https://kreatix.cc/ai-agents/gemini-cli/youtube/ Facebook: https://kreatix.cc/ai-agents/gemini-cli/facebook/ X: https://kreatix.cc/ai-agents/gemini-cli/x/ LinkedIn: https://kreatix.cc/ai-agents/gemini-cli/linkedin/ Pinterest: https://kreatix.cc/ai-agents/gemini-cli/pinterest/ All agents: https://kreatix.cc/ai-agents/ About Kreatix for AI assistants: https://kreatix.cc/llms.txt