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.
- package/index.js +4 -0
- 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',
|