plex-mcp 0.5.2 → 0.5.3

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.js +7 -3
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -2961,8 +2961,10 @@ You can try creating the playlist manually in Plex and then use other MCP tools
2961
2961
  const uri = `server://${machineId}/com.plexapp.plugins.library/library/sections/${library_id}/all?${queryParts.join('&')}`;
2962
2962
 
2963
2963
  // Debug logging
2964
- console.log('DEBUG: Generated URI:', uri);
2965
- console.log('DEBUG: Query parts:', queryParts);
2964
+ if (process.env.DEBUG_PLAYLISTS) {
2965
+ console.log('DEBUG: Generated URI:', uri);
2966
+ console.log('DEBUG: Query parts:', queryParts);
2967
+ }
2966
2968
 
2967
2969
  // Create smart playlist using POST to /playlists
2968
2970
  const createParams = new URLSearchParams();
@@ -3156,7 +3158,9 @@ The smart playlist has been created and is now available in your Plex library!`
3156
3158
  batchMethod = 'single';
3157
3159
  } else {
3158
3160
  // Multiple items - use sequential individual adds (only reliable method)
3159
- console.log(`Adding ${item_keys.length} items sequentially (batch operations are unreliable)...`);
3161
+ if (process.env.DEBUG_PLAYLISTS) {
3162
+ console.log(`Adding ${item_keys.length} items sequentially (batch operations are unreliable)...`);
3163
+ }
3160
3164
  batchMethod = 'sequential-reliable';
3161
3165
  let sequentialCount = 0;
3162
3166
  const sequentialResults = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plex-mcp",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "A Model Context Protocol (MCP) server that enables Claude to query and manage Plex media libraries.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -9,8 +9,8 @@
9
9
  "scripts": {
10
10
  "start": "node index.js",
11
11
  "test": "jest --testPathIgnorePatterns=/tests/e2e/",
12
- "test:e2e": "jest --testPathPattern=e2e",
13
- "test:e2e:analysis": "jest --testPathPattern=e2e --testNamePattern=\"(Playlist Behavior Analysis|Critical Remove Bug Investigation|Multiple Item Addition Analysis)\"",
12
+ "test:e2e": "jest --testPathPatterns=e2e",
13
+ "test:e2e:analysis": "jest --testPathPatterns=e2e --testNamePattern=\"(Playlist Behavior Analysis|Critical Remove Bug Investigation|Multiple Item Addition Analysis)\"",
14
14
  "test:all": "jest",
15
15
  "test:watch": "jest --watch --testPathIgnorePatterns=/tests/e2e/",
16
16
  "test:coverage": "jest --coverage --testPathIgnorePatterns=/tests/e2e/",