mcp

v0.3.0
@x-harness/mcp Checked 2 days ago Published 4 months ago

X Harness MCP Server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_post

ツイート/ポストを新規作成する

ParameterTypeDescription
text *string
xAccountId *string
mediaIdsarrayメディアID一覧
paidPartnershipboolean有料提携(PR)表示を付ける
quoteTweetIdstring
replyToTweetIdstring

create_thread

スレッド投稿を作成する(複数ツイートを連続投稿)

ParameterTypeDescription
texts *arrayスレッドの各ツイートテキスト(順番通り)
xAccountId *string

delete_post

Delete a tweet by ID

ParameterTypeDescription
tweetId *string
xAccountId *string

get_post

【X API 課金あり】無料の scrape_post で代替できないか先に検討すること。Get a tweet with metrics

ParameterTypeDescription
tweetId *string

get_post_history

【X API 課金あり】無料の scrape_user_posts で代替できないか先に検討すること。自アカウントの最近のツイート履歴とメトリクスを取得する

ParameterTypeDescription
xAccountId *string
limitnumber取得件数(デフォルト20)

get_mentions

【X API 課金あり】自分のツイートへの返信・メンションを取得する

ParameterTypeDescription
xAccountId *string
sinceIdstringこのID以降のメンションのみ取得

reply_to_post

特定のツイートに返信する

ParameterTypeDescription
text *string
tweetId *string返信先ツイートID
xAccountId *string

search_posts

【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。Search recent tweets

ParameterTypeDescription
query *string

schedule_post

ツイートをスケジュール投稿する(引用RT・メディア対応)

ParameterTypeDescription
scheduledAt *stringISO 8601形式の投稿日時
text *string
xAccountId *string
mediaIdsarray
quoteTweetIdstring引用するツイートID

like_post

Like a tweet

ParameterTypeDescription
tweetId *string
xAccountId *string

unlike_post

Unlike a tweet

ParameterTypeDescription
tweetId *string
xAccountId *string

retweet

Retweet a post

ParameterTypeDescription
tweetId *string
xAccountId *string

unretweet

Remove a retweet

ParameterTypeDescription
tweetId *string
xAccountId *string

bookmark

Bookmark a tweet

ParameterTypeDescription
tweetId *string
xAccountId *string

remove_bookmark

Remove a bookmark

ParameterTypeDescription
tweetId *string
xAccountId *string

get_user

【X API 課金あり】無料の scrape_user で代替できないか先に検討すること。Get X user info

ParameterTypeDescription
userIdstring
usernamestring

search_users

【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。Search for X users

ParameterTypeDescription
query *string

follow

Follow a user

ParameterTypeDescription
targetUserId *string
xAccountId *string

unfollow

Unfollow a user

ParameterTypeDescription
targetUserId *string
xAccountId *string

get_followers

【X API 課金あり・大量課金事故の前例あり】Get followers

ParameterTypeDescription
xAccountId *string

get_following

【X API 課金あり】Get following

ParameterTypeDescription
xAccountId *string

send_dm

DMを送信する

ParameterTypeDescription
participantId *string送信先ユーザーID
text *string
xAccountId *string

get_dm_conversations

DM会話一覧を取得する

ParameterTypeDescription
xAccountIdstring

get_dm_messages

特定のDM会話のメッセージ履歴を取得する

ParameterTypeDescription
conversationId *string会話ID
xAccountIdstring

get_dm_events

DMイベント一覧を取得する

ParameterTypeDescription
xAccountId *string
conversationIdstring

create_engagement_gate

Create an engagement gate (auto-reply)

ParameterTypeDescription
actionType *string
postId *string
template *string
triggerType *string
xAccountId *string
expiresAfterHoursnumberHours until gate auto-deactivates. Default: 72 for hot_window, none for constant.
linkstring
lotteryEnabledboolean
lotteryLoseTemplatestring
lotteryRatenumber
lotteryWinTemplatestring
pollingStrategystringPolling frequency strategy. hot_window (default): high frequency initially, decays over 72h. constant: fixed 15min interval. manual: no auto-polling.
replyKeywordstringOnly match replies containing this keyword
requireFollowbooleanRequire follow in addition to reply trigger
requireLikebooleanRequire like in addition to reply trigger
requireRepostbooleanRequire repost in addition to reply trigger

