@burdenoff/mcp-libs 2026.1009.1 → 2026.1012.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/modules/files/index.cjs +101 -432
  2. package/dist/modules/files/index.cjs.map +1 -1
  3. package/dist/modules/files/index.js +102 -428
  4. package/dist/modules/files/index.js.map +1 -1
  5. package/dist/modules/groups/index.cjs +89 -360
  6. package/dist/modules/groups/index.cjs.map +1 -1
  7. package/dist/modules/groups/index.js +90 -356
  8. package/dist/modules/groups/index.js.map +1 -1
  9. package/dist/modules/rbac/index.cjs +34 -56
  10. package/dist/modules/rbac/index.cjs.map +1 -1
  11. package/dist/modules/rbac/index.js +34 -56
  12. package/dist/modules/rbac/index.js.map +1 -1
  13. package/dist/modules/sandbox/index.cjs +80 -1136
  14. package/dist/modules/sandbox/index.cjs.map +1 -1
  15. package/dist/modules/sandbox/index.js +80 -916
  16. package/dist/modules/sandbox/index.js.map +1 -1
  17. package/dist/modules/scheduler/index.cjs +70 -1044
  18. package/dist/modules/scheduler/index.cjs.map +1 -1
  19. package/dist/modules/scheduler/index.js +69 -1038
  20. package/dist/modules/scheduler/index.js.map +1 -1
  21. package/dist/modules/security/index.cjs +42 -507
  22. package/dist/modules/security/index.cjs.map +1 -1
  23. package/dist/modules/security/index.js +41 -501
  24. package/dist/modules/security/index.js.map +1 -1
  25. package/dist/modules/store/index.cjs +49 -479
  26. package/dist/modules/store/index.cjs.map +1 -1
  27. package/dist/modules/store/index.js +48 -473
  28. package/dist/modules/store/index.js.map +1 -1
  29. package/dist/modules/support/index.cjs +18 -19
  30. package/dist/modules/support/index.cjs.map +1 -1
  31. package/dist/modules/support/index.js +18 -19
  32. package/dist/modules/support/index.js.map +1 -1
  33. package/dist/modules/tags/index.cjs +43 -348
  34. package/dist/modules/tags/index.cjs.map +1 -1
  35. package/dist/modules/tags/index.js +42 -342
  36. package/dist/modules/tags/index.js.map +1 -1
  37. package/dist/modules/vibecontrols/index.js +1774 -1
  38. package/dist/modules/vibecontrols/index.js.map +1 -1
  39. package/dist/modules/workspaces/index.cjs +5 -12
  40. package/dist/modules/workspaces/index.cjs.map +1 -1
  41. package/dist/modules/workspaces/index.js +5 -12
  42. package/dist/modules/workspaces/index.js.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunk-XITZQYB2.js +0 -1776
  45. package/dist/chunk-XITZQYB2.js.map +0 -1
@@ -37,12 +37,6 @@ function mcpToolName(productName, ...parts) {
37
37
  }
38
38
 
39
39
  // src/core/result.ts
40
- function jsonResult(data, structured) {
41
- const result = {
42
- content: [{ type: "text", text: JSON.stringify(data, null, 2) }]
43
- };
44
- return result;
45
- }
46
40
  function errorResult(message, hint) {
47
41
  const text = hint ? `${message}
48
42
 
@@ -50,449 +44,124 @@ Hint: ${hint}` : message;
50
44
  return { content: [{ type: "text", text }], isError: true };
51
45
  }
52
46
 
