openbird 1.3.0 → 1.4.0
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 +10 -3
- package/dist/index.js +5 -5
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
飞书(Lark)非官方基础设施服务,运行在本地,通过浏览器 cookie 连接飞书,提供两个核心能力:
|
|
4
4
|
|
|
5
5
|
1. **Webhook 转发** — 连接飞书 WebSocket,将消息标准化后 POST 到你配置的 webhook 地址
|
|
6
|
-
2. **MCP Server** — 通过 stdio
|
|
6
|
+
2. **MCP Server** — 通过 stdio 暴露多个飞书 API 工具,供 AI Agent 调用
|
|
7
7
|
|
|
8
8
|
```
|
|
9
9
|
飞书 WebSocket ──> OpenBird ──> Webhook URL(你的代码)
|
|
@@ -154,7 +154,7 @@ createServer({
|
|
|
154
154
|
|
|
155
155
|
## MCP 工具
|
|
156
156
|
|
|
157
|
-
通过 [Model Context Protocol](https://modelcontextprotocol.io/)
|
|
157
|
+
通过 [Model Context Protocol](https://modelcontextprotocol.io/) 提供多个工具(stdio 通信)。
|
|
158
158
|
|
|
159
159
|
### 消息
|
|
160
160
|
|
|
@@ -191,6 +191,13 @@ createServer({
|
|
|
191
191
|
| `get_user_relation` | 查询与目标用户的关系 |
|
|
192
192
|
| `get_user_presence` | 获取用户在线状态 |
|
|
193
193
|
|
|
194
|
+
### 机器人
|
|
195
|
+
|
|
196
|
+
| 工具 | 说明 |
|
|
197
|
+
|---|---|
|
|
198
|
+
| `create_webhook_bot` | 在指定会话中创建 webhook 机器人 |
|
|
199
|
+
| `get_webhook_bot_info` | 获取 webhook 机器人的 webhook 地址和配置信息 |
|
|
200
|
+
|
|
194
201
|
### 通讯录
|
|
195
202
|
|
|
196
203
|
| 工具 | 说明 |
|
|
@@ -256,7 +263,7 @@ openbird/
|
|
|
256
263
|
│ │ ├── normalizer.js # WebSocket 消息 -> OpenBird 事件
|
|
257
264
|
│ │ └── dispatcher.js # HTTP POST 转发(含重试)
|
|
258
265
|
│ └── mcp/
|
|
259
|
-
│ └── server.js # MCP Server
|
|
266
|
+
│ └── server.js # MCP Server(多个工具)
|
|
260
267
|
├── examples/
|
|
261
268
|
│ └── basic-usage.mjs # 完整示例
|
|
262
269
|
└── docs/
|