diff --git a/entries/excel-mcp/catalog-metadata.v1.json b/entries/excel-mcp/catalog-metadata.v1.json index 9fabac2..32fa38f 100644 --- a/entries/excel-mcp/catalog-metadata.v1.json +++ b/entries/excel-mcp/catalog-metadata.v1.json @@ -99,7 +99,7 @@ "macos" ] }, - "requiredClientVersion": "10.0.216" + "requiredClientVersion": "10.0.218" }, "spec": { "kind": "service", diff --git a/entries/excel-mcp/install.md b/entries/excel-mcp/install.md index 3232170..a74f749 100644 --- a/entries/excel-mcp/install.md +++ b/entries/excel-mcp/install.md @@ -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` 读取合成工作簿中的指定单元格。 diff --git a/entries/excel-mcp/manifest.json b/entries/excel-mcp/manifest.json index 98f871c..dbcf0df 100644 --- a/entries/excel-mcp/manifest.json +++ b/entries/excel-mcp/manifest.json @@ -40,6 +40,7 @@ "connection": { "transport": "stdio", "requiresDataDirectory": true, + "workdirStrategy": "excel-allow-dir", "command": "uvx", "args": [ "--from", diff --git a/entries/excel-mcp/usage.md b/entries/excel-mcp/usage.md index 630fce1..6eecdfd 100644 --- a/entries/excel-mcp/usage.md +++ b/entries/excel-mcp/usage.md @@ -1,5 +1,5 @@ # Excel MCP -选择存放工作簿的目录。使用 `--allow-dir .` 限定工作簿路径,默认只读。 +勾选 Agent 工作目录后,Excel MCP 以当前已授权默认目录为相对路径起点。其余已授权目录可以用绝对路径访问工作簿。当默认目录未获授权时,选择对应的目录工具。服务按只读模式启动。 也可以在安装时指定一个固定目录。 `read_range` 读取合成工作簿中的指定单元格。 diff --git a/entries/repomix-mcp/catalog-metadata.v1.json b/entries/repomix-mcp/catalog-metadata.v1.json index 5186f5b..ad23ae2 100644 --- a/entries/repomix-mcp/catalog-metadata.v1.json +++ b/entries/repomix-mcp/catalog-metadata.v1.json @@ -99,7 +99,7 @@ "macos" ] }, - "requiredClientVersion": "10.0.216" + "requiredClientVersion": "10.0.218" }, "spec": { "kind": "service", diff --git a/entries/repomix-mcp/install.md b/entries/repomix-mcp/install.md index 19d59d0..1fb2be0 100644 --- a/entries/repomix-mcp/install.md +++ b/entries/repomix-mcp/install.md @@ -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` 读取合成项目中的文本文件。 diff --git a/entries/repomix-mcp/manifest.json b/entries/repomix-mcp/manifest.json index 1851511..13fa4a6 100644 --- a/entries/repomix-mcp/manifest.json +++ b/entries/repomix-mcp/manifest.json @@ -37,6 +37,7 @@ "connection": { "transport": "stdio", "requiresDataDirectory": true, + "workdirStrategy": "per-directory", "command": "npx", "args": [ "--yes", diff --git a/entries/repomix-mcp/usage.md b/entries/repomix-mcp/usage.md index 214aa9a..2b9c46d 100644 --- a/entries/repomix-mcp/usage.md +++ b/entries/repomix-mcp/usage.md @@ -1,5 +1,5 @@ # Repomix MCP -选择要读取或打包的代码目录。使用 `--sandbox .` 将可用文件工具限制在该目录。 +勾选 Agent 工作目录后,DesireCore 为每个当前已授权的目录建立独立的 Repomix 连接。--sandbox . 限定文件访问。相对路径从选中的连接目录解析。需要读取或搜索打包结果时,继续使用生成该结果的连接。 也可以在安装时指定一个固定目录。 `file_system_read_file` 读取合成项目中的文本文件。 diff --git a/scripts/catalog/entry-schema.mjs b/scripts/catalog/entry-schema.mjs index 6d42f0b..d3f0e33 100644 --- a/scripts/catalog/entry-schema.mjs +++ b/scripts/catalog/entry-schema.mjs @@ -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' } } },