@powerfm/libretime-mcp 0.1.6 → 0.2.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.
- package/README.md +2 -1
- package/dist/apps/upload-file.html +94 -0
- package/dist/http/admin.js +25 -35
- package/dist/http/client.js +8 -33
- package/dist/http/server.js +72 -0
- package/dist/http/upload.js +73 -0
- package/dist/tools/admin/get_users.js +2 -2
- package/dist/tools/admin/types.js +1 -1
- package/dist/tools/analytics/get_listener_counts.js +8 -3
- package/dist/tools/analytics/get_playout_history.js +4 -2
- package/dist/tools/analytics/index.js +0 -2
- package/dist/tools/files/index.js +6 -6
- package/dist/tools/files/types.js +6 -0
- package/dist/tools/files/upload_file.js +73 -14
- package/dist/tools/shows/types.js +12 -7
- package/package.json +37 -7
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Tools are organised into subdirectories under `src/tools/` — one file per tool
|
|
|
16
16
|
- `get_stream_state` — current on-air state
|
|
17
17
|
|
|
18
18
|
**Analytics (admin)**
|
|
19
|
-
-
|
|
19
|
+
- ~~`get_listener_counts`~~ — disabled (API returns full history with no filtering, ~120k records)
|
|
20
20
|
- `get_playout_history` — recent playout history with track metadata
|
|
21
21
|
|
|
22
22
|
**Media library (admin)**
|
|
@@ -113,6 +113,7 @@ LIBRETIME_USER=your_api_username
|
|
|
113
113
|
LIBRETIME_PASS=your_api_password
|
|
114
114
|
MCP_API_KEY=your_secret_api_key # clients must send this as a Bearer token
|
|
115
115
|
MCP_PORT=3000 # optional, defaults to 3000 (admin) / 3001 (client)
|
|
116
|
+
CORS_ORIGIN=https://your-app.example.com # optional, lock CORS to a specific origin (default: reflect any)
|
|
116
117
|
```
|
|
117
118
|
|
|
118
119
|
Generate a random API key:
|