update_engagement_gate

Update an engagement gate (stop/resume, change strategy, extend expiry)

ParameterTypeDescription
gateId *string
expiresAfterHoursnumberHours from now until auto-deactivation
isActiveboolean
pollingStrategystring

list_engagement_gates

List all engagement gates with polling status and cost

get_gate_deliveries

Get deliveries for a gate

ParameterTypeDescription
gateId *string

process_gates

Manually trigger gate processing

verify_gate

Check if a user meets all engagement gate conditions (reply, like, repost, follow)

ParameterTypeDescription
gateId *stringEngagement gate ID
username *stringX username to verify (without @)

create_step_sequence

Create a step sequence

ParameterTypeDescription
name *string
xAccountId *string

add_step_message

Add a step message

ParameterTypeDescription
actionType *string
delayMinutes *number
sequenceId *string
stepOrder *number
template *string
conditionTagstring
linkstring

enroll_user

Enroll user in sequence

ParameterTypeDescription
sequenceId *string
xUserId *string
xUsernamestring

list_step_sequences

List step sequences

ParameterTypeDescription
xAccountIdstring

get_post_metrics

【X API 課金あり】無料の scrape_post で代替できないか先に検討すること。Get tweet metrics

ParameterTypeDescription
tweetId *string

get_gate_analytics

Get gate delivery stats

ParameterTypeDescription
gateId *string

account_summary

Get account summary

get_account_subscription

アカウントのPremium/サブスクリプション状態を取得する

ParameterTypeDescription
xAccountId *string

list_staff

スタッフ一覧を取得する

create_staff

スタッフを作成する

ParameterTypeDescription
name *string
role *string

update_staff

スタッフ情報を更新する

ParameterTypeDescription
id *string
isActiveboolean
namestring
rolestring

delete_staff

スタッフを削除する

ParameterTypeDescription
id *string

create_campaign

エンゲージメントゲート作成+キャンペーンリンク生成を一括で行う

ParameterTypeDescription
postId *stringキャンペーン対象ツイートID
xAccountId *string
conditionsobject参加条件(like/repost)
formIdstringLINEフォームID(LINE連携する場合)
lineHarnessApiKeystringLINE Harness APIキー(LINE連携する場合)
lineHarnessUrlstringLINE Harness Worker URL(LINE連携する場合)
refstringキャンペーン識別子(/r/{ref} のパス部分)

get_usage_summary

API使用量サマリーを取得する

ParameterTypeDescription
endDatestring集計終了日(YYYY-MM-DD)
startDatestring集計開始日(YYYY-MM-DD)
xAccountIdstring

get_usage_daily

API使用量の日別内訳を取得する

ParameterTypeDescription
endDatestring集計終了日(YYYY-MM-DD)
startDatestring集計開始日(YYYY-MM-DD)
xAccountIdstring

get_usage_by_gate

ゲートごとのAPI使用量内訳を取得する

ParameterTypeDescription
endDatestring集計終了日(YYYY-MM-DD)
startDatestring集計開始日(YYYY-MM-DD)
xAccountIdstring

create_article