53
- // src/modules/files/operations.ts
54
- var BROWSE_FOLDER = `
55
- query BrowseFolder($folderId: ID, $pagination: PaginationInput) {
56
- getFolder(id: $folderId) {
57
- id name path
58
- files { id name size mimeType }
59
- subFolders { id name path level }
60
- }
61
- getFilesInFolder(folderId: $folderId, pagination: $pagination) {
62
- files { id name size mimeType extension createdAt }
63
- total hasMore
64
- }
65
- }
66
- `;
67
- var LIST_FILES = `
68
- query GetFiles($folderId: ID, $pagination: PaginationInput) {
69
- getFiles(folderId: $folderId, pagination: $pagination) {
70
- files {
71
- id name description workspaceId folderId
72
- mimeType extension size s3Key s3Bucket
73
- downloadUrl status visibility
74
- starred downloadCount viewCount sha256Hash
75
- uploadedById createdAt updatedAt tags
76
- }
77
- total page limit hasMore
78
- }
79
- }
80
- `;
81
- var GET_FILE = `
82
- query GetFile($id: ID!) {
83
- getFile(id: $id) {
84
- id name description workspaceId folderId
85
- mimeType extension size s3Key s3Bucket
86
- downloadUrl status visibility
87
- starred downloadCount viewCount sha256Hash
88
- uploadedById createdAt updatedAt tags
89
- }
90
- }
91
- `;
92
- var GET_FILE_DOWNLOAD_URL = `
93
- query GetFileDownloadUrl($id: ID!, $expiresIn: Int) {
94
- getFileDownloadUrl(id: $id, expiresIn: $expiresIn)
95
- }
96
- `;
97
- var UPLOAD_FILE = `
98
- mutation UploadFile($input: UploadFileInput!) {
99
- uploadFile(input: $input) {
100
- file {
101
- id name description workspaceId folderId
102
- mimeType extension size s3Key s3Bucket
103
- status visibility uploadedById createdAt
104
- }
105
- uploadProgress
106
- message
107
- }
108
- }
109
- `;
110
- var INITIATE_UPLOAD = `
111
- mutation InitiateUpload($input: InitiateUploadInput!) {
112
- initiateUpload(input: $input) {
113
- session { id fileName fileSize s3Bucket s3Key }
114
- uploadUrl
115
- presignedUrls { partNumber url expiresAt }
116
- multipartUploadId
117
- }
118
- }
119
- `;
120
- var COMPLETE_UPLOAD = `
121
- mutation CompleteUpload($input: CompleteUploadInput!) {
122
- completeUpload(input: $input) {
123
- file { id name size s3Bucket s3Key downloadUrl }
124
- fileId
125
- }
126
- }
127
- `;
128
- var CREATE_SHARE = `
129
- mutation CreateShare($input: FileCreateShareInput!) {
130
- createShare(input: $input) {
131
- id token shareType accessLevel expiresAt requiresPassword
132
- downloadCount maxDownloads createdAt
133
- }
134
- }
135
- `;
136
- var REVOKE_SHARE = `
137
- mutation RevokeShare($id: ID!) {
138
- revokeShare(id: $id) {
139
- id revokedAt revokedBy
140
- }
141
- }
142
- `;
143
-
144
47
  // src/modules/files/tools.ts
