mcp
v0.3.0X Harness MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_post
ツイート/ポストを新規作成する
| Parameter | Type | Description |
|---|---|---|
text * | string | |
xAccountId * | string | |
mediaIds | array | メディアID一覧 |
paidPartnership | boolean | 有料提携(PR)表示を付ける |
quoteTweetId | string | |
replyToTweetId | string |
create_thread
スレッド投稿を作成する(複数ツイートを連続投稿)
| Parameter | Type | Description |
|---|---|---|
texts * | array | スレッドの各ツイートテキスト(順番通り) |
xAccountId * | string |
delete_post
Delete a tweet by ID
| Parameter | Type | Description |
|---|---|---|
tweetId * | string | |
xAccountId * | string |
get_post
【X API 課金あり】無料の scrape_post で代替できないか先に検討すること。Get a tweet with metrics
| Parameter | Type | Description |
|---|---|---|
tweetId * | string |
get_post_history
【X API 課金あり】無料の scrape_user_posts で代替できないか先に検討すること。自アカウントの最近のツイート履歴とメトリクスを取得する
| Parameter | Type | Description |
|---|---|---|
xAccountId * | string | |
limit | number | 取得件数(デフォルト20) |
get_mentions
【X API 課金あり】自分のツイートへの返信・メンションを取得する
| Parameter | Type | Description |
|---|---|---|
xAccountId * | string | |
sinceId | string | このID以降のメンションのみ取得 |
reply_to_post
特定のツイートに返信する
| Parameter | Type | Description |
|---|---|---|
text * | string | |
tweetId * | string | 返信先ツイートID |
xAccountId * | string |
search_posts
【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。Search recent tweets
| Parameter | Type | Description |
|---|---|---|
query * | string |
schedule_post
ツイートをスケジュール投稿する(引用RT・メディア対応)
| Parameter | Type | Description |
|---|---|---|
scheduledAt * | string | ISO 8601形式の投稿日時 |
text * | string | |
xAccountId * | string | |
mediaIds | array | |
quoteTweetId | string | 引用するツイートID |
like_post
Like a tweet
| Parameter | Type | Description |
|---|---|---|
tweetId * | string | |
xAccountId * | string |
unlike_post
Unlike a tweet
| Parameter | Type | Description |
|---|---|---|
tweetId * | string | |
xAccountId * | string |
retweet
Retweet a post
| Parameter | Type | Description |
|---|---|---|
tweetId * | string | |
xAccountId * | string |
unretweet
Remove a retweet
| Parameter | Type | Description |
|---|---|---|
tweetId * | string | |
xAccountId * | string |
bookmark
Bookmark a tweet
| Parameter | Type | Description |
|---|---|---|
tweetId * | string | |
xAccountId * | string |
remove_bookmark
Remove a bookmark
| Parameter | Type | Description |
|---|---|---|
tweetId * | string | |
xAccountId * | string |
get_user
【X API 課金あり】無料の scrape_user で代替できないか先に検討すること。Get X user info
| Parameter | Type | Description |
|---|---|---|
userId | string | |
username | string |
search_users
【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。Search for X users
| Parameter | Type | Description |
|---|---|---|
query * | string |
follow
Follow a user
| Parameter | Type | Description |
|---|---|---|
targetUserId * | string | |
xAccountId * | string |
unfollow
Unfollow a user
| Parameter | Type | Description |
|---|---|---|
targetUserId * | string | |
xAccountId * | string |
get_followers
【X API 課金あり・大量課金事故の前例あり】Get followers
| Parameter | Type | Description |
|---|---|---|
xAccountId * | string |
get_following
【X API 課金あり】Get following
| Parameter | Type | Description |
|---|---|---|
xAccountId * | string |
send_dm
DMを送信する
| Parameter | Type | Description |
|---|---|---|
participantId * | string | 送信先ユーザーID |
text * | string | |
xAccountId * | string |
get_dm_conversations
DM会話一覧を取得する
| Parameter | Type | Description |
|---|---|---|
xAccountId | string |
get_dm_messages
特定のDM会話のメッセージ履歴を取得する
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | 会話ID |
xAccountId | string |
get_dm_events
DMイベント一覧を取得する
| Parameter | Type | Description |
|---|---|---|
xAccountId * | string | |
conversationId | string |
create_engagement_gate
Create an engagement gate (auto-reply)
| Parameter | Type | Description |
|---|---|---|
actionType * | string | |
postId * | string | |
template * | string | |
triggerType * | string | |
xAccountId * | string | |
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. |
replyKeyword | string | Only match replies containing this keyword |
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 |
update_engagement_gate
Update an engagement gate (stop/resume, change strategy, extend expiry)
| Parameter | Type | Description |
|---|---|---|
gateId * | string | |
expiresAfterHours | number | Hours from now until auto-deactivation |
isActive | boolean | |
pollingStrategy | string |
list_engagement_gates
List all engagement gates with polling status and cost
get_gate_deliveries
Get deliveries for a gate
| Parameter | Type | Description |
|---|---|---|
gateId * | string |
process_gates
Manually trigger gate processing
verify_gate
Check 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 @) |
create_step_sequence
Create a step sequence
| Parameter | Type | Description |
|---|---|---|
name * | string | |
xAccountId * | string |
add_step_message
Add a step message
| Parameter | Type | Description |
|---|---|---|
actionType * | string | |
delayMinutes * | number | |
sequenceId * | string | |
stepOrder * | number | |
template * | string | |
conditionTag | string | |
link | string |
enroll_user
Enroll user in sequence
| Parameter | Type | Description |
|---|---|---|
sequenceId * | string | |
xUserId * | string | |
xUsername | string |
list_step_sequences
List step sequences
| Parameter | Type | Description |
|---|---|---|
xAccountId | string |
get_post_metrics
【X API 課金あり】無料の scrape_post で代替できないか先に検討すること。Get tweet metrics
| Parameter | Type | Description |
|---|---|---|
tweetId * | string |
get_gate_analytics
Get gate delivery stats
| Parameter | Type | Description |
|---|---|---|
gateId * | string |
account_summary
Get account summary
get_account_subscription
アカウントのPremium/サブスクリプション状態を取得する
| Parameter | Type | Description |
|---|---|---|
xAccountId * | string |
list_staff
スタッフ一覧を取得する
create_staff
スタッフを作成する
| Parameter | Type | Description |
|---|---|---|
name * | string | |
role * | string |
update_staff
スタッフ情報を更新する
| Parameter | Type | Description |
|---|---|---|
id * | string | |
isActive | boolean | |
name | string | |
role | string |
delete_staff
スタッフを削除する
| Parameter | Type | Description |
|---|---|---|
id * | string |
create_campaign
エンゲージメントゲート作成+キャンペーンリンク生成を一括で行う
| Parameter | Type | Description |
|---|---|---|
postId * | string | キャンペーン対象ツイートID |
xAccountId * | string | |
conditions | object | 参加条件(like/repost) |
formId | string | LINEフォームID(LINE連携する場合) |
lineHarnessApiKey | string | LINE Harness APIキー(LINE連携する場合) |
lineHarnessUrl | string | LINE Harness Worker URL(LINE連携する場合) |
ref | string | キャンペーン識別子(/r/{ref} のパス部分) |
get_usage_summary
API使用量サマリーを取得する
| Parameter | Type | Description |
|---|---|---|
endDate | string | 集計終了日(YYYY-MM-DD) |
startDate | string | 集計開始日(YYYY-MM-DD) |
xAccountId | string |
get_usage_daily
API使用量の日別内訳を取得する
| Parameter | Type | Description |
|---|---|---|
endDate | string | 集計終了日(YYYY-MM-DD) |
startDate | string | 集計開始日(YYYY-MM-DD) |
xAccountId | string |
get_usage_by_gate
ゲートごとのAPI使用量内訳を取得する
| Parameter | Type | Description |
|---|---|---|
endDate | string | 集計終了日(YYYY-MM-DD) |
startDate | string | 集計開始日(YYYY-MM-DD) |
xAccountId | string |
create_article
X Article(長文記事)の下書きを作成する。bodyはMarkdown風テキスト(# 見出し / ## 小見出し / - リスト / > 引用 / **太字** / 空行で段落分け)。本文中に段落として単独で書いた  は実際にメディアをfetch→Xへアップロードしてインライン埋め込みになる(画像のほか動画URLならamplify_videoとしてチャンクアップロード+処理待ちまで自動。URLはhttps必須・到達不能なら下書き作成ごと400で失敗する。装飾でないMarkdown画像記法を丅
| Parameter | Type | Description |
|---|---|---|
body * | string | 記事本文(Markdown風。空行区切りで段落) |
title * | string | 記事タイトル |
xAccountId * | string | |
coverMediaId | string | カバー画像のメディアID(upload_image等で取得) |
publish_article
下書きArticleを公開する。公開されたポストIDが返る
| Parameter | Type | Description |
|---|---|---|
articleId * | string | create_articleで返された記事ID |
xAccountId * | string |
search_news
【X API 課金あり】無料の scrape_search で代替できないか先に検討すること。X上のブレイキングニュースを検索する(要約・関連ポストクラスタ付き)。記事ネタ収集に使える
| Parameter | Type | Description |
|---|---|---|
query * | string | 検索トピック(例: AI, 生成AI) |
maxResults | number | 取得件数(デフォルト10、最大50) |
xAccountId | string | 使用するXアカウント(省略時は先頭アカウント) |
get_news
【X API 課金あり】ニュースストーリーの詳細(要約・コンテキスト・関連ポストID一覧)を取得する
| Parameter | Type | Description |
|---|---|---|
newsId * | string | |
xAccountId | string | 使用するXアカウント(省略時は先頭アカウント) |
get_activity_events
X Activity API (XAA) webhookで受信したイベント(post.create / post.delete / dm等)を新しい順に取得する
| Parameter | Type | Description |
|---|---|---|
eventType | string | フィルタ(例: post.create, post.delete) |
limit | number | 取得件数(デフォルト50、最大200) |
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 デフォルト) |
scrape_search
【無料・X API 課金なし】twitter-cli(Cookie 認証)で X を検索する。バズ・ニュース・ネタ発見用。type=videos で動画付き投稿のみ。注意: from: 演算子は 0 件になるので特定ユーザーは scrape_user_posts を使う。有料の search_posts / search_news より先にこちらを検討すること。
| Parameter | Type | Description |
|---|---|---|
query * | string | 検索クエリ |
lang | string | 言語コード(例: en, ja) |
limit | number | 最大取得件数 |
minLikes | number | 最小いいね数フィルタ |
type | string | デフォルト top |
scrape_post
【無料・認証不要】fxtwitter API で単一ポストの全文・メトリクス・動画情報を取得する。動画がある場合は embedUrl(https://x.com/<author>/status/<id>/video/1)を返す — この URL を自分の投稿本文に貼ると X が元動画をツイート内に展開する(再アップ不要)。動画引用投稿はこの embedUrl を使うこと。
| Parameter | Type | Description |
|---|---|---|
urlOrId * | string | ツイート URL または ID |
scrape_user
【無料・X API 課金なし】twitter-cli(Cookie 認証)でユーザーのプロフィール・フォロワー数を取得する。有料の get_user より先にこちらを検討すること。
| Parameter | Type | Description |
|---|---|---|
handle * | string | ユーザー名(@ なし可) |
add_growth_source
海外バズ投稿などのネタをソース候補として保存する(ダッシュボードの「海外ネタ」タブでレビューできる)。scrape_search / scrape_post で見つけた投稿を、原文+日本語訳+引用RT文面案つきで登録する。
| Parameter | Type | Description |
|---|---|---|
author * | string | 元ポストの投稿者ハンドル |
sourceTweetId * | string | 元ポストのツイートID |
textEn * | string | 原文 |
textJa * | string | 日本語訳 |
likes | number | |
suggestedQuoteText | string | 引用RT文面案 |
summaryJa | string | 日本語要約 |
theme | string | テーマタグ(ピラー紐付け用) |
transcript | string | 動画の文字起こし(あれば) |
videoUrl | string | 動画URL(あれば) |
views | number |
list_growth_sources
ソース候補の一覧を取得する(status: new / drafted / dismissed でフィルタ可)。
| Parameter | Type | Description |
|---|---|---|
status | string | new / drafted / dismissed |
save_growth_article
長文記事の下書きを保存する(ダッシュボードの「記事」タブでレビューできる)。自動公開はされない — レビュー後に create_article / publish_article(X Premium 必要)で公開する。
| Parameter | Type | Description |
|---|---|---|
bodyMd * | string | Markdown 本文 |
title * | string | |
xAccountId * | string | |
imageUrl | string | ヘッダー画像URL(任意) |
sourceTweetIds | array | 元ネタのツイートID群 |
theme | string |
list_growth_articles
記事下書きの一覧を取得する(status フィルタ可)。
| Parameter | Type | Description |
|---|---|---|
status | string |
add_growth_draft
投稿ドラフトを承認キューに入れる(ダッシュボードの承認画面で ok/編集/却下 → 予約投稿)。scheduledAt は必ず YYYY-MM-DDTHH:MM:SS+09:00 形式(それ以外だと予約発火時刻がずれる)。動画引用投稿は text 末尾に scrape_post の embedUrl を含め、quoteTweetId にピラー投稿IDを指定できる。
| Parameter | Type | Description |
|---|---|---|
scheduledAt * | string | YYYY-MM-DDTHH:MM:SS+09:00 形式必須 |
text * | string | 投稿本文 |
type * | string | 投稿タイプ(例: quote_rt / video / opinion / progress) |
xAccountId * | string | |
quoteTweetId | string | 引用するツイートID(ピラー紐付け用、任意) |