vault backup: 2026-06-09 23:15:17

This commit is contained in:
2026-06-09 23:15:17 +08:00
parent 31fd89aafe
commit e92c0327d9
111 changed files with 7276 additions and 8846 deletions
+22 -15
View File
@@ -1,18 +1,21 @@
# Channels — 外部频道消息接入
---
tags: [channels, mcp, 微信, 飞书, telegram, discord, 外部事件]
create time: 2026-06-09 22:30
---
> 启动参数:`--channels` / `--dangerously-load-development-channels`
> 状态:已解除 feature flag 和 OAuth 限制,可直接使用
# Channels — 外部频道消息接入
## 概述
Channel 是一个 MCP 服务器,它将外部事件推送到你运行中的 Claude Code 会话中,以便 Claude 可以在你不在终端时做出反应。详细使用说明请参考以下文档:
Channel 是一个 MCP 服务器,它将外部事件推送到你运行中的 Claude Code 会话中,以便 Claude 可以在你不在终端时做出反应。支持 Telegram、Discord、iMessage、飞书、微信等平台。
- **官方文档**:[使用 channels 将事件推送到运行中的会话](https://code.claude.com/docs/zh-CN/channels)
- **飞书插件**:[claude-code-feishu-channel](https://github.com/whobot-ai/claude-code-feishu-channel) — 社区首个飞书 Channel 插件,支持双向消息、配对认证、群组聊天、文件附件
> [!info]
> 启动参数:`--channels` / `--dangerously-load-development-channels`
> 状态:已解除 feature flag 和 OAuth 限制,可直接使用
本仓库现在内置了 **微信 WeChat channel**,不需要单独安装外部 marketplace 插件。
## 正文
## 快速开始
### 快速开始
```bash
# 启用频道监听(plugin 格式)
@@ -32,7 +35,7 @@ ccb --channels plugin:feishu@claude-code-feishu-channel --channels server:discor
ccb --dangerously-load-development-channels server:my-custom-channel
```
## 支持的 Channel
### 支持的 Channel
| Channel | 说明 | 来源 |
|---------|------|------|
@@ -42,9 +45,9 @@ ccb --dangerously-load-development-channels server:my-custom-channel
| **飞书 (Feishu/Lark)** | 双向消息、群组聊天、文件附件 | `/plugin install feishu@claude-code-feishu-channel` |
| **微信 (WeChat)** | 内置 channel,支持扫码登录、双向消息、附件透传 | `ccb weixin login` + `ccb --channels plugin:weixin@builtin` |
## 微信内置 Channel
### 微信内置 Channel
### 登录
#### 登录
```bash
ccb weixin login
@@ -56,13 +59,13 @@ ccb weixin login
ccb weixin login clear
```
### 会话启用
#### 会话启用
```bash
ccb --channels plugin:weixin@builtin
```
### 配对授权
#### 配对授权
首次收到未授权微信用户消息时,weixin channel 会回一条 6 位 pairing code。运营侧可在终端执行:
@@ -72,7 +75,7 @@ ccb weixin access pair <code>
确认后,该微信用户后续消息才会进入 Claude Code 会话。
## 相关文件
### 相关文件
| 文件 | 职责 |
|------|------|
@@ -83,7 +86,11 @@ ccb weixin access pair <code>
| `src/main.tsx` | `--channels` 参数解析 |
| `src/interactiveHelpers.tsx` | Dev channels 确认对话框 |
## 参考链接
### 参考链接
- [官方 Channels 文档](https://code.claude.com/docs/zh-CN/channels) — 完整使用说明、安全性、Enterprise 控制
- [飞书 Channel 插件](https://github.com/whobot-ai/claude-code-feishu-channel) — 安装配置教程、MCP 工具、Skill 命令参考
## 关联笔记
- [[all-features-guide]]