@vrs-soft/wecom-aibot-mcp 3.1.0 → 3.1.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/dist/channel-server.js +8 -0
- package/package.json +1 -1
package/dist/channel-server.js
CHANGED
|
@@ -551,6 +551,14 @@ function registerChannelTools(server) {
|
|
|
551
551
|
doc_id: z.string().describe('文档 ID'),
|
|
552
552
|
save_as: z.string().optional().describe('可选:自定义文件名'),
|
|
553
553
|
}, async (params) => forwardToHttpMcp('accept_document', params));
|
|
554
|
+
server.tool('get_document_info', '查询单个文档的元数据(不返回 content)。与 fetch_document 同权限:仅 to_cc 可查。', {
|
|
555
|
+
cc_id: z.string().describe('自己的 CC 标识(必须 = 文档的 to_cc)'),
|
|
556
|
+
doc_id: z.string().describe('文档 ID'),
|
|
557
|
+
}, async (params) => forwardToHttpMcp('get_document_info', params));
|
|
558
|
+
server.tool('get_shared_file_info', '查询单个共享文件的元数据(不返回 content)。共享池无权限校验,任何 CC 都可查。', {
|
|
559
|
+
cc_id: z.string().describe('自己的 CC 标识'),
|
|
560
|
+
file_id: z.string().describe('共享文件 ID'),
|
|
561
|
+
}, async (params) => forwardToHttpMcp('get_shared_file_info', params));
|
|
554
562
|
server.tool('accept_shared_file', '从共享池下载文件并落盘到 {projectDir}/received-file/。共享池为 pull 模型,无强制询问。', {
|
|
555
563
|
cc_id: z.string().describe('自己的 CC 标识'),
|
|
556
564
|
file_id: z.string().describe('共享文件 ID'),
|