X Ads from your shell.
Pull X (Twitter) Ads analytics for campaigns, line items, and promoted tweets, walk the campaign tree, manage tailored audiences and targeting, and flip status — all from Bash over the X Ads MCP. No Ads API client, no OAuth 1.0a signing.
cogny --who
TWO PATHSX Ads Manager hides budget and objective on the line item and rejects analytics windows over 7 days or off-midnight. The CLI auto-fixes those time-window errors and returns clean JSON in one call. Connect X Ads once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.
❯ start SoloSelf-onboard with one command. The CLI issues a key, wires nothing, and exposes every X Ads tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the X Ads MCP. Send --input JSON, get JSON back.
mcp__X_Ads__tool_get_analyticsPerformance metrics for campaigns, line items, or promoted tweets.mcp__X_Ads__tool_get_campaignsList campaigns with effective status, currency, and funding instrument.mcp__X_Ads__tool_update_campaign_statusPause, activate, or draft a campaign.cogny tools list
MOREA sample of the rest of the X Ads surface. Run cogny tools list --json for every tool and its input schema.
mcp__X_Ads__tool_list_ad_accountsmcp__X_Ads__tool_get_line_itemsmcp__X_Ads__tool_get_promoted_tweetsmcp__X_Ads__tool_get_tailored_audiencesmcp__X_Ads__tool_get_targeting_criteriamcp__X_Ads__tool_add_targeting_criteriamcp__X_Ads__tool_update_line_itemmcp__X_Ads__tool_search_conversationsmcp__X_Ads__tool_get_web_event_tagscogny --faq
No — it is the Cogny CLI calling the X Ads MCP over the cogny-mcp-proxy. You authenticate once via Cogny (OAuth handled for you) and then call every tool from Bash. No Ads API app or OAuth 1.0a request signing to manage.
On the line item, not the campaign — the UI objective is the line item `goal` and budget lives there when budget_optimization is LINE_ITEM. Call tool_get_line_items to resolve both.
Yes — that is the point. `npx @cogny/cli init --agent claude-code` issues a key, then `cogny tools call mcp__X_Ads__tool_get_analytics --input ...` works from any shell. No /mcp wiring or restart needed.
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt