Here is the short answer: you can publish and schedule social media posts straight from Claude Code, Cursor, or Codex by connecting Po Once's hosted MCP server (https://po-once.com/mcp) or installing the Po Once agent skill CLI (Stiffjobs/po-once-agent-skill). For everyday text posts, analytics checks, and rescheduling, hosted MCP takes one command and signs in with OAuth — no API key required. When your workflow needs large local video uploads from disk, background jobs, or CI scripts, the agent skill and CLI helper handle streaming transfers cleanly.
Here is how the two connection paths compare:
| Path | Best for | Auth method | Media upload method | Plan availability |
|---|---|---|---|---|
Hosted MCP (https://po-once.com/mcp) | Claude Code, Cursor, Codex interactive sessions | Browser OAuth per workspace | Presigned upload URL (create_media_upload_url) | All plans (Free included) |
Agent Skill CLI (po-once.cjs) | Local media >200 MB, background jobs, CI pipelines | Organization API key (Create Key) | Streams straight from disk (upload / publish --background) | All plans (Free: 1 API key) |
(If you mostly use claude.ai, Claude Desktop, or ChatGPT in the browser, read our companion guide: How to Schedule Social Media Posts from Claude and ChatGPT Using MCP.)
Why schedule social posts from your coding environment
When developers or small product teams ship a release, the announcement copy usually lives right next to the codebase — in a changelog, release notes, or a feature branch. Switching out of your editor to open three social tabs, resize assets, and paste captions breaks momentum, which is why launch updates often slip until next week.
Connecting Po Once to your coding agent keeps the whole release loop in one place:
- Read last month's post performance before writing a launch announcement.
- Draft platform-specific captions directly from your actual release diff or changelog.
- Queue scheduled posts with an explicit local timezone and confirm every detail in the terminal before anything goes out.
Option A: Connect via Hosted MCP (fastest setup, no API key)
Po Once serves a Streamable HTTP MCP endpoint at https://po-once.com/mcp. Any workspace member can connect via browser OAuth, and you can narrow or revoke workspace permissions at any time from the AI Agent page (Configure or Disconnect).
1. Claude Code
Run one command in your terminal:
claude mcp add --transport http po-once https://po-once.com/mcpWhen Claude Code opens your browser to Connect to Po Once, sign in, tick the workspaces it may access, choose the permissions for each workspace, and click Authorize connection.
2. Cursor
Add Po Once to .cursor/mcp.json in your project:
{
"mcpServers": {
"po-once": {
"url": "https://po-once.com/mcp"
}
}
}Reload or connect the server in Cursor, complete the browser sign-in, and authorize your chosen workspaces.
3. Codex
Register the hosted server with:
codex mcp add po-once --url https://po-once.com/mcpOnce authorized, test any client with a safe read-only prompt: "List my connected social accounts and remaining monthly posts in Po Once."
Important note on uploading files from MCP config or CLI clients
If you have seen Po Once's in-chat file picker in Claude Desktop or claude.ai, keep this difference in mind: the in-chat uploader (media_open_upload) only appears when Po Once is added as a connector in Claude Desktop or claude.ai — never through an MCP config file or a CLI.
When you run Claude Code, Cursor, or Codex over MCP, your agent uploads files through Po Once's upload URL (create_media_upload_url) or falls back to the CLI helper below for large local files.
Option B: Install the Po Once Agent Skill (best for local videos and CI)
If you publish product demos, screen recordings over 200 MB, or automated release announcements from a CI pipeline, install the portable agent skill:
npx skills add Stiffjobs/po-once-agent-skillThis works in Claude Code, Cursor, Codex, Antigravity, OpenClaw, and other command-capable agents.
Setting up the API key and helper script
- Open the AI Agent page inside your Po Once organization (organization owners and admins can create keys).
- Give the key a clear name like
CLIorRelease Agent, click Create Key, and copy the token (po_live_org_...), which is shown once. - Run the bundled setup command from the skill directory:
./scripts/po-once.cjs setup --api-key po_live_org_<secret>The helper verifies your connection with accounts and stores the config cleanly.
Uploading large demo videos without compressing them
Po Once does not impose an artificial file-size cap of its own — only the destination social network's limits apply. Never transcode or shrink a demo video just to fit a timeout; instead, use --background:
./scripts/po-once.cjs publish \
--file ./release-demo.mp4 \
--caption "v2.4 is out now..." \
--accounts <socialProfileId> \
--mode scheduled \
--schedule 2026-12-01T09:00:00Z \
--timezone Asia/Taipei \
--backgroundCheck progress with jobs:wait --id <job_id> --timeout 60 until status is succeeded.
A practical release-day workflow (hypothetical example)
Picture a fictional solo SaaS founder shipping a Friday update and wanting to announce it on Threads and Instagram without leaving the editor (note: connecting multiple accounts requires Starter or Pro; Free supports 1 connected account):
- Check remaining quota and connected targets:
Ask Claude Code or Cursor to call
accountsandusage(or run./scripts/po-once.cjs accountsandusage) to confirm exactsocialProfileIdvalues and monthly slots. - Draft from the real changelog:
Point the agent to
CHANGELOG.mdand ask for:- One Threads post under 500 characters plus 3 sequential follow-up replies breaking down what changed (and a first comment for the changelog URL).
- One Instagram caption tuned for a demo clip or screenshot.
- Upload and create saved content first:
Creating saved content does not publish anything. Inspect the saved item (
contents:get) so you know media and links are attached properly. - Confirm before scheduling:
Have the agent print the exact target account IDs, final captions, follow-ups, and local time (
Asia/Taipei,America/New_York, etc.). Only after you reply "Yes" does it schedule the batch. - Adjust in place if shipping slips:
If a release moves from Friday to Monday, ask the agent to call
update_scheduled_post(orposts:update) instead of deleting and re-creating — that keeps your post ID and avoids consuming a second monthly slot.
For details on structuring Threads follow-up chains, see How to Schedule Threads Posts and Multi-Part Thread Chains.
Five guardrails for developer social automation
- Do not retry
content:create,post, orpublishblindly after a timeout. Those commands are not idempotent. Checkcontentsorpostsfirst so you do not create duplicate scheduled posts. - Check platform restrictions before targeting batches. YouTube profiles only accept
videoposts; Telegram supports up to 4,096 characters for text-only or 1,024 characters with up to 10 media items; LINE Official Account posts broadcast to every friend and consume your LINE monthly quota; Threads caps each post and follow-up reply at 500 characters. - Always pass an explicit
--timezone. Without--timezone, the CLI helper defaults toUTC. - Keep API keys scoped and separate. Use one key per environment (for example,
Laptop-CLIvsGitHub-CI) and revoke unused keys immediately on the AI Agent page. - Keep humans in the loop for public replies. Never let an agent reply to public comments (
comments:reply) without confirming the exact text first.
Plan limits to know upfront
Every feature described above maps directly to Po Once's current plans:
- Free ($0/month): 1 connected account, 30 scheduled or direct posts per month, 500 MB storage, 1 API key, 1 active automation rule, 1 keyword monitor (24-hour interval), and Hosted MCP included.
- Starter ($19/month): up to 10 connected accounts, unlimited posts, 10 GB storage, unlimited API keys, up to 5 team members, unlimited automation rules and keyword monitors (1-hour interval), plus Telegram AI assistant.
- Pro ($49/month): unlimited accounts, workspaces, team members, and media storage, plus all features.
Starter and Pro both include a 7-day free trial. See Pricing or Use with Agents and our API Reference for full endpoints.
Frequently asked questions
Can I use Po Once with Claude Code, Cursor, or Codex on the Free plan?
Yes. Hosted MCP (https://po-once.com/mcp) works on every plan, Free included, and Free also includes 1 organization API key for the CLI helper.
When should I choose the CLI skill over Hosted MCP?
Choose Hosted MCP for fast OAuth setup and day-to-day drafting, analytics, comment inspection, and text/URL scheduling. Choose the CLI skill (Stiffjobs/po-once-agent-skill) when you need to stream large local video files from disk, run --background upload jobs, or automate inside CI/CD.
Can I edit a scheduled post from the terminal without losing my monthly quota?
Yes. Use update_scheduled_post via MCP or ./scripts/po-once.cjs posts:update to change the scheduled time, timezone, caption override, or Threads follow-up replies while the post is still scheduled.
Why didn't the in-chat upload widget appear in Claude Code or Cursor?
The interactive upload widget only renders in MCP Apps clients where Po Once is added as a connector (Claude Desktop or claude.ai), not via CLI registration or .cursor/mcp.json. Use create_media_upload_url or the CLI helper instead.
Final takeaway
Whether you prefer OAuth-connected MCP tools inside Claude Code, Cursor, and Codex or a scriptable CLI helper for large demo videos, keeping social publishing close to your shipping workflow makes consistent updates realistic for a small team.
Ready to wire social scheduling into Claude Code, Cursor, or Codex without building your own platform integrations? Po Once includes hosted MCP and 1 API key on every plan. Start for free — connect one account first.
