Skip to content

fix: expose home timeline via MCP and restore xeepy page access#29

Open
nelsongallardo wants to merge 1 commit into
nirholas:mainfrom
nelsongallardo:fix/home-timeline-mcp
Open

fix: expose home timeline via MCP and restore xeepy page access#29
nelsongallardo wants to merge 1 commit into
nirholas:mainfrom
nelsongallardo:fix/home-timeline-mcp

Conversation

@nelsongallardo
Copy link
Copy Markdown

@nelsongallardo nelsongallardo commented Apr 30, 2026

Summary

  • add x_get_home_timeline MCP tool for reading For You / Following home feed posts
  • export getPage() from src/mcp/local-tools.js so xeepy fallback tools stop crashing with localTools.getPage is not a function
  • pass discovery categories through to scrapeTrending() instead of always hardcoding the trending tab

Repro

Before this change:

  • x_get_recommendations crashed in MCP fallback mode with localTools.getPage is not a function
  • MCP had no direct way to read a logged-in user’s home timeline even though src/timelineViewer.js already existed as a browser-only script
  • x_get_trends / x_get_explore ignored the requested category and always navigated to /explore/tabs/trending

Verification

  • direct local-tools invocation after x_login() now returns populated posts from the home timeline
  • fallback tools can call getPage() without crashing
  • modified files pass node --check

Notes

Trend parsing is still somewhat brittle because X’s Explore DOM is noisy, but category routing is now at least correct and home timeline access is available through MCP.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

@nelsongallardo is attempting to deploy a commit to the kaivocmenirehtacgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant