mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-06 03:59:03 +08:00
Support scoped Agent workdirs for Repomix and Excel MCP
This commit is contained in:
1 parent
b154386fc3
commit
c3d1fc7b4d
9 files changed
+16
-9
No files matched your search
@@ -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' } } },
|
||||
|
||||
Reference in new issue
Block a user