lark-mcp-server 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -246,6 +246,10 @@ async function sendRequest(request) {
246
246
  if (tokenInfo?.userId) {
247
247
  headers['X-User-Id'] = tokenInfo.userId;
248
248
  }
249
+ // 传递 unionId 给服务端(用于查询飞书项目 user_key)
250
+ if (tokenInfo?.unionId) {
251
+ headers['X-Union-Id'] = tokenInfo.unionId;
252
+ }
249
253
 
250
254
  const response = await fetch(messagesEndpoint, {
251
255
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lark-mcp-server",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "飞书 MCP 本地代理 - 让 AI 编程工具读取飞书文档,Token 本地安全存储",
5
5
  "type": "module",
6
6
  "bin": {