MCPcopy Create free account

hub / github.com/6551Team/opentwitter-mcp / functions

Functions39 in github.com/6551Team/opentwitter-mcp

↓ 15 callersFunctionmake_serializable
Recursively convert non-JSON-serializable types.
src/opentwitter_mcp/config.py:42
↓ 14 callersMethod_request
Execute an HTTP request with automatic retry on connection errors.
src/opentwitter_mcp/api_client.py:46
↓ 2 callersMethod_reset_client
Force close and recreate the HTTP client.
src/opentwitter_mcp/api_client.py:37
↓ 2 callersFunctionmain
Run the MCP server (stdio transport by default).
src/opentwitter_mcp/server.py:18
↓ 2 callersMethodsearch_twitter
POST /open/twitter_search — Twitter search
src/opentwitter_mcp/api_client.py:97
↓ 1 callersMethod_get_client
(self)
src/opentwitter_mcp/api_client.py:29
↓ 1 callersMethod_headers
(self)
src/opentwitter_mcp/api_client.py:23
↓ 1 callersMethodadd_twitter_watch
POST /open/twitter_watch_add — 添加Twitter监控用户
src/opentwitter_mcp/api_client.py:198
↓ 1 callersMethodclose
(self)
src/opentwitter_mcp/api_client.py:43
↓ 1 callersMethoddelete_twitter_watch
POST /open/twitter_watch_delete — Delete Twitter monitoring user
src/opentwitter_mcp/api_client.py:243
↓ 1 callersMethodget_twitter_article_by_id
POST /open/twitter_article_by_id — Get Twitter article by ID
src/opentwitter_mcp/api_client.py:183
↓ 1 callersMethodget_twitter_deleted_tweets
POST /open/twitter_deleted_tweets — Get deleted tweets
src/opentwitter_mcp/api_client.py:165
↓ 1 callersMethodget_twitter_follower_events
POST /open/twitter_follower_events — Get follow/unfollow events
src/opentwitter_mcp/api_client.py:150
↓ 1 callersMethodget_twitter_kol_followers
POST /open/twitter_kol_followers — Get KOL followers
src/opentwitter_mcp/api_client.py:178
↓ 1 callersMethodget_twitter_quote_tweets_by_id
POST /open/twitter_quote_tweets_by_id — Get quote tweets for a tweet
src/opentwitter_mcp/api_client.py:248
↓ 1 callersMethodget_twitter_retweet_users_by_id
POST /open/twitter_retweet_users_by_id — Get users who retweeted a tweet
src/opentwitter_mcp/api_client.py:254
↓ 1 callersMethodget_twitter_tweet_by_id
POST /open/twitter_tweet_by_id — Get tweet by ID with nested reply/quote tweets
src/opentwitter_mcp/api_client.py:188
↓ 1 callersMethodget_twitter_user_by_id
POST /open/twitter_user_by_id — Get Twitter user info by ID
src/opentwitter_mcp/api_client.py:73
↓ 1 callersMethodget_twitter_user_info
POST /open/twitter_user_info — Get Twitter user info by username
src/opentwitter_mcp/api_client.py:68
↓ 1 callersMethodget_twitter_user_tweets
POST /open/twitter_user_tweets — Get user tweets
src/opentwitter_mcp/api_client.py:78
↓ 1 callersMethodget_twitter_watch
POST /open/twitter_watch — Get all Twitter monitoring users
src/opentwitter_mcp/api_client.py:193
Method__init__
(self, base_url: str = API_BASE_URL, token: str = API_TOKEN)
src/opentwitter_mcp/api_client.py:18
Functionadd_twitter_watch
Add a Twitter user to monitoring list. Args: username: Twitter username to monitor (without @). new_tweet: Monitor new tweets (de
src/opentwitter_mcp/tools.py:326
Functionapp_lifespan
Manage the API client lifecycle.
src/opentwitter_mcp/app.py:19
Functionclamp_limit
Clamp user-supplied limit to [1, MAX_ROWS].
src/opentwitter_mcp/config.py:37
Functiondelete_twitter_watch
Delete a Twitter user from monitoring list. Args: username: Twitter username to delete from monitoring (without @).
src/opentwitter_mcp/tools.py:382
Functionget_twitter_article_by_id
Get Twitter article by ID. Args: article_id: Twitter article ID.
src/opentwitter_mcp/tools.py:271
Functionget_twitter_deleted_tweets
Get deleted tweets from a Twitter/X user. Args: username: Twitter username (without @). limit: Maximum tweets to return (default
src/opentwitter_mcp/tools.py:219
Functionget_twitter_follower_events
Get follower/unfollower events for a Twitter/X user. Args: username: Twitter username (without @). is_follow: True for new follow
src/opentwitter_mcp/tools.py:185
Functionget_twitter_kol_followers
Get KOL (Key Opinion Leader) followers for a Twitter/X user. Returns which influential accounts (KOLs) are following this user. Args:
src/opentwitter_mcp/tools.py:249
Functionget_twitter_quote_tweets_by_id
Get tweets that quote a specific tweet. Args: tweet_id: Twitter tweet ID (numeric string). limit: Maximum tweets to return (defau
src/opentwitter_mcp/tools.py:397
Functionget_twitter_retweet_users_by_id
Get users who retweeted a specific tweet. Args: tweet_id: Twitter tweet ID (numeric string). cursor: Pagination cursor for next p
src/opentwitter_mcp/tools.py:424
Functionget_twitter_tweet_by_id
Get a specific tweet by its ID, including nested reply/quote tweets. This endpoint retrieves a tweet by ID and automatically fetches any tweets
src/opentwitter_mcp/tools.py:286
Functionget_twitter_user
Get Twitter/X user profile information by username. Args: username: Twitter username (without @, e.g. "elonmusk").
src/opentwitter_mcp/tools.py:13
Functionget_twitter_user_by_id
Get Twitter/X user profile information by user ID. Args: user_id: Twitter user ID (numeric string).
src/opentwitter_mcp/tools.py:28
Functionget_twitter_user_tweets
Get recent tweets from a specific Twitter/X user. Args: username: Twitter username (without @). limit: Maximum tweets to return (
src/opentwitter_mcp/tools.py:43
Functionget_twitter_watch
Get all Twitter monitoring users for the current user. Returns a list of Twitter accounts being monitored.
src/opentwitter_mcp/tools.py:307
Functionsearch_twitter
Search Twitter/X for tweets matching criteria. Args: keywords: Search keywords. from_user: Filter tweets from specific user (with
src/opentwitter_mcp/tools.py:79
Functionsearch_twitter_advanced
Advanced Twitter/X search with multiple filters. Args: keywords: Search keywords. from_user: Filter tweets from specific user.
src/opentwitter_mcp/tools.py:117