Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Python agent-infrastructureai-agentai-searchautomationbilibiliclaude-codeclicursorfree-apillm-toolsmcppythonreddit-scrapertwitter-scraperweb-scraperxiaohongshuyoutube-transcript
fix(install): avoid unrelated PyPI package
Pnant50d482a557e7
diff --git a/README.md b/README.mdindex c495cdf0..a6f7bc9e 100644--- a/README.md+++ b/README.md@@ -162,7 +162,7 @@ AI Agent 已经能帮你写代码、改文档、管项目——但你让它去<details><summary>它会做什么?(点击展开)</summary>-1. **安装 CLI 工具** — `pip install` 装好 `agent-reach` 命令行(自带 yt-dlp、feedparser)+1. **安装 CLI 工具** — 从本仓库安装 `agent-reach` 命令行(自带 yt-dlp、feedparser;不要从 PyPI 安装同名包,它不是本项目)2. **安装系统基建** — 自动检测并安装 Node.js、gh CLI、mcporter3. **配置搜索引擎** — 通过 MCP 接入 Exa(免费,无需 API Key)4. **检测环境** — 判断是本地电脑还是服务器,给出对应的配置建议diff --git a/agent_reach/integrations/mcp_server.py b/agent_reach/integrations/mcp_server.pyindex 8452ef5f..9b226706 100644--- a/agent_reach/integrations/mcp_server.py+++ b/agent_reach/integrations/mcp_server.py@@ -28,7 +28,12 @@ except ImportError:def create_server():if not HAS_MCP:- print("MCP not installed. Install: pip install agent-reach[mcp]", file=sys.stderr)+ print(+ "MCP not installed. Install: python -m pip install "+ "'agent-reach[mcp] @ "+ "https://github.com/Panniantong/agent-reach/archive/main.zip'",+ file=sys.stderr,+ )sys.exit(1)server = Server("agent-reach")diff --git a/docs/README_ja.md b/docs/README_ja.mdindex 88c15f54..ae9a9eb7 100644--- a/docs/README_ja.md+++ b/docs/README_ja.md@@ -272,7 +272,7 @@ Agent Reach は [rdt-cli](https://github.com/public-clis/rdt-cli) でRedditに<details><summary><strong>Agent Reach は Claude Code / Cursor / Windsurf / OpenClaw で動作する?</strong></summary>-はい!Agent Reach はインストーラー + 設定ツールです。シェルコマンドを実行できるあらゆるAIコーディングエージェントで使用できます — Claude Code、Cursor、Windsurf、OpenClaw、Codex等。`pip install agent-reach` を実行し、`agent-reach install` を実行するだけで、エージェントはすぐに上流ツールを使い始められます。+はい!Agent Reach はインストーラー + 設定ツールです。シェルコマンドを実行できるあらゆるAIコーディングエージェントで使用できます — Claude Code、Cursor、Windsurf、OpenClaw、Codex等。`pip install https://github.com/Panniantong/agent-reach/archive/main.zip` の後に `agent-reach install` を実行すると、エージェントはすぐに上流ツールを使い始められます。PyPI の同名パッケージは別プロジェクトです。</details><details>diff --git a/docs/README_ko.md b/docs/README_ko.mdindex da035a6b..9f06fba3 100644--- a/docs/README_ko.md+++ b/docs/README_ko.md@@ -273,7 +273,7 @@ Agent Reach는 Reddit을 위해 [rdt-cli](https://github.com/public-clis/rdt-cli<details><summary><strong>Agent Reach는 Claude Code / Cursor / Windsurf / OpenClaw와 호환되나요?</strong></summary>-네! Agent Reach는 설치 + 설정 도구입니다. Shell 명령을 실행할 수 있는 모든 AI 코딩 에이전트가 사용할 수 있습니다 — Claude Code, Cursor, Windsurf, OpenClaw, Codex 등. `pip install agent-reach`만 실행하고 `agent-reach install`을 실행하면, 에이전트가 즉시 업스트림 도구 사용을 시작할 수 있습니다.+네! Agent Reach는 설치 + 설정 도구입니다. Shell 명령을 실행할 수 있는 모든 AI 코딩 에이전트가 사용할 수 있습니다 — Claude Code, Cursor, Windsurf, OpenClaw, Codex 등. `pip install https://github.com/Panniantong/agent-reach/archive/main.zip` 실행 후 `agent-reach install`을 실행하면, 에이전트가 즉시 업스트림 도구 사용을 시작할 수 있습니다. PyPI의 동명 패키지는 다른 프로젝트입니다.</details><details>diff --git a/tests/test_auth_guidance_policy.py b/tests/test_auth_guidance_policy.pyindex f67bb54e..3eeaf817 100644--- a/tests/test_auth_guidance_policy.py+++ b/tests/test_auth_guidance_policy.py@@ -2,6 +2,7 @@from __future__ import annotations+import refrom pathlib import PathROOT = Path(__file__).resolve().parents[1]@@ -139,3 +140,27 @@ def test_localized_readmes_keep_current_bilibili_and_xhs_routes():"xiaohongshu.py → OpenCLI ▸ xiaohongshu-mcp ▸ xhs-cli"in text), path.relative_to(ROOT)+++def test_public_guidance_never_installs_the_unrelated_pypi_package():+ """The PyPI name is owned by another project; GitHub URLs are required."""+ candidates = _policy_documents() + [+ ROOT / "agent_reach" / "integrations" / "mcp_server.py",+ ]+ bare_install = re.compile(+ r"\bpip\s+install(?:\s+--upgrade)?\s+['\"]?agent-reach(?:\[[^\]]+\])?\b",+ re.IGNORECASE,+ )+ violations = []+ for path in candidates:+ for line_number, line in enumerate(+ path.read_text(encoding="utf-8").splitlines(), 1+ ):+ if bare_install.search(line) and (+ "github.com/Panniantong/agent-reach" not in line+ ):+ violations.append(+ f"{path.relative_to(ROOT)}:{line_number}: {line.strip()}"+ )++ assert not violations, "\n".join(violations)