From 42749cd9569c36399d848aeb20c1601fb991f073 Mon Sep 17 00:00:00 2001 From: nj-io <26359601+nj-io@users.noreply.github.com> Date: Tue, 7 Apr 2026 05:57:22 +0000 Subject: [PATCH] fix: add getPage to toolMap so xeepy tools can access the browser getPage() is exported from local-tools.js but was missing from the toolMap object. Since server.js sets localTools = tools.toolMap, all xeepy tools calling localTools.getPage() fail with "localTools.getPage is not a function". Affects: x_quote_tweet, x_get_replies, x_get_media, and all other executeXeepyTool handlers. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/mcp/local-tools.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mcp/local-tools.js b/src/mcp/local-tools.js index 7ad47e4a..b44f4e08 100644 --- a/src/mcp/local-tools.js +++ b/src/mcp/local-tools.js @@ -1336,6 +1336,8 @@ export async function x_client_get_trends() { // ============================================================================ export const toolMap = { + // Internal helper used by xeepy tools in server.js + getPage, // Auth x_login, // Scraping (delegated to scrapers/index.js — single source of truth)