plm-upload-mcp 1.3.6 → 1.3.7

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 (2) hide show
  1. package/index.mjs +2 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -223,13 +223,11 @@ async function uploadOne({ path, sku, skuName, category, bucket, filename = base
223
223
  filename,
224
224
  mimeType,
225
225
  bucket,
226
+ // The pick goes on with the upload: set-category afterwards needs View files for the file's guessed category.
227
+ ...(category ? { category } : {}),
226
228
  })
227
229
  if (synced?.error) throw new Error(synced.error)
228
230
 
229
- if (category && synced?.driveFileId) {
230
- await edgeJson({ action: 'set-category', fileId: synced.driveFileId, category }).catch(() => {})
231
- }
232
-
233
231
  return {
234
232
  file: filename,
235
233
  sku,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plm-upload-mcp",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
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"],