mcpField
A
agent-reach

agent-reach

github.com/edisonchenai生产力168633 次安装34 周前更新
代码仓库

关于 agent-reach

Agent Reach 是一份技能指南,介绍如何使用覆盖 13 个以上平台的上游工具。它提供网页搜索、社交网络、视频、GitHub、订阅源及职位或个人资料查询的命令示例,并说明渠道诊断与配置方法。

主要功能

  1. 01用 agent-reach doctor 检查渠道状态
  2. 02搜索网页并获取代码上下文
  3. 03读取和搜索社交及视频内容
  4. 04查询 GitHub 仓库、代码和问题
  5. 05访问订阅源、文章、个人资料和职位列表
  6. 06查看渠道配置与故障排查指引

适用场景

  1. 01检查已配置渠道是否可用
  2. 02搜索并查看帖子或视频字幕
  3. 03查询 GitHub 代码和未关闭问题
  4. 04获取个人资料、文章或职位信息

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/edisonchenai/agent-reach --skill agent-reach

安装后在 Claude Code 中输入/agent-reach确认已加载。

附带文件LICENSEREADME.md

详细介绍

Agent Reach — 使用指南

支持 13+ 个平台的上游工具。直接调用即可。

运行 agent-reach doctor,检查哪些渠道可用。

⚠️ 工作区规则

切勿在 Agent 工作区中创建文件。 临时输出请使用 /tmp/,持久化数据请使用 ~/.agent-reach/。

Web — 任意 URL

curl -s "https://r.jina.ai/URL"

Web 搜索(Exa)

mcporter call 'exa.web_search_exa(query: "query", numResults: 5)'
mcporter call 'exa.get_code_context_exa(query: "code question", tokensNum: 3000)'

Twitter/X(xreach)

xreach search "query" -n 10 --json          # search
xreach tweet URL_OR_ID --json                # read tweet (supports /status/ and /article/ URLs)
xreach tweets @username -n 20 --json         # user timeline
xreach thread URL_OR_ID --json               # full thread

YouTube(yt-dlp)

yt-dlp --dump-json "URL"                     # video metadata
yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --skip-download -o "/tmp/%(id)s" "URL"
                                             # download subtitles, then read the .vtt file
yt-dlp --dump-json "ytsearch5:query"         # search

Bilibili(yt-dlp)

yt-dlp --dump-json "https://www.bilibili.com/video/BVxxx"
yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --convert-subs vtt --skip-download -o "/tmp/%(id)s" "URL"

服务端 IP 可能会收到 412。请使用 --cookies-from-browser chrome 或配置代理。

Reddit

curl -s "https://www.reddit.com/r/SUBREDDIT/hot.json?limit=10" -H "User-Agent: agent-reach/1.0"
curl -s "https://www.reddit.com/search.json?q=QUERY&limit=10" -H "User-Agent: agent-reach/1.0"

服务端 IP 可能会收到 403。请改用 Exa 搜索,或配置代理。

GitHub(gh CLI)

gh search repos "query" --sort stars --limit 10
gh repo view owner/repo
gh search code "query" --language python
gh issue list -R owner/repo --state open
gh issue view 123 -R owner/repo

小红书 / XiaoHongShu(mcporter)

mcporter call 'xiaohongshu.search_feeds(keyword: "query")'
mcporter call 'xiaohongshu.get_feed_detail(feed_id: "xxx", xsec_token: "yyy")'
mcporter call 'xiaohongshu.get_feed_detail(feed_id: "xxx", xsec_token: "yyy", load_all_comments: true)'
mcporter call 'xiaohongshu.publish_content(title: "标题", content: "正文", images: ["/path/img.jpg"], tags: ["tag"])'

需要登录。请使用 Cookie-Editor 导入 Cookie。

抖音 / Douyin(mcporter)

mcporter call 'douyin.parse_douyin_video_info(share_link: "https://v.douyin.com/xxx/")'
mcporter call 'douyin.get_douyin_download_link(share_link: "https://v.douyin.com/xxx/")'

无需登录。

微信公众号 / 微信文章

搜索(miku_ai):

python3 -c "
import asyncio
from miku_ai import get_wexin_article
async def s():
    for a in await get_wexin_article('query', 5):
        print(f'{a[\"title\"]} | {a[\"url\"]}')
asyncio.run(s())
"

阅读(Camoufox — 绕过微信反爬机制):

cd ~/.agent-reach/tools/wechat-article-for-ai && python3 main.py "https://mp.weixin.qq.com/s/ARTICLE_ID"

无法使用 Jina Reader 或 curl 阅读微信文章。必须使用 Camoufox。

LinkedIn(mcporter)

mcporter call 'linkedin.get_person_profile(linkedin_url: "https://linkedin.com/in/username")'
mcporter call 'linkedin.search_people(keyword: "AI engineer", limit: 10)'

备用方案:curl -s "https://r.jina.ai/https://linkedin.com/in/username"

Boss直聘(mcporter)

mcporter call 'bosszhipin.get_recommend_jobs_tool(page: 1)'
mcporter call 'bosszhipin.search_jobs_tool(keyword: "Python", city: "北京")'

备用方案:curl -s "https://r.jina.ai/https://www.zhipin.com/job_detail/xxx"

RSS

python3 -c "
import feedparser
for e in feedparser.parse('FEED_URL').entries[:5]:
    print(f'{e.title} — {e.link}')
"

故障排除

  • 渠道无法使用? 运行 agent-reach doctor,查看状态和修复说明。
  • Twitter 获取失败? 请确保已安装 undici:npm install -g undici。配置代理:agent-reach configure proxy URL。

设置渠道(“帮我配 XXX”)

如果渠道需要设置(Cookie、Docker 等),请获取安装指南: https://raw.githubusercontent.com/Panniantong/agent-reach/main/docs/install.md

用户只需提供 Cookie。其他工作都由你完成。

评论

支持 Markdown