Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

x-mcp

БесплатноЗапускает вложенные скриптыНе проверен

Connect a user's own X (Twitter) dev app (BYOK) for the official X API MCP (reads) plus X v2 REST writes — post, reply, like, retweet, DM. Use when the user…

Starchild-ai-agentот Starchild-ai-agent★ 34 звезды на GitHub

Об этом скилле

X API — MCP (reads) + REST (writes), BYOK

Connects the user's own X developer app so this agent can:

  • Read via the official hosted X MCP (https://api.x.com/mcp) — 24 tools
  • Write via the X v2 REST API (https://api.x.com/2/...) — post / delete / like / retweet / reply / DM

Why BYOK (not a shared Starchild app): X write access is per-app rate-limited (~app-wide caps), pay-per-use billed to the app owner, and TOS liability sits with the app owner. A shared app = single point of failure + neighbors starving each other + concentrated billing + content-moderation liability. So every user brings their own app + OAuth token. The token lives only on this machine (~/.xurl, symlinked to the persistent workspace — see STEP 3), never proxied.

When to use this skill

Use when the user wants to act on X with their OWN account/app:

  • "Connect my X / Twitter account so you can post for me"
  • "Set up the X API with my dev app", "use my X developer keys"
  • "Search recent tweets / read my timeline / read mentions" (with their own app)
  • "Post / reply / like / retweet / DM on X as me"
  • "Bookmark this tweet"

Do NOT use — pick the right alternative instead:

  • "Summarize this tweet" / "what's @user posting" / cashtag scan, no account needed → use the twitter skill (read-only scraping via twitterapi.io, no OAuth)
  • "Add the X / Grok model" → that's xai-grok-onboarding (chat model), unrelated
  • The user has no X developer app and doesn't want one → twitter skill, or explain that writes require their own app

Disambiguator: twitter = read-only, no setup, anyone's public tweets. x-mcp = the user's OWN authenticated account, can WRITE, needs one-time OAuth setup.

See also

  • twitter skill — read-only X scraping (no account, no OAuth) for any public tweet
  • config/context/references/model-onboarding.md — if the user actually meant a chat model (Grok), not the X data API

Preflight — build compatibility (check before you start)

This skill drives two platform capabilities. Confirm both before setup:

  1. Native MCP client (required for reads). starchild-clawd must include core/mcp/* and read defaults.mcp_servers from agent.yaml. Quick check: run /mcp — if it returns a status block, the client exists. If /mcp is unknown or errors, the running build predates MCP support → reads via MCP won't work. The REST write path (xurl) still works regardless; or update the platform image.
  2. Per-turn hot-reload (required for automatic token refresh). Needed so the ~2h token rotation reconnects automatically (STEP 7). Builds without it still work but need a manual /mcp reload after each refresh — documented as the fallback in STEP 7. There is no clean runtime probe; assume current builds have it, treat "MCP silently dies ~2h after a refresh and only /mcp reload revives it" as the signal that the build lacks the per-turn hook.

If neither MCP capability is present and the user only needs to read public tweets, stop here and use the twitter skill instead — it needs no build support.

Reads vs writes — two separate systems

Capability Channel Validated
search posts/users/news, timeline, mentions, trends, bookmarks MCP (24 tools) connected
post / delete / reply / like / retweet / follow / DM REST /2/... (NOT in MCP) post+delete tested

The MCP tools/list returns ONLY the 24 read/bookmark tools. Write endpoints are a separate REST API documented at docs.x.com — they are NOT discoverable through MCP. They are listed in this skill below.


STEP 1 — User creates OAuth 2.0 credentials in the X portal (manual; X has NO API for this)

X exposes no API to create/configure an app. These steps are unavoidably manual in the web portal. Make them copy-paste exact.

  1. Go to developer.x.com → create/open an app.
  2. The default keys shown (API Key / API Secret / Bearer Token) are OAuth 1.0a — NOT what we use.
  3. App Settings tab → User authentication settings → Set up. Fill EXACTLY:
    • App permissions: Read and write (add DM if the user wants DMs)
    • Type of App: Web App, Automated App or Bot → Confidential client (this is what produces a Client Secret; Native/Public gives none)
    • Callback URI / Redirect URL: http://localhost:8080/callback (must match xurl's listener byte-for-byte)
    • Website URL: https://iamstarchild.com (pure display metadata; not used in auth; NOT required unique — every user can use the same value, zero technical impact)
  4. Save → X shows Client ID + Client Secret ONCE. Secret shown once only; copy immediately.

What the two URLs actually control (so you can answer the user)

  • Callback URI = where X returns the OAuth authorization code. xurl spins up a local listener on localhost:8080; the code flows browser→xurl on the user's own machine, never through any external server. Both sides must
Полный SKILL.md на GitHub

Установить x-mcp в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

logo.pngscripts/oauth_driver.py

FAQ

Что делает скилл x-mcp?

Connect a user's own X (Twitter) dev app (BYOK) for the official X API MCP (reads) plus X v2 REST writes — post, reply, like, retweet, DM. Use when the user wants to act on X with their OWN X account or app — search, read timeline/users/news/trends/bookmarks via MCP, and post/reply/like/retweet/DM via REST. Walks through OAuth 2.0 setup in the X portal, xurl CLI registration, headless OAuth (user pastes the redirect URL back), the client-not-enrolled / Pay-per-use trap, the token-expiry auto-refresh mechanism, agent.yaml MCP wiring, and FAQ. For read-only scraping WITHOUT the user's own app, use the twitter skill.

Как установить скилл x-mcp?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл x-mcp запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить x-mcp с