@broville/media-search-mcp 1.0.1 → 1.0.2
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/README.md +30 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,13 +30,26 @@ npx @broville/media-search-mcp
|
|
|
30
30
|
|
|
31
31
|
## Usage
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
1. Get a free key: https://www.themoviedb.org/settings/api
|
|
36
|
-
2. Export as env var:
|
|
33
|
+
### Option A — Set env var directly
|
|
37
34
|
|
|
38
35
|
```bash
|
|
39
36
|
export TMDB_API_KEY=your_tmdb_key
|
|
37
|
+
npx @broville/media-search-mcp
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Option B — 1Password auto-fetch (recommended)
|
|
41
|
+
|
|
42
|
+
If you're signed into the 1Password CLI (`op`), the server **automatically** fetches the key from your `Server` vault — no env var needed:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npx @broville/media-search-mcp
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
It runs `op item get "TMDB API Key" --vault Server --field api-key` at startup.
|
|
49
|
+
|
|
50
|
+
### Option C — 1Password with env var
|
|
51
|
+
|
|
52
|
+
```bash
|
|
40
53
|
export TMDB_API_KEY=$(op item get "TMDB API Key" --vault Server --field api-key)
|
|
41
54
|
npx @broville/media-search-mcp
|
|
42
55
|
```
|
|
@@ -45,13 +58,25 @@ npx @broville/media-search-mcp
|
|
|
45
58
|
|
|
46
59
|
Add to `~/.hermes/profiles/neo/config.yaml`:
|
|
47
60
|
|
|
61
|
+
```yaml
|
|
62
|
+
mcp:
|
|
63
|
+
media-search:
|
|
64
|
+
command: npx
|
|
65
|
+
args: ["-y", "@broville/media-search-mcp"]
|
|
66
|
+
env:
|
|
67
|
+
# Option A: hardcode key
|
|
68
|
+
TMDB_API_KEY: "your_tmdb_key"
|
|
69
|
+
# ... or omit env entirely and rely on 1Password auto-fetch
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Or with a local install:
|
|
48
73
|
```yaml
|
|
49
74
|
mcp:
|
|
50
75
|
media-search:
|
|
51
76
|
command: node
|
|
52
77
|
args: ["/home/echo/.npm-global/lib/node_modules/@broville/media-search-mcp/dist/index.js"]
|
|
53
78
|
env:
|
|
54
|
-
TMDB_API_KEY: "
|
|
79
|
+
TMDB_API_KEY: "your_tmdb_key"
|
|
55
80
|
```
|
|
56
81
|
|
|
57
82
|
## Response format
|
package/dist/index.js
CHANGED
|
@@ -154,7 +154,7 @@ const TOOLS = [
|
|
|
154
154
|
},
|
|
155
155
|
];
|
|
156
156
|
/* ─── Server ─── */
|
|
157
|
-
const server = new Server({ name: 'media-search-mcp', version: '1.0.
|
|
157
|
+
const server = new Server({ name: 'media-search-mcp', version: '1.0.2' }, { capabilities: { tools: {} } });
|
|
158
158
|
function pickTitle(r) {
|
|
159
159
|
return r.title ?? r.name;
|
|
160
160
|
}
|