X Article(長文記事)の下書きを作成する。bodyはMarkdown風テキスト(# 見出し / ## 小見出し / - リスト / > 引用 / **太字** / 空行で段落分け)。本文中に段落として単独で書いた ![キャプション](https://...) は実際にメディアをfetch→Xへアップロードしてインライン埋め込みになる(画像のほか動画URLならamplify_videoとしてチャンクアップロード+処理待ちまで自動。URLはhttps必須・到達不能なら下書き作成ごと400で失敗する。装飾でないMarkdown画像記法を丅

ParameterTypeDescription
body *string記事本文(Markdown風。空行区切りで段落)
title *string記事タイトル
xAccountId *string
coverMediaIdstringカバー画像のメディアID(upload_image等で取得)

publish_article

下書きArticleを公開する。公開されたポストIDが返る

ParameterTypeDescription
articleId *stringcreate_articleで返された記事ID
xAccountId *string

search_news

【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。X上のブレイキングニュースを検索する(要約・関連ポストクラスタ付き)。記事ネタ収集に使える

ParameterTypeDescription
query *string検索トピック(例: AI, 生成AI)
maxResultsnumber取得件数(デフォルト10、最大50)
xAccountIdstring使用するXアカウント(省略時は先頭アカウント)

get_news

【X API 課金あり】ニュースストーリーの詳細(要約・コンテキスト・関連ポストID一覧)を取得する

ParameterTypeDescription
newsId *string
xAccountIdstring使用するXアカウント(省略時は先頭アカウント)

get_activity_events

X Activity API (XAA) webhookで受信したイベント(post.create / post.delete / dm等)を新しい順に取得する

ParameterTypeDescription
eventTypestringフィルタ(例: post.create, post.delete)
limitnumber取得件数(デフォルト50、最大200)

scrape_user_posts

【無料・X API 課金なし】twitter-cli(Cookie 認証)で指定ユーザーの最近の投稿+メトリクス(いいね/RT/views)を取得する。自分やベンチマークアカウントの分析はこれを使う。注意: 特定ユーザーの投稿を search の from: クエリで探すと 0 件になるため必ずこのツールを使うこと。要セットアップ: twitter-cli + TWITTER_AUTH_TOKEN / TWITTER_CT0(収集専用サブアカウント推奨)。

ParameterTypeDescription
handle *stringユーザー名(@ なし可)
limitnumber最大取得件数(省略時は CLI デフォルト)

scrape_post

【無料・認証不要】fxtwitter API で単一ポストの全文・メトリクス・動画情報を取得する。動画がある場合は embedUrl(https://x.com/<author>/status/<id>/video/1)を返す — この URL を自分の投稿本文に貼ると X が元動画をツイート内に展開する(再アップ不要)。動画引用投稿はこの embedUrl を使うこと。

ParameterTypeDescription
urlOrId *stringツイート URL または ID

scrape_user

【無料・X API 課金なし】twitter-cli(Cookie 認証)でユーザーのプロフィール・フォロワー数を取得する。有料の get_user より先にこちらを検討すること。

ParameterTypeDescription
handle *stringユーザー名(@ なし可)

add_growth_source

海外バズ投稿などのネタをソース候補として保存する(ダッシュボードの「海外ネタ」タブでレビューできる)。scrape_search / scrape_post で見つけた投稿を、原文+日本語訳+引用RT文面案つきで登録する。

ParameterTypeDescription
author *string元ポストの投稿者ハンドル
sourceTweetId *string元ポストのツイートID
textEn *string原文
textJa *string日本語訳
likesnumber
suggestedQuoteTextstring引用RT文面案
summaryJastring日本語要約
themestringテーマタグ(ピラー紐付け用)
transcriptstring動画の文字起こし(あれば)
videoUrlstring動画URL(あれば)
viewsnumber

list_growth_sources

ソース候補の一覧を取得する(status: new / drafted / dismissed でフィルタ可)。

ParameterTypeDescription
statusstringnew / drafted / dismissed

save_growth_article

長文記事の下書きを保存する(ダッシュボードの「記事」タブでレビューできる)。自動公開はされない — レビュー後に create_article / publish_article(X Premium 必要)で公開する。

ParameterTypeDescription
bodyMd *stringMarkdown 本文
title *string
xAccountId *string
imageUrlstringヘッダー画像URL(任意)
sourceTweetIdsarray元ネタのツイートID群
themestring

list_growth_articles

記事下書きの一覧を取得する(status フィルタ可)。

ParameterTypeDescription
statusstring

add_growth_draft

投稿ドラフトを承認キューに入れる(ダッシュボードの承認画面で ok/編集/却下 → 予約投稿)。scheduledAt は必ず YYYY-MM-DDTHH:MM:SS+09:00 形式(それ以外だと予約発火時刻がずれる)。動画引用投稿は text 末尾に scrape_post の embedUrl を含め、quoteTweetId にピラー投稿IDを指定できる。

ParameterTypeDescription
scheduledAt *stringYYYY-MM-DDTHH:MM:SS+09:00 形式必須
text *string投稿本文
type *string投稿タイプ(例: quote_rt / video / opinion / progress)
xAccountId *string
quoteTweetIdstring引用するツイートID(ピラー紐付け用、任意)