Repository navigation
X plugin: livestream tools (sources, broadcasts, scheduled broadcasts, chat moderation) - #725
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 15d1c59. Configure here.
…ror 2. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
The X MCP server (
https://api.x.com/mcp) now serves 18 livestream tools: stream sources, broadcasts, scheduled broadcasts, chat moderators and chat mutes. The X plugin doesn't request thebroadcast.*scopes and its guide doesn't mention the tools, so agents can't use them, and couldn't do it safely if they could.What
mcp.json: requestsbroadcast.readandbroadcast.write.skills/x-api-mcp-guide/SKILL.md: a new Livestreams section, plus matching entries in the description, the on-connect capabilities, scopes, cost, common tasks and "Don't":list_sources,get_source,create_source,update_source,delete_source,list_broadcasts,get_broadcast,list_scheduled_broadcasts,get_scheduled_broadcast,create_scheduled_broadcast,update_scheduled_broadcast,delete_scheduled_broadcast,go_live_scheduled_broadcast,get_chat_moderators,add_chat_moderator,remove_chat_moderator,mute_broadcast_chat_userandunmute_broadcast_chat_user.list_sources, or create one with a region; resolve the start time in the owner's timezone; callcreate_scheduled_broadcastwithsource_idandscheduled_start_ms.go_live_scheduled_broadcastwhen it was created withmanual_publish: true.idis its stream key, so it stays out of the chat;create_sourceisn't idempotent, so list before retrying;update_scheduled_broadcast;plugin.jsonversion, description andlivestreamkeyword, the CHANGELOG entry, and the marketplace and README listing text.Existing installs need to sign in to X again to pick up the new scopes.
Testing
node scripts/validate-plugins.mjs: all plugins validated.https://api.x.com/mcpwith an OAuth2 user token:tools/listlists all 18 tools;list_sources,create_source,get_source,update_sourceanddelete_sourceround-trip;create_scheduled_broadcastscheduled a broadcast for tomorrow at 3pm ET on a listed source;get_scheduled_broadcastread it back, anddelete_scheduled_broadcastremoved it.Note
Low Risk
Config and documentation only; OAuth scope expansion requires user reconnect but does not change core plugin runtime code or shared auth infrastructure.
Overview
X plugin 2.8.0 enables agents to use the MCP livestream APIs by requesting
broadcast.readandbroadcast.writeinmcp.json, and documents the full workflow in the X MCP skill.The new Livestreams guidance covers 18 tools (sources, broadcasts, scheduled broadcasts, chat moderators/mutes): scheduling recipe, free-tool billing rules, reconnect when scopes are missing (same pattern as calls/Chat), and guardrails—no instant go-live, owner consent for writes, stream keys treated as secrets, non-idempotent
create_source, and Premium/1k-follower eligibility errors.Marketing copy updates in README, marketplace.json, and plugin.json (version, keyword, description). CHANGELOG notes that existing installs must re-sign in for the new scopes.
Reviewed by Cursor Bugbot for commit 42b357b. Bugbot is set up for automated code reviews on this repo. Configure here.