This commit is contained in:
1 parent
d5022d2d59
commit
cd2394dd22
19 files changed
+1757
-32
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ function createMcpFiles({ getGrants, trashFile }) {
|
||||
};
|
||||
const metadata = stat => ({ size: stat.size, modifiedAt: stat.mtime.toISOString(), directory: stat.isDirectory(), file: stat.isFile() });
|
||||
return {
|
||||
mhu_files_roots: async () => getGrants().map(({ id, label, readOnly }) => ({ id, label, readOnly: readOnly !== false })),
|
||||
mhu_files_roots: async () => getGrants().map(({ id, label, readOnly, allowTransfer }) => ({ id, label, readOnly: readOnly !== false, allowTransfer: allowTransfer === true })),
|
||||
mhu_files_stat: async (args, context) => {
|
||||
guard(context);
|
||||
const target = await resolveGrantedFile(getGrants(), args.rootId, args.relativePath);
|
||||
|
||||
Reference in new issue
Block a user