Add guarded MCP file transfer and complete diagnostic access
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-10-15 17:31:34 +02:00
1 parent d5022d2d59
commit cd2394dd22
19 files changed
+1757 -32

No files matched your search

+1 -1
View File
@@ -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);