Skip to main content

Agent 通用渠道 I/O 网关:给定主题一键跨渠道获取内容、一键多渠道发布。本地 MCP server。

Project description

ClawsomeChannel

本地 MCP 服务,给 AI Agent 一套统一的渠道能力:Agent根据用户意图从指定渠道获取信息,或把内容发到指定渠道。

用户只需要用自然语言告诉 Agent 想看什么、发到哪里。Agent 通过 ClawsomeChannel 的 fetchpublish 工具完成输入与输出。

安装

pip install clawsomechannel

如果出现 Requires-PythonIgnored the following versions 报错,运行:

python3.10 -m venv ~/.local/share/clawsomechannel/venv
~/.local/share/clawsomechannel/venv/bin/python -m pip install -U pip
~/.local/share/clawsomechannel/venv/bin/python -m pip install clawsomechannel
mkdir -p ~/.local/bin
cat > ~/.local/bin/clawsomechannel <<'EOF'
#!/usr/bin/env sh
exec "$HOME/.local/share/clawsomechannel/venv/bin/python" -m clawsomechannel.cli "$@"
EOF
cat > ~/.local/bin/clawsomechannel-mcp <<'EOF'
#!/usr/bin/env sh
exec "$HOME/.local/share/clawsomechannel/venv/bin/python" -m clawsomechannel.transport.mcp_stdio "$@"
EOF
chmod +x ~/.local/bin/clawsomechannel ~/.local/bin/clawsomechannel-mcp

如果使用源码仓库:

scripts/install.sh

接入 MCP

推荐使用 CLI 自动配置:

clawsomechannel mcp install --client cursor
clawsomechannel mcp install --client claude-code
clawsomechannel mcp install --client claude-desktop
clawsomechannel mcp install --client codex
clawsomechannel mcp install --client openclaw
clawsomechannel mcp install --client hermes

只打印手动配置 JSON:

clawsomechannel mcp install --json

输出中的 command 是 MCP server 可执行文件的绝对路径。CLI 自动写入 Cursor、Claude Desktop、Codex 等配置时也会使用这个绝对路径,避免 GUI 客户端拿不到 shell PATH

什么是 Channel

Channel 是一个具体的输入源或输出目的地,也是用户和 Agent 日常使用的名字。

例子:

  • hn: 一个 Hacker News输入渠道。
  • 电报-工作群: 一个 Telegram 输出渠道。
  • 我的公众号: 一个微信公众号输出渠道。

创建 Channel 后,按 Channel 名录入凭证:

clawsomechannel creds set <Channel名>

常用命令

查看支持哪些平台:

clawsomechannel platforms list

查看某个平台需要准备什么:

clawsomechannel platforms requirements telegram --direction output
clawsomechannel platforms requirements rss --direction input

查看已有 Channel 轻量列表:

clawsomechannel channels existing

查看某个 Channel 的非密详情:

clawsomechannel channels show 电报-工作群

录入某个 Channel 的凭证:

clawsomechannel creds set 电报-工作群

检查某个 Channel 当前是否可用:

clawsomechannel channels check 电报-工作群

删除一个动态注册的 Channel:

clawsomechannel channels remove hn

基本使用

你可以直接对 Agent 说:

ClawsomeChannel 支持哪些输入和输出平台?

注册输入渠道:

添加一个ClawsomeChannel的输入渠道,平台是GitHub, 该渠道命名为“my-github-channel”。

注册输出渠道:

请在Telegram平台为我添加一个名为“电报-工作群”的ClawsomeChannel输出渠道

录入凭证:

clawsomechannel creds set 电报-工作群

获取信息:

请从 ClawsomeChannel 的"X", "hn", "Reddit"渠道抓取“AI 监管政策”相关信息,优先看最近 24 小时内讨论热度高的内容。

发布内容:

请把 /absolute/path/article.md 同时发布到以下渠道:“电报-工作群”, "X”, "我的微信公众号"。

支持平台

常见输入平台包括 RSS/Atom、Hacker News、GitHub、arXiv、YouTube、Reddit、V2EX、Bilibili、知乎、微博、掘金、豆瓣、Telegram 输入、Email/IMAP 等。

常见输出平台包括 Telegram、Slack、Discord、Email、Webhook、钉钉、飞书/Lark、企业微信机器人、Microsoft Teams、Matrix、Mattermost、Rocket.Chat、Gotify、ntfy、Pushover、Pushbullet、Bark、PushPlus、Server酱、X/Twitter、微信公众号图文、闲鱼、知乎等。

准确列表以命令输出为准:

clawsomechannel platforms list

升级

clawsomechannel upgrade

升级命令会自更新到最新稳定包并迁移本地数据。完成后需要重载或重启 MCP 客户端,让它重新启动最新的 clawsomechannel-mcp 进程:

  • Cursor:在 Settings > Tools & MCP 中切换该 server,执行 Developer: Reload Window,或完整重启 Cursor。
  • Claude Desktop:完整退出并重新打开应用。
  • Claude Code/Codex/其它 stdio 客户端:使用客户端提供的 MCP reconnect/reload 功能;没有热重载时重启当前会话。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawsomechannel-0.1.0b5.tar.gz (164.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawsomechannel-0.1.0b5-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

Details for the file clawsomechannel-0.1.0b5.tar.gz.

File metadata

  • Download URL: clawsomechannel-0.1.0b5.tar.gz
  • Upload date:
  • Size: 164.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for clawsomechannel-0.1.0b5.tar.gz
Algorithm Hash digest
SHA256 2dd4663d48133b83030dd977aa51c0cdae722e7cac9d7fb2ee2a0d54d70a9198
MD5 264fc302f265b986ca91c5d3146cec7d
BLAKE2b-256 33dcbfa26ddb2c145f000b6aa0d2d59bf7bf0e89b997789aa1807bf7d43927fb

See more details on using hashes here.

File details

Details for the file clawsomechannel-0.1.0b5-py3-none-any.whl.

File metadata

File hashes

Hashes for clawsomechannel-0.1.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 21ad3d5ef923ad2f2aa6f50b246f10ac9f179d690b62aaafa36d47c2b550b340
MD5 19e8aed04fefddebec281e0d97a80a6d
BLAKE2b-256 a9841d5d1ba3e95d62e51c25c4becd7ccb1544af6c47370e35d56f169933741c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page