plex-mcp 0.4.0 → 0.5.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.
- package/.dockerignore +16 -0
- package/Dockerfile +18 -4
- package/README.md +42 -1
- package/TODO.md +4 -0
- package/eslint.config.js +189 -0
- package/http-logger.js +387 -0
- package/index.js +2410 -1347
- package/package.json +7 -1
- package/smithery.yaml +14 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plex-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
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": {
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"test:all": "jest",
|
|
15
15
|
"test:watch": "jest --watch --testPathIgnorePatterns=/tests/e2e/",
|
|
16
16
|
"test:coverage": "jest --coverage --testPathIgnorePatterns=/tests/e2e/",
|
|
17
|
+
"lint": "eslint .",
|
|
18
|
+
"lint:fix": "eslint . --fix",
|
|
19
|
+
"lint:check": "eslint . --max-warnings 0",
|
|
20
|
+
"pretest": "npm run lint:check",
|
|
17
21
|
"prepublishOnly": "npm test",
|
|
18
22
|
"version:patch": "npm version patch",
|
|
19
23
|
"version:minor": "npm version minor",
|
|
@@ -45,8 +49,10 @@
|
|
|
45
49
|
"plex-oauth": "^2.1.0"
|
|
46
50
|
},
|
|
47
51
|
"devDependencies": {
|
|
52
|
+
"@eslint/js": "^9.29.0",
|
|
48
53
|
"@types/jest": "^30.0.0",
|
|
49
54
|
"axios-mock-adapter": "^2.1.0",
|
|
55
|
+
"eslint": "^9.29.0",
|
|
50
56
|
"jest": "^30.0.2"
|
|
51
57
|
},
|
|
52
58
|
"overrides": {
|
package/smithery.yaml
CHANGED
|
@@ -3,27 +3,36 @@
|
|
|
3
3
|
startCommand:
|
|
4
4
|
type: stdio
|
|
5
5
|
commandFunction:
|
|
6
|
-
# A JS function that produces the CLI command based on the given config to start the MCP
|
|
6
|
+
# A JS function that produces the CLI command based on the given config to start the MCP server.
|
|
7
7
|
|-
|
|
8
|
-
(config) => ({
|
|
8
|
+
(config) => ({
|
|
9
|
+
command: 'node',
|
|
10
|
+
args: ['index.js'],
|
|
11
|
+
env: {
|
|
12
|
+
PLEX_URL: config.plexUrl,
|
|
13
|
+
PLEX_TOKEN: config.plexToken,
|
|
14
|
+
PLEX_VERIFY_SSL: config.plexVerifySsl.toString(),
|
|
15
|
+
MCP_HTTP_DEBUG: 'true'
|
|
16
|
+
}
|
|
17
|
+
})
|
|
9
18
|
configSchema:
|
|
10
19
|
# JSON Schema defining the configuration options for the MCP.
|
|
11
20
|
type: object
|
|
12
21
|
required:
|
|
13
22
|
- plexUrl
|
|
14
|
-
- plexToken
|
|
15
23
|
properties:
|
|
16
24
|
plexUrl:
|
|
17
25
|
type: string
|
|
18
26
|
description: URL of the Plex server
|
|
19
27
|
plexToken:
|
|
20
28
|
type: string
|
|
21
|
-
description: Plex authentication token
|
|
29
|
+
description: Plex authentication token (optional - can authenticate interactively)
|
|
22
30
|
plexVerifySsl:
|
|
23
31
|
type: boolean
|
|
24
32
|
default: true
|
|
25
33
|
description: Whether to verify Plex server SSL certificate
|
|
26
34
|
exampleConfig:
|
|
27
|
-
plexUrl:
|
|
35
|
+
plexUrl: https://your-plex-server:32400
|
|
28
36
|
plexToken: abcdef123456
|
|
29
37
|
plexVerifySsl: true
|
|
38
|
+
|