About X Harness Oss
X Harness Oss is an MCP server published by Shudesu in the Social category: open-source X (Twitter) marketing automation — the self-hosted alternative to XTEP. Conduid read 70 tools from its source: account_summary, add_growth_draft, add_growth_source, add_step_message, bookmark, create_article and 64 more. No package is published for it, so it installs from a source checkout.
The repository has 107 stars and 47 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include social.
Install
git clone https://github.com/Shudesu/x-harness-ossTools (70)
account_summaryGet account summaryadd_growth_draft投稿ドラフトを承認キューに入れる(ダッシュボードの承認画面で ok/編集/却下 → 予約投稿)。scheduledAt は必ず YYYY-MM-DDTHH:MM:SS+09:00 形式(それ以外だと予約発火時刻がずれる)。動画引用投稿は text 末尾に scrape_post の embedUrl を含め、quoteTweetId にピラー投稿IDを指定できる。| Parameter | Type | Description |
|---|---|---|
| quoteTweetId | string | 引用するツイートID(ピラー紐付け用、任意) |
| scheduledAt * | string | YYYY-MM-DDTHH:MM:SS+09:00 形式必須 |
| text * | string | 投稿本文 |
| type * | string | 投稿タイプ(例: quote_rt / video / opinion / progress) |
| xAccountId * | string |
add_growth_source海外バズ投稿などのネタをソース候補として保存する(ダッシュボードの「海外ネタ」タブでレビューできる)。scrape_search / scrape_post で見つけた投稿を、原文+日本語訳+引用RT文面案つきで登録する。| Parameter | Type | Description |
|---|---|---|
| author * | string | 元ポストの投稿者ハンドル |
| likes | number | |
| sourceTweetId * | string | 元ポストのツイートID |
| suggestedQuoteText | string | 引用RT文面案 |
| summaryJa | string | 日本語要約 |
| textEn * | string | 原文 |
| textJa * | string | 日本語訳 |
| theme | string | テーマタグ(ピラー紐付け用) |
| transcript | string | 動画の文字起こし(あれば) |
| videoUrl | string | 動画URL(あれば) |
| views | number |
add_step_messageAdd a step message| Parameter | Type | Description |
|---|---|---|
| actionType * | string | |
| conditionTag | string | |
| delayMinutes * | number | |
| link | string | |
| sequenceId * | string | |
| stepOrder * | number | |
| template * | string |
bookmarkBookmark a tweet| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId * | string |
create_articleX Article(長文記事)の下書きを作成する。bodyはMarkdownで書けばX Articles公式のcontent_state(DraftJS)に変換される: # 見出し→大見出し / ## と ### →小見出し(Articlesは2階層のみ) / - ・1. リスト / > 引用 / **太字** *斜体* ~~取消線~~ / [テキスト](https://...) と裸URL→リンク / GFM表と```コード```→markdownブロック / --- →区切り線 / 単独行の https://x.com/…/status/… →ポスト埋め込み。単独行の  は画像をfetch→Xへアップロードしてインライン埋め込み(動画URLならamplify_video)。 と書けば upload_image 済みのメディアIDを直接使う(GIFは media:<id>#tweet_gif)。取得・アップロードに失敗した画像は記事全体を失敗させずスキップし、レスポンスの warnings に理由を返す。下書き作成は10件/24hの上限があり、バリデーションエラーでも1消費する(表・コードの加重文字数合計が1万超なら送信前に400で止める)。タイトルが60字を超えると warnings で警告する — draft作成は201で通るのに公開APIが「article not found」を返す罠がある(44字は実測OK)。公開にはアカウントのX Premium(いずれかのプラン)が必要 — 2026年1月に全Premiumへ開放済み| Parameter | Type | Description |
|---|---|---|
| body * | string | 記事本文(Markdown。空行区切りで段落) |
| coverMediaId | string | カバー画像のメディアID(upload_image ツールで取得。省略するとカバー無しで作成される — 記事のサムネイルが必要なら必ず指定すること。推奨サイズ 1500×600 の 5:2) |
| title * | string | 記事タイトル |
| xAccountId * | string |
create_campaigndraft_campaignの結果をそのまま保存せず利用者確認後に呼ぶ。LINE先行キャンペーンの参加リンクを作成する。既存X告知投稿と署名連携済みLINE接続を指定。Xへの投稿・DMは行わない。| Parameter | Type | Description |
|---|---|---|
| awardMode | string | |
| budgetUsd | number | |
| claimPhrase * | string | |
| confirmEarlyNotice | boolean | 先行案内の対象見込みを利用者が確認した場合のみtrue。LINE側には送信せず下書きを作る。 |
| earlyNoticeFromGateIds | array | |
| endsAt * | string | Timezone-qualified ISO date |
| entryPage | string | |
| externalCostUsd | number | |
| followPolicy | string | |
| likePolicy | string | いいね確認は最大100人。確認不能は失格にしない。 |
| lineConnectionId * | string | |
| loserFollowup | object | |
| messageTemplates | object | |
| minAccountAgeDays | integer | |
| minFollowers | integer | |
| postCostUsd | number | |
| postId * | string | |
| requireFollow | boolean | 非推奨。trueはverify_winners。標準は明示オプトイン必須。 |
| rewards * | array | |
| scenarios | object | |
| settleSec | integer | |
| slug * | string | |
| tier | string | |
| title * | string | |
| verifyConditionsOptIn | boolean | |
| xAccountId * | string |
create_engagement_gateDeprecated creation endpoint. Use create_campaign for LINE-first participation; this endpoint rejects new legacy gates.| Parameter | Type | Description |
|---|---|---|
| actionType * | string | |
| deliveryMethod | string | Legacy only. New participation uses create_campaign (LINE-first). Existing gates retain their method. |
| expiresAfterHours | number | Hours until gate auto-deactivates. Default: 72 for hot_window, none for constant. |
| link | string | |
| lotteryEnabled | boolean | |
| lotteryLoseTemplate | string | |
| lotteryRate | number | |
| lotteryWinTemplate | string | |
| pollingStrategy | string | Polling frequency strategy. hot_window (default): high frequency initially, decays over 72h. constant: fixed 15min interval. manual: no auto-polling. |
| postId * | string | |
| replyKeyword | string | Only match replies containing this keyword |
| replyTemplates | array | |
| requireFollow | boolean | Require follow in addition to reply trigger |
| requireLike | boolean | Require like in addition to reply trigger |
| requireRepost | boolean | Require repost in addition to reply trigger |
| template * | string | |
| triggerType * | string | |
| xAccountId * | string |
create_postツイート/ポストを新規作成する| Parameter | Type | Description |
|---|---|---|
| mediaIds | array | メディアID一覧(upload_imageで取得) |
| paidPartnership | boolean | 有料提携(PR)表示を付ける |
| quoteTweetId | string | |
| replyToTweetId | string | |
| text * | string | |
| xAccountId * | string |
create_staffスタッフを作成する| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| role * | string |
create_step_sequenceCreate a step sequence| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| xAccountId * | string |
create_threadスレッド投稿を作成する(複数ツイートを連続投稿)| Parameter | Type | Description |
|---|---|---|
| texts * | array | スレッドの各ツイートテキスト(順番通り) |
| xAccountId * | string |
delete_postDelete a tweet by ID| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId * | string |
delete_staffスタッフを削除する| Parameter | Type | Description |
|---|---|---|
| id * | string |
draft_campaignキャンペーン案と検証結果を返す。保存しない。create_campaignの前に必ず利用者に内容を確認する。| Parameter | Type | Description |
|---|---|---|
| awardMode | string | |
| brief * | string | |
| quota | integer | |
| rewardHint | string | |
| tier | string | |
| xAccountId * | string |
enroll_userEnroll user in sequence| Parameter | Type | Description |
|---|---|---|
| sequenceId * | string | |
| xUserId * | string | |
| xUsername | string |
external_gate_page_importImport an unchanged provider page for a scan. Can finalize campaign prizes and enqueue LINE results under owner opt-in. Do not pass AI eligibility decisions. Supply authors with id,username,created_at,protected. Next token is null only when provider pagination is exhausted. Identical page retries are idempotent; never use a paid fallback.| Parameter | Type | Description |
|---|---|---|
| authors * | array | |
| epoch * | string | |
| gateId * | string | |
| nextToken * | any | |
| page * | integer | |
| posts * | array | |
| requestToken * | any | |
| scanId * | string |
external_gate_scan_startStart/resume an owner-enabled external X scan. Use the connected X tool with the returned query, fields, time window and pagination. No paid fallback or invented facts.| Parameter | Type | Description |
|---|---|---|
| gateId * | string |
external_gate_sourcesList source mode and freshness. No X API calls. The owner enables external data for a paused standard reply-only campaign in the Harness console. Never change the mode automatically.followFollow a user| Parameter | Type | Description |
|---|---|---|
| targetUserId * | string | |
| xAccountId * | string |
get_account_subscriptionアカウントのPremium/サブスクリプション状態を取得する| Parameter | Type | Description |
|---|---|---|
| xAccountId * | string |
get_activity_eventsX Activity API (XAA) webhookで受信したイベント(post.create / post.delete / dm等)を新しい順に取得する| Parameter | Type | Description |
|---|---|---|
| eventType | string | フィルタ(例: post.create, post.delete) |
| limit | number | 取得件数(デフォルト50、最大200) |
get_campaign_digestキャンペーンの結果通知と配信状態を取得する。送信しない。| Parameter | Type | Description |
|---|---|---|
| gateId * | string |
get_campaign_statusキャンペーンの公開残数・参加人数を取得する。| Parameter | Type | Description |
|---|---|---|
| gateId * | string |
get_cost_forecast月末のX API費用見込み、予算による減速、企画別費用を取得。任意で新規企画も見積もる。単価は要確認。| Parameter | Type | Description |
|---|---|---|
| days | integer | |
| expectedReplies | integer | |
| quota | integer | |
| tier | string | |
| verifyFollow | boolean |
get_dm_conversationsDM会話一覧を取得する| Parameter | Type | Description |
|---|---|---|
| xAccountId | string |
get_dm_eventsDMイベント一覧を取得する| Parameter | Type | Description |
|---|---|---|
| conversationId | string | |
| xAccountId * | string |
get_dm_messages特定のDM会話のメッセージ履歴を取得する| Parameter | Type | Description |
|---|---|---|
| conversationId * | string | 会話ID |
| xAccountId | string |
get_followers【X API 課金あり・大量課金事故の前例あり】Get followers| Parameter | Type | Description |
|---|---|---|
| xAccountId * | string |
get_following【X API 課金あり】Get following| Parameter | Type | Description |
|---|---|---|
| xAccountId * | string |
get_gate_analyticsGet gate delivery stats| Parameter | Type | Description |
|---|---|---|
| gateId * | string |
get_gate_deliveriesGet deliveries for a gate| Parameter | Type | Description |
|---|---|---|
| gateId * | string |
get_gate_funnelキャンペーンの参加・判定・配布・LINE反応、計上済み費用と通知失敗を取得する。| Parameter | Type | Description |
|---|---|---|
| gateId * | string |
get_mentions【X API 課金あり】自分のツイートへの返信・メンションを取得する| Parameter | Type | Description |
|---|---|---|
| sinceId | string | このID以降のメンションのみ取得 |
| xAccountId * | string |
get_news【X API 課金あり】ニュースストーリーの詳細(要約・コンテキスト・関連ポストID一覧)を取得する| Parameter | Type | Description |
|---|---|---|
| newsId * | string | |
| xAccountId | string | 使用するXアカウント(省略時は先頭アカウント) |
get_post【X API 課金あり】無料の scrape_post で代替できないか先に検討すること。Get a tweet with metrics| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId | string | Required when multiple accounts are configured |
get_post_history【X API 課金あり】無料の scrape_user_posts で代替できないか先に検討すること。自アカウントの最近のツイート履歴とメトリクスを取得する| Parameter | Type | Description |
|---|---|---|
| limit | number | 取得件数(デフォルト20) |
| xAccountId * | string |
get_post_metrics【X API 課金あり】無料の scrape_post で代替できないか先に検討すること。Get tweet metrics| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId | string | Required when multiple accounts are configured |
get_usage_by_gateゲートごとのAPI使用量内訳を取得する| Parameter | Type | Description |
|---|---|---|
| endDate | string | 集計終了日(YYYY-MM-DD) |
| startDate | string | 集計開始日(YYYY-MM-DD) |
| xAccountId | string |
get_usage_dailyAPI使用量の日別内訳を取得する| Parameter | Type | Description |
|---|---|---|
| endDate | string | 集計終了日(YYYY-MM-DD) |
| startDate | string | 集計開始日(YYYY-MM-DD) |
| xAccountId | string |
get_usage_summaryAPI使用量サマリーを取得する| Parameter | Type | Description |
|---|---|---|
| endDate | string | 集計終了日(YYYY-MM-DD) |
| startDate | string | 集計開始日(YYYY-MM-DD) |
| xAccountId | string |
get_user【X API 課金あり】無料の scrape_user で代替できないか先に検討すること。Get X user info| Parameter | Type | Description |
|---|---|---|
| userId | string | |
| username | string |
like_postLike a tweet| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId * | string |
list_engagement_gatesList all engagement gates with polling status and costlist_growth_articles記事下書きの一覧を取得する(status フィルタ可)。| Parameter | Type | Description |
|---|---|---|
| status | string |
list_growth_sourcesソース候補の一覧を取得する(status: new / drafted / dismissed でフィルタ可)。| Parameter | Type | Description |
|---|---|---|
| status | string | new / drafted / dismissed |
list_staffスタッフ一覧を取得するlist_step_sequencesList step sequences| Parameter | Type | Description |
|---|---|---|
| xAccountId | string |
process_gatesManually trigger gate processingpublish_article下書きArticleを公開する。公開されたポストIDが返る| Parameter | Type | Description |
|---|---|---|
| articleId * | string | create_articleで返された記事ID |
| xAccountId * | string |
remove_bookmarkRemove a bookmark| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId * | string |
reply_to_post特定のツイートに返信する| Parameter | Type | Description |
|---|---|---|
| text * | string | |
| tweetId * | string | 返信先ツイートID |
| xAccountId * | string |
retweetRetweet a post| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId * | string |
save_growth_article長文記事の下書きを保存する(ダッシュボードの「記事」タブでレビューできる)。自動公開はされない — レビュー後に create_article / publish_article(X Premium 必要)で公開する。| Parameter | Type | Description |
|---|---|---|
| bodyMd * | string | Markdown 本文 |
| imageUrl | string | ヘッダー画像URL(任意) |
| sourceTweetIds | array | 元ネタのツイートID群 |
| theme | string | |
| title * | string | |
| xAccountId * | string |
schedule_postツイートをスケジュール投稿する(引用RT・メディア対応)| Parameter | Type | Description |
|---|---|---|
| mediaIds | array | |
| quoteTweetId | string | 引用するツイートID |
| scheduledAt * | string | ISO 8601形式の投稿日時 |
| text * | string | |
| xAccountId * | string |
scrape_post【無料・認証不要】fxtwitter API で単一ポストの全文・メトリクス・動画情報を取得する。動画がある場合は embedUrl(https://x.com/<author>/status/<id>/video/1)を返す — この URL を自分の投稿本文に貼ると X が元動画をツイート内に展開する(再アップ不要)。動画引用投稿はこの embedUrl を使うこと。| Parameter | Type | Description |
|---|---|---|
| urlOrId * | string | ツイート URL または ID |
scrape_search【無料・X API 課金なし】twitter-cli(Cookie 認証)で X を検索する。バズ・ニュース・ネタ発見用。type=videos で動画付き投稿のみ。注意: from: 演算子は 0 件になるので特定ユーザーは scrape_user_posts を使う。有料の search_posts / search_news より先にこちらを検討すること。| Parameter | Type | Description |
|---|---|---|
| lang | string | 言語コード(例: en, ja) |
| limit | number | 最大取得件数 |
| minLikes | number | 最小いいね数フィルタ |
| query * | string | 検索クエリ |
| type | string | デフォルト top |
scrape_user【無料・X API 課金なし】twitter-cli(Cookie 認証)でユーザーのプロフィール・フォロワー数を取得する。有料の get_user より先にこちらを検討すること。| Parameter | Type | Description |
|---|---|---|
| handle * | string | ユーザー名(@ なし可) |
scrape_user_posts【無料・X API 課金なし】twitter-cli(Cookie 認証)で指定ユーザーの最近の投稿+メトリクス(いいね/RT/views)を取得する。自分やベンチマークアカウントの分析はこれを使う。注意: 特定ユーザーの投稿を search の from: クエリで探すと 0 件になるため必ずこのツールを使うこと。要セットアップ: twitter-cli + TWITTER_AUTH_TOKEN / TWITTER_CT0(収集専用サブアカウント推奨)。| Parameter | Type | Description |
|---|---|---|
| handle * | string | ユーザー名(@ なし可) |
| limit | number | 最大取得件数(省略時は CLI デフォルト) |
search_news【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。X上のブレイキングニュースを検索する(要約・関連ポストクラスタ付き)。記事ネタ収集に使える| Parameter | Type | Description |
|---|---|---|
| maxResults | number | 取得件数(デフォルト10、最大50) |
| query * | string | 検索トピック(例: AI, 生成AI) |
| xAccountId | string | 使用するXアカウント(省略時は先頭アカウント) |
search_posts【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。Search recent tweets| Parameter | Type | Description |
|---|---|---|
| query * | string |
search_users【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。Search for X users| Parameter | Type | Description |
|---|---|---|
| query * | string |
send_dmDMを送信する| Parameter | Type | Description |
|---|---|---|
| participantId * | string | 送信先ユーザーID |
| text * | string | |
| xAccountId * | string |
unfollowUnfollow a user| Parameter | Type | Description |
|---|---|---|
| targetUserId * | string | |
| xAccountId * | string |
unlike_postUnlike a tweet| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId * | string |
unretweetRemove a retweet| Parameter | Type | Description |
|---|---|---|
| tweetId * | string | |
| xAccountId * | string |
update_engagement_gateUpdate an engagement gate (stop/resume, change strategy, extend expiry)| Parameter | Type | Description |
|---|---|---|
| expiresAfterHours | number | Hours from now until auto-deactivation |
| gateId * | string | |
| isActive | boolean | |
| pollingStrategy | string |
update_staffスタッフ情報を更新する| Parameter | Type | Description |
|---|---|---|
| id * | string | |
| isActive | boolean | |
| name | string | |
| role | string |
upload_image画像をXメディアとしてアップロードし mediaId を返す。source はローカル画像の絶対パス(png/jpg/webp/gif)または https の画像URL。返った mediaId は create_post / schedule_post の mediaIds、create_article の coverMediaId に渡す。mediaId は24時間で失効するので使う直前にアップロードすること| Parameter | Type | Description |
|---|---|---|
| mediaCategory | string | tweet_image(デフォルト)/ tweet_gif |
| source * | string | ローカル画像の絶対パス、または https:// 画像URL |
| xAccountId * | string |
verify_gateCheck if a user meets all engagement gate conditions (reply, like, repost, follow)| Parameter | Type | Description |
|---|---|---|
| gateId * | string | Engagement gate ID |
| username * | string | X username to verify (without @) |
Security checks
6 checks have not been run yet.