plm-upload-mcp 1.4.0 → 1.5.0

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.mjs +13 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -43,7 +43,7 @@ Uploads one or more files, each paired with its target SKU.
43
43
  - `files`: array of `{ path, sku, category? }`
44
44
  - `path` — absolute local path to the file
45
45
  - `sku` — component SKU, e.g. `MNT-1234-A0`; it must already exist in the PLM
46
- - `category` — optional: `Compliance` | `Datasheet` | `Quotation` | `Software` | `Drawing` | `3D file` | `DFM report` (a PowerPoint, saved as Google Slides) (left out = the PLM guesses from the file name)
46
+ - `category` — optional: `Compliance` | `Datasheet` | `Quotation` | `Software` | `Drawing` | `3D file` | `DFM report` (a PowerPoint, saved as Google Slides) | `Other` (zip, image, Word, Excel, PowerPoint…) (left out = the PLM guesses from the file name)
47
47
 
48
48
  Each file lands in PLM storage and is mirrored into that SKU's Google Drive folder on
49
49
  the part's own drive (staging or main, from the component; created automatically if it
package/index.mjs CHANGED
@@ -43,6 +43,17 @@ const MIME = {
43
43
  '.png': 'image/png',
44
44
  '.jpg': 'image/jpeg',
45
45
  '.jpeg': 'image/jpeg',
46
+ '.gif': 'image/gif',
47
+ '.webp': 'image/webp',
48
+ '.zip': 'application/zip',
49
+ '.txt': 'text/plain',
50
+ '.csv': 'text/csv',
51
+ '.doc': 'application/msword',
52
+ '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
53
+ '.xls': 'application/vnd.ms-excel',
54
+ '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
55
+ '.ppt': 'application/vnd.ms-powerpoint',
56
+ '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
46
57
  }
47
58
  const mimeFor = (name) => MIME[extname(name).toLowerCase()] || 'application/octet-stream'
48
59
 
@@ -283,7 +294,7 @@ server.registerTool(
283
294
  {
284
295
  title: 'Upload files to PLM by SKU',
285
296
  description:
286
- "Bulk-upload local files (e.g. SolidWorks STEP/PDF exports) into the LionsBot PLM. " +
297
+ "Bulk-upload local files (SolidWorks STEP/PDF exports, or any other file: zip, image, Word, Excel, PowerPoint…) into the LionsBot PLM. " +
287
298
  "Each file is attached to an existing component by its SKU: it lands in PLM storage and is " +
288
299
  "mirrored into that SKU's Google Drive folder on the part's own drive (staging or main; folder " +
289
300
  "auto-created if missing). A SKU that is not in the PLM is refused. Re-uploading a file with " +
@@ -301,7 +312,7 @@ server.registerTool(
301
312
  path: z.string().describe('Absolute local path to the file to upload.'),
302
313
  sku: z.string().describe('Component SKU this file belongs to, e.g. MNT-1234-A0.'),
303
314
  category: z
304
- .enum(['Compliance', 'Datasheet', 'Quotation', 'Software', 'Drawing', '3D file', 'DFM report'])
315
+ .enum(['Compliance', 'Datasheet', 'Quotation', 'Software', 'Drawing', '3D file', 'DFM report', 'Other'])
305
316
  .optional()
306
317
  .describe('PLM file category. Leave it out and the PLM guesses one from the file name.'),
307
318
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plm-upload-mcp",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "MCP server to read the LionsBot PLM (SKU folders, component metadata, extracted drawing metadata, product & staging BOMs) bulk-upload SolidWorks exports (STEP/PDF) into it by SKU, create components' Drive folders and uprev staging prototypes.",
5
5
  "license": "UNLICENSED",
6
6
  "keywords": ["mcp", "modelcontextprotocol", "lionsbot", "plm", "solidworks"],