Support scoped Agent workdirs for Repomix and Excel MCP

This commit is contained in:
yige committed 2026-12-01 00:25:18 +08:00
1 parent b154386fc3
commit c3d1fc7b4d
9 files changed
+16 -9

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@
"macos"
]
},
"requiredClientVersion": "10.0.216"
"requiredClientVersion": "10.0.218"
},
"spec": {
"kind": "service",
+2 -2
View File
@@ -6,9 +6,9 @@ title: 安装 Excel MCP
在支持 MCP 数据目录选择的 DesireCore 本机桌面窗口发起安装。需要 Python ≥3.11 和 uvx。当前记录覆盖 macOS。
选择存放工作簿的目录。使用 `--allow-dir .` 限定工作簿路径,默认只读。 路径由 DesireCore 绑定到本次安装,作为服务的启动工作目录。目录清单和安装信封不保存用户数据目录。取消选择即停止本次安装。
勾选 Agent 工作目录后,Excel MCP 以当前已授权默认目录为相对路径起点。其余已授权目录可以用绝对路径访问工作簿。当默认目录未获授权时,选择对应的目录工具。服务按只读模式启动。 也可以明确选择一个固定目录。安装记录确认所选范围,目录清单和安装信封不保存用户的本机路径。新注册的工作目录需要另行确认。
使用附带的固定目录获取信封执行 MCP 安装和连接测试,再用带同一 `catalogAcquisition` 的接口登记。后端使用用户已选目录。连接成功后再结算。
使用当前目录版本的信封执行 MCP 安装和连接测试,再用带同一 catalogAcquisition 的接口登记。连接成功后结算。
代表性验证为 `read_range` 读取合成工作簿中的指定单元格。
+1
View File
@@ -40,6 +40,7 @@
"connection": {
"transport": "stdio",
"requiresDataDirectory": true,
"workdirStrategy": "excel-allow-dir",
"command": "uvx",
"args": [
"--from",
+1 -1
View File
@@ -1,5 +1,5 @@
# Excel MCP
选择存放工作簿的目录。使用 `--allow-dir .` 限定工作簿路径,默认只读。
勾选 Agent 工作目录后,Excel MCP 以当前已授权默认目录为相对路径起点。其余已授权目录可以用绝对路径访问工作簿。当默认目录未获授权时,选择对应的目录工具。服务按只读模式启动。 也可以在安装时指定一个固定目录。
`read_range` 读取合成工作簿中的指定单元格。
+1 -1
View File
@@ -99,7 +99,7 @@
"macos"
]
},
"requiredClientVersion": "10.0.216"
"requiredClientVersion": "10.0.218"
},
"spec": {
"kind": "service",
+2 -2
View File
@@ -6,9 +6,9 @@ title: 安装 Repomix MCP
在支持 MCP 数据目录选择的 DesireCore 本机桌面窗口发起安装。需要 Node.js ≥22 和 npm。当前记录覆盖 macOS。
选择要读取或打包的代码目录。使用 `--sandbox .` 将可用文件工具限制在该目录。 路径由 DesireCore 绑定到本次安装,作为服务的启动工作目录。目录清单和安装信封不保存用户数据目录。取消选择即停止本次安装。
勾选 Agent 工作目录后,DesireCore 为每个当前已授权的目录建立独立的 Repomix 连接。--sandbox . 限定文件访问。相对路径从选中的连接目录解析。需要读取或搜索打包结果时,继续使用生成该结果的连接。 也可以明确选择一个固定目录。安装记录确认所选范围,目录清单和安装信封不保存用户的本机路径。新注册的工作目录需要另行确认。
使用附带的固定目录获取信封执行 MCP 安装和连接测试,再用带同一 `catalogAcquisition` 的接口登记。后端使用用户已选目录。连接成功后再结算。
使用当前目录版本的信封执行 MCP 安装和连接测试,再用带同一 catalogAcquisition 的接口登记。连接成功后结算。
代表性验证为 `file_system_read_file` 读取合成项目中的文本文件。
+1
View File
@@ -37,6 +37,7 @@
"connection": {
"transport": "stdio",
"requiresDataDirectory": true,
"workdirStrategy": "per-directory",
"command": "npx",
"args": [
"--yes",
+1 -1
View File
@@ -1,5 +1,5 @@
# Repomix MCP
选择要读取或打包的代码目录。使用 `--sandbox .` 将可用文件工具限制在该目录。
勾选 Agent 工作目录后,DesireCore 为每个当前已授权的目录建立独立的 Repomix 连接。--sandbox . 限定文件访问。相对路径从选中的连接目录解析。需要读取或搜索打包结果时,继续使用生成该结果的连接。 也可以在安装时指定一个固定目录。
`file_system_read_file` 读取合成项目中的文本文件。
+6 -1
View File
@@ -21,13 +21,18 @@ export function withMcpDataDirectory(schema) {
...connection,
properties: {
...connection.properties,
workdirStrategy: {
enum: ['per-directory', 'excel-allow-dir'],
description: 'Opt into confirmed Agent workdirs using independent processes or native Excel allow-dir options.',
},
requiresDataDirectory: {
const: true,
description: 'Require the user-selected data folder as the stdio working directory.',
description: 'Require explicit user consent for the MCP data folders.',
},
},
allOf: [
...(connection.allOf ?? []),
{ if: { required: ['workdirStrategy'] }, then: { required: ['requiresDataDirectory'] } },
{
if: { required: ['requiresDataDirectory'] },
then: { properties: { transport: { const: 'stdio' } } },