145
- var VisibilityEnum = zod.z.enum(["PRIVATE", "TEAM", "WORKSPACE", "PUBLIC"]);
146
- var ShareAccessEnum = zod.z.enum(["VIEW", "COMMENT", "DOWNLOAD", "EDIT"]);
147
- var ShareTypeEnum = zod.z.enum(["PUBLIC_LINK", "EMAIL_INVITE", "GROUP_SHARE"]);
148
- function registerFilesTools(server, ctx, track) {
48
+ function stubbedTool(server, toolName, title, description, featureNote, inputSchema, altSuggestions) {
149
49
  server.registerTool(
150
- track(mcpToolName(ctx.productName, "files_browse")),
50
+ toolName,
151
51
  {
152
- title: "Browse Folder",
153
- description: "Browse a workspace folder. Returns subfolders and paginated files. Omit folderId to browse the root.",
154
- inputSchema: {
155
- folderId: zod.z.string().optional().describe("Folder ID (omit to browse root)"),
156
- limit: zod.z.number().optional().describe("Page size (default 100)"),
157
- offset: zod.z.number().optional().describe("Skip results")
158
- }
52
+ title,
53
+ description: `${description} [STUB]`,
54
+ inputSchema
159
55
  },
160
- async ({ folderId, limit, offset }) => {
161
- try {
162
- const pagination = {};
163
- if (limit !== void 0) pagination.limit = limit;
164
- if (offset !== void 0) pagination.offset = offset;
165
- const data = await ctx.gql.workspace.request(BROWSE_FOLDER, {
166
- folderId: folderId ?? null,
167
- pagination: Object.keys(pagination).length > 0 ? pagination : void 0
168
- });
169
- return jsonResult({
170
- folder: data.getFolder,
171
- files: data.getFilesInFolder.files,
172
- total: data.getFilesInFolder.total,
173
- hasMore: data.getFilesInFolder.hasMore
174
- });
175
- } catch (error) {
176
- ctx.logger.error("files_browse failed", { error });
177
- return errorResult(
178
- `Failed to browse folder: ${error instanceof Error ? error.message : String(error)}`
179
- );
180
- }
181
- }
56
+ async () => errorResult(
57
+ `[stubbed] ${featureNote} Use ${altSuggestions.join(", ")} instead. The tool remains registered so callers receive a meaningful response instead of a schema-validation error.`
58
+ )
182
59
  );
183
- server.registerTool(
184
- track(mcpToolName(ctx.productName, "files_upload_initiate")),
185
- {
186
- title: "Initiate File Upload",
187
- description: "Initiate a multipart upload session. Returns presigned URL(s) the caller must PUT bytes to, plus a sessionId to use with files_upload_complete. MCP cannot read local files; the caller is responsible for streaming bytes to the returned URL(s).",
188
- inputSchema: {
189
- fileName: zod.z.string().describe("File name including extension"),
190
- fileSize: zod.z.number().describe("File size in bytes"),
191
- sha256Hash: zod.z.string().describe("Hex SHA-256 of the file contents"),
192
- mimeType: zod.z.string().optional().describe("MIME type (default: application/octet-stream)"),
193
- extension: zod.z.string().optional().describe("File extension without leading dot"),
194
- folderId: zod.z.string().optional().describe("Target folder ID"),
195
- visibility: VisibilityEnum.optional().describe("Visibility (default: WORKSPACE)")
196
- }
197
- },
198
- async ({ fileName, fileSize, sha256Hash, mimeType, extension, folderId, visibility }) => {
199
- try {
200
- const input = {
201
- fileName,
202
- fileSize,
203
- sha256Hash,
204
- mimeType: mimeType ?? "application/octet-stream",
205
- visibility: visibility ?? "WORKSPACE"
206
- };
207
- if (extension !== void 0) input.extension = extension;
208
- if (folderId !== void 0) input.folderId = folderId;
209
- const data = await ctx.gql.workspace.request(INITIATE_UPLOAD, { input });
210
- return jsonResult(data.initiateUpload);
211
- } catch (error) {
212
- ctx.logger.error("files_upload_initiate failed", { error });
213
- return errorResult(
214
- `Failed to initiate upload: ${error instanceof Error ? error.message : String(error)}`
215
- );
216
- }
217
- }
218
- );
219
- server.registerTool(
220
- track(mcpToolName(ctx.productName, "files_upload_complete")),
221
- {
222
- title: "Complete File Upload",
223
- description: "Complete an in-flight upload session previously initiated by files_upload_initiate.",
224
- inputSchema: {
225
- sessionId: zod.z.string().describe("Session ID from files_upload_initiate"),
226
- folderId: zod.z.string().optional().describe("Target folder ID (overrides initiate)"),
227
- description: zod.z.string().optional().describe("File description")
228
- }
229
- },
230
- async ({ sessionId, folderId, description }) => {
231
- try {
232
- const input = { sessionId };
233
- if (folderId !== void 0) input.folderId = folderId;
234
- if (description !== void 0) input.description = description;
235
- const data = await ctx.gql.workspace.request(COMPLETE_UPLOAD, { input });
236
- return jsonResult(data.completeUpload);
237
- } catch (error) {
238
- ctx.logger.error("files_upload_complete failed", { error });
239
- return errorResult(
240
- `Failed to complete upload: ${error instanceof Error ? error.message : String(error)}`
241
- );
242
- }
243
- }
244
- );
245
- server.registerTool(
246
- track(mcpToolName(ctx.productName, "files_share_create")),
247
- {
248
- title: "Create File Share",
249
- description: "Create a shareable link for a file with optional access controls.",
250
- inputSchema: {
251
- fileId: zod.z.string().describe("File ID to share"),
252
- access: ShareAccessEnum.optional().describe("Access level (default: DOWNLOAD)"),
253
- expiresAt: zod.z.string().optional().describe("Expiry timestamp in ISO 8601"),
254
- password: zod.z.string().optional().describe("Optional password to gate the share"),
255
- maxDownloads: zod.z.number().optional().describe("Maximum download count")
256
- }
257
- },
258
- async ({ fileId, access, expiresAt, password, maxDownloads }) => {
259
- try {
260
- const input = {
261
- fileId,
262
- shareType: "PUBLIC_LINK",
263
- accessLevel: access ?? "DOWNLOAD"
264
- };
265
- if (expiresAt !== void 0) input.expiresAt = expiresAt;
266
- if (password !== void 0) input.password = password;
267
- if (maxDownloads !== void 0) input.maxDownloads = maxDownloads;
268
- const data = await ctx.gql.workspace.request(CREATE_SHARE, { input });
269
- return jsonResult(data.createShare);
270
- } catch (error) {
271
- ctx.logger.error("files_share_create failed", { error });
272
- return errorResult(
273
- `Failed to create share: ${error instanceof Error ? error.message : String(error)}`
274
- );
275
- }
276
- }
277
- );
278
- server.registerTool(
279
- track(mcpToolName(ctx.productName, "files_share_revoke")),
280
- {
281
- title: "Revoke File Share",
282
- description: "Revoke a previously created file share by ID.",
283
- inputSchema: {
284
- id: zod.z.string().describe("Share ID to revoke")
285
- }
286
- },
287
- async ({ id }) => {
288
- try {
289
- const data = await ctx.gql.workspace.request(REVOKE_SHARE, { id });
290
- return jsonResult(data.revokeShare);
291
- } catch (error) {
292
- ctx.logger.error("files_share_revoke failed", { error });
293
- return errorResult(
294
- `Failed to revoke share: ${error instanceof Error ? error.message : String(error)}`
295
- );
296
- }
297
- }
60
+ }
61
+ function registerFilesTools(server, ctx, track) {
62
+ const featureNote = "Live alpha removed the `files` query family (workspace files are moving to a per-workspace service).";
63
+ const alts = [
64
+ "the next alpha release that re-exposes the files surface",
65
+ "the SDK files API (which the MCP will mirror once it lands)"
66
+ ];
67
+ stubbedTool(
68
+ server,
69
+ track(mcpToolName(ctx.productName, "files_browse")),
70
+ "Browse Folder",
71
+ "Browse a workspace folder. Returns subfolders and paginated files.",
72
+ featureNote,
73
+ { folderId: zod.z.string().optional().describe("Folder ID (omit to browse root)") },
74
+ alts
298
75
  );
299
- server.registerTool(
76
+ stubbedTool(
77
+ server,
300
78
  track(mcpToolName(ctx.productName, "files_list")),
301
- {
302
- title: "List Files",
303
- description: "List files in a workspace, optionally scoped to a folder. Returns { files, total, page, limit, hasMore }.",
304
- inputSchema: {
305
- folderId: zod.z.string().optional().describe("Folder ID (omit to list workspace root)"),
306
- limit: zod.z.number().optional().describe("Page size (default 50)"),
307
- offset: zod.z.number().optional().describe("Skip results")
308
- }
309
- },
310
- async ({ folderId, limit, offset }) => {
311
- try {
312
- const pagination = {};
313
- if (limit !== void 0) pagination.limit = limit;
314
- if (offset !== void 0) pagination.offset = offset;
315
- const data = await ctx.gql.workspace.request(LIST_FILES, {
316
- folderId: folderId ?? null,
317
- pagination: Object.keys(pagination).length > 0 ? pagination : void 0
318
- });
319
- return jsonResult(data.getFiles);
320
- } catch (error) {
321
- ctx.logger.error("files_list failed", { error });
322
- return errorResult(
323
- `Failed to list files: ${error instanceof Error ? error.message : String(error)}`
324
- );
325
- }
326
- }
79
+ "List Files",
80
+ "List files in a workspace, optionally scoped to a folder.",
81
+ featureNote,
82
+ { folderId: zod.z.string().optional().describe("Folder ID (omit to list workspace root)") },
83
+ alts
327
84
  );
328
- server.registerTool(
85
+ stubbedTool(
86
+ server,
329
87
  track(mcpToolName(ctx.productName, "files_get")),
330
- {
331
- title: "Get File",
332
- description: "Get a single file by ID. Returns the file record or an error if not found.",
333
- inputSchema: { id: zod.z.string().describe("File ID") }
334
- },
335
- async ({ id }) => {
336
- try {
337
- const data = await ctx.gql.workspace.request(GET_FILE, { id });
338
- if (!data.getFile) return errorResult(`File ${id} not found`);
339
- return jsonResult(data.getFile);
340
- } catch (error) {
341
- ctx.logger.error("files_get failed", { error });
342
- return errorResult(
343
- `Failed to get file: ${error instanceof Error ? error.message : String(error)}`
344
- );
345
- }
346
- }
88
+ "Get File",
89
+ "Get a single file by ID. Returns the file record or an error if not found.",
90
+ featureNote,
91
+ { id: zod.z.string().describe("File ID") },
92
+ alts
347
93
  );
348
- server.registerTool(
94
+ stubbedTool(
95
+ server,
349
96
  track(mcpToolName(ctx.productName, "files_download")),
350
- {
351
- title: "Get File Download URL",
352
- description: "Resolve a server-signed presigned download URL for a file. The MCP cannot stream binary bytes itself; callers must GET the returned URL out-of-band. Returns { url, expiresIn }.",
353
- inputSchema: {
354
- id: zod.z.string().describe("File ID"),
355
- expiresIn: zod.z.number().optional().describe("URL TTL in seconds (server default applies when omitted)")
356
- }
357
- },
358
- async ({ id, expiresIn }) => {
359
- try {
360
- const data = await ctx.gql.workspace.request(
361
- GET_FILE_DOWNLOAD_URL,
362
- { id, expiresIn }
363
- );
364
- return jsonResult({ url: data.getFileDownloadUrl, expiresIn: expiresIn ?? null });
365
- } catch (error) {
366
- ctx.logger.error("files_download failed", { error });
367
- return errorResult(
368
- `Failed to resolve download URL: ${error instanceof Error ? error.message : String(error)}`
369
- );
370
- }
371
- }
97
+ "Get File Download URL",
98
+ "Resolve a server-signed presigned download URL for a file.",
99
+ featureNote,
100
+ { id: zod.z.string().describe("File ID") },
101
+ alts
372
102
  );
373
- server.registerTool(
103
+ stubbedTool(
104
+ server,
374
105
  track(mcpToolName(ctx.productName, "files_upload")),
375
- {
376
- title: "Upload File",
377
- description: "Single-shot file upload mirroring the SDK files.upload contract (s3Bucket/s3Key/size pre-resolved). For raw-byte uploads from MCP callers, prefer files_upload_initiate + files_upload_complete which use presigned URLs. Returns the persisted file record.",
378
- inputSchema: {
379
- name: zod.z.string().describe("Display filename including extension"),
380
- mimeType: zod.z.string().describe("MIME type"),
381
- extension: zod.z.string().describe("File extension without leading dot"),
382
- size: zod.z.number().describe("File size in bytes"),
383
- s3Bucket: zod.z.string().describe("S3 bucket holding the uploaded object"),
384
- s3Key: zod.z.string().describe("S3 key under the bucket"),
385
- description: zod.z.string().optional().describe("File description"),
386
- folderId: zod.z.string().optional().describe("Target folder ID"),
387
- visibility: VisibilityEnum.optional().describe("Visibility (default: WORKSPACE)"),
388
- tags: zod.z.unknown().optional().describe("Optional entity-owned tags JSON array")
389
- }
390
- },
391
- async ({
392
- name,
393
- mimeType,
394
- extension,
395
- size,
396
- s3Bucket,
397
- s3Key,
398
- description,
399
- folderId,
400
- visibility,
401
- tags
402
- }) => {
403
- try {
404
- const input = {
405
- name,
406
- mimeType,
407
- extension,
408
- size: String(size),
409
- s3Bucket,
410
- s3Key
411
- };
412
- if (description !== void 0) input.description = description;
413
- if (folderId !== void 0) input.folderId = folderId;
414
- if (visibility !== void 0) input.visibility = visibility;
415
- if (tags !== void 0) input.tags = tags;
416
- const data = await ctx.gql.workspace.request(
417
- UPLOAD_FILE,
418
- { input }
419
- );
420
- return jsonResult(data.uploadFile);
421
- } catch (error) {
422
- ctx.logger.error("files_upload failed", { error });
423
- return errorResult(
424
- `Failed to upload file: ${error instanceof Error ? error.message : String(error)}`
425
- );
426
- }
427
- }
106
+ "Upload File",
107
+ "Single-shot file upload mirroring the SDK files.upload contract (s3Bucket/s3Key/size pre-resolved). For raw-byte uploads from MCP callers, prefer files_upload_initiate + files_upload_complete which use presigned URLs.",
108
+ featureNote,
109
+ { name: zod.z.string().describe("Display filename including extension") },
110
+ alts
428
111
  );
429
- server.registerTool(
112
+ stubbedTool(
113
+ server,
114
+ track(mcpToolName(ctx.productName, "files_upload_initiate")),
115
+ "Initiate File Upload",
116
+ "Initiate a multipart upload session. Returns presigned URL(s) the caller must PUT bytes to, plus a sessionId to use with files_upload_complete.",
117
+ featureNote,
118
+ { fileName: zod.z.string().describe("File name including extension") },
119
+ alts
120
+ );
121
+ stubbedTool(
122
+ server,
123
+ track(mcpToolName(ctx.productName, "files_upload_complete")),
124
+ "Complete File Upload",
125
+ "Complete an in-flight upload session previously initiated by files_upload_initiate.",
126
+ featureNote,
127
+ { sessionId: zod.z.string().describe("Session ID from files_upload_initiate") },
128
+ alts
129
+ );
130
+ stubbedTool(
131
+ server,
430
132
  track(mcpToolName(ctx.productName, "files_share")),
431
- {
432
- title: "Share File",
433
- description: "Create a share for a file (mirrors SDK files.share). Returns the persisted FileShare record.",
434
- inputSchema: {
435
- fileId: zod.z.string().describe("File ID to share"),
436
- shareType: ShareTypeEnum.describe(
437
- "Share type (PUBLIC_LINK = anonymous, EMAIL_INVITE = by email, GROUP_SHARE = by user IDs)"
438
- ),
439
- accessLevel: ShareAccessEnum.describe("Access level the share grants"),
440
- expiresAt: zod.z.string().optional().describe("Expiry timestamp in ISO 8601"),
441
- password: zod.z.string().optional().describe("Optional password to gate the share"),
442
- maxDownloads: zod.z.number().optional().describe("Maximum download count"),
443
- invitedEmail: zod.z.string().optional().describe("Email address for EMAIL_INVITE shares"),
444
- invitedUserIds: zod.z.array(zod.z.string()).optional().describe("User IDs to grant access for GROUP_SHARE shares")
445
- }
446
- },
447
- async ({
448
- fileId,
449
- shareType,
450
- accessLevel,
451
- expiresAt,
452
- password,
453
- maxDownloads,
454
- invitedEmail,
455
- invitedUserIds
456
- }) => {
457
- try {
458
- const input = { fileId, shareType, accessLevel };
459
- if (expiresAt !== void 0) input.expiresAt = expiresAt;
460
- if (password !== void 0) input.password = password;
461
- if (maxDownloads !== void 0) input.maxDownloads = maxDownloads;
462
- if (invitedEmail !== void 0) input.invitedEmail = invitedEmail;
463
- if (invitedUserIds !== void 0) input.invitedUserIds = invitedUserIds;
464
- const data = await ctx.gql.workspace.request(CREATE_SHARE, {
465
- input
466
- });
467
- return jsonResult(data.createShare);
468
- } catch (error) {
469
- ctx.logger.error("files_share failed", { error });
470
- return errorResult(
471
- `Failed to share file: ${error instanceof Error ? error.message : String(error)}`
472
- );
473
- }
474
- }
133
+ "Share File",
134
+ "Create a share for a file (mirrors SDK files.share).",
135
+ featureNote,
136
+ { fileId: zod.z.string().describe("File ID to share") },
137
+ alts
475
138
  );
476
- server.registerTool(
139
+ stubbedTool(
140
+ server,
141
+ track(mcpToolName(ctx.productName, "files_share_create")),
142
+ "Create File Share",
143
+ "Create a shareable link for a file with optional access controls.",
144
+ featureNote,
145
+ { fileId: zod.z.string().describe("File ID to share") },
146
+ alts
147
+ );
148
+ stubbedTool(
149
+ server,
150
+ track(mcpToolName(ctx.productName, "files_share_revoke")),
151
+ "Revoke File Share",
152
+ "Revoke a previously created file share by ID.",
153
+ featureNote,
154
+ { id: zod.z.string().describe("Share ID to revoke") },
155
+ alts
156
+ );
157
+ stubbedTool(
158
+ server,
477
159
  track(mcpToolName(ctx.productName, "files_revoke")),
478
- {
479
- title: "Revoke File Share",
480
- description: "Revoke an existing file share by ID (mirrors SDK files.shareApi.revoke). Returns the updated share record with revokedAt/revokedBy set.",
481
- inputSchema: { id: zod.z.string().describe("Share ID to revoke") }
482
- },
483
- async ({ id }) => {
484
- try {
485
- const data = await ctx.gql.workspace.request(REVOKE_SHARE, {
486
- id
487
- });
488
- return jsonResult(data.revokeShare);
489
- } catch (error) {
490
- ctx.logger.error("files_revoke failed", { error });
491
- return errorResult(
492
- `Failed to revoke share: ${error instanceof Error ? error.message : String(error)}`
493
- );
494
- }
495
- }
160
+ "Revoke File Share",
161
+ "Revoke an existing file share by ID (mirrors SDK files.shareApi.revoke).",
162
+ featureNote,
163
+ { id: zod.z.string().describe("Share ID") },
164
+ alts
496
165
  );
497
166
  }
498
167