Skip to content

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

fix: 修复 _install_mcporter 函数丢失 + browser-cookie3 硬依赖 + 自动装 birdx

Panniantongd52520a17e75
diff --git a/agent_reach/cli.py b/agent_reach/cli.py
index 6a287b6f..396468c3 100644
--- a/agent_reach/cli.py
+++ b/agent_reach/cli.py
@@ -283,7 +283,26 @@ def _install_system_deps():
except Exception:
print(" ⚠️ Node.js install failed. Install manually: https://nodejs.org")
+ # ── birdx (for Twitter search) ──
+ if shutil.which("birdx"):
+ print(" ✅ birdx already installed")
+ else:
+ if shutil.which("pip3") or shutil.which("pip"):
+ pip_cmd = "pip3" if shutil.which("pip3") else "pip"
+ try:
+ subprocess.run(
+ [pip_cmd, "install", "-q", "birdx"],
+ capture_output=True, text=True, timeout=120,
+ )
+ if shutil.which("birdx"):
+ print(" ✅ birdx installed (Twitter search + timeline)")
+ else:
+ print(" ⬜ birdx install failed (optional — Twitter reading still works via Jina)")
+ except Exception:
+ print(" ⬜ birdx install failed (optional — Twitter reading still works via Jina)")
+
+def _install_mcporter():
"""Install mcporter and configure Exa + XiaoHongShu MCP servers."""
import shutil
import subprocess
diff --git a/pyproject.toml b/pyproject.toml
index 659e8d34..4f87f4c0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,13 +27,11 @@ dependencies = [
"pyyaml>=6.0",
"rich>=13.0",
"yt-dlp>=2024.0",
- "browser-cookie3>=0.19",
]
[project.optional-dependencies]
browser = ["playwright>=1.40"]
cookies = ["browser-cookie3>=0.19"]
-mcp = ["mcp[cli]>=1.0"]
all = ["playwright>=1.40", "mcp[cli]>=1.0", "browser-cookie3>=0.19"]
[project.scripts]