This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Add read-only endpoints, remove write tools, fix API params#1
Open
jrejaud wants to merge 1 commit intokinhunt:mainfrom
Open
Add read-only endpoints, remove write tools, fix API params#1jrejaud wants to merge 1 commit intokinhunt:mainfrom
jrejaud wants to merge 1 commit intokinhunt:mainfrom
Conversation
New tools: - get_user_mentions: fetch tweets @mentioning a user (/user/mentions) - get_tweet_quotes: fetch quote tweets for a tweet (/tweet/quotes) - get_tweet_thread: fetch full thread context (/tweet/thread_context) Bug fixes: - get_tweet_by_id: param renamed tweet_id → tweet_ids (API expects plural) - get_tweet_quotes: param renamed id → tweetId (per API docs) - get_tweet_thread: endpoint /tweet/thread → /tweet/thread_context, param id → tweetId - Error messages now include API response body for easier debugging Removed write tools: - login_user (required storing cookies, not suitable for MCP) - create_tweet (write operations should go through official API or Typefully) - All related loginCookie/makePostRequest internals This makes the server fully read-only and suitable for use as a monitoring/research tool alongside a separate write-capable integration.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
get_user_mentions,get_tweet_quotes,get_tweet_threadlogin_user,create_tweet) — cookie-based auth is fragile and unsuitable for MCP useNew Tools
get_user_mentions/user/mentionsget_tweet_quotes/tweet/quotesget_tweet_thread/tweet/thread_contextBug Fixes
get_tweet_by_idtweet_id→ should betweet_idsget_tweet_quotesid→ should betweetId; invalidcountparam sentget_tweet_thread/tweet/thread→/tweet/thread_context; paramid→tweetIdWhy Remove Write Tools
The
login_user+create_tweetflow stores session cookies which are fragile, expire, and require re-auth. For a use case where Claude Code needs to post tweets, a dedicated write-capable integration (e.g. Typefully API withreply_to_urlsupport) is more reliable. Keeping write tools out of this server makes it safe to expose broadly without risk of accidental posting.All new endpoints verified against live twitterapi.io API.