@lmcl/ailo-mcp-feishu 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/feishu-handler.js +1231 -0
- package/dist/index.js +38 -0
- package/dist/mcp-server.js +93 -0
- package/package.json +28 -0
- package/src/feishu-handler.ts +1470 -0
- package/src/index.ts +46 -0
- package/src/mcp-server.ts +114 -0
- package/tsconfig.json +13 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# 飞书通道
|
|
2
|
+
|
|
3
|
+
飞书/Lark 感知通道,WebSocket 长连接,双向收发。
|
|
4
|
+
|
|
5
|
+
## 安装与添加
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @lmcl/ailo-mcp-feishu
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
然后通过 mcp_manage 创建并启动:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
mcp_manage(action=create, name="channel:feishu", command="ailo-mcp-feishu", env={FEISHU_APP_ID: "cli_xxx", FEISHU_APP_SECRET: "xxx"})
|
|
15
|
+
mcp_manage(action=start, name="channel:feishu")
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 环境变量
|
|
19
|
+
|
|
20
|
+
| 变量 | 必填 | 说明 |
|
|
21
|
+
|-----|-----|-----|
|
|
22
|
+
| FEISHU_APP_ID | 是 | 飞书应用 App ID |
|
|
23
|
+
| FEISHU_APP_SECRET | 是 | 飞书应用 App Secret |
|
|
24
|
+
| FEISHU_DOMAIN | 否 | feishu \| lark,默认 feishu |
|
|
25
|
+
|
|
26
|
+
AIDO_WS_URL、AIDO_TOKEN、AIDO_MCP_NAME 由框架注入。
|
|
27
|
+
|
|
28
|
+
## 飞书开放平台
|
|
29
|
+
|
|
30
|
+
企业自建应用,事件与回调选「使用长连接接收事件」。订阅 im.message.receive_v1 等。权限:contact:user.base:readonly、im:chat:readonly、im:message:send_as_bot、im:resource、im:message.resource:readonly、im:message、docx:document:readonly、doc:document:readonly、drive:drive:readonly。
|