@powerfm/libretime-mcp 0.1.4 → 0.1.5
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 +21 -3
- package/dist/http/admin.js +1 -0
- package/dist/http/client.js +1 -0
- package/dist/stdio/admin.js +1 -0
- package/dist/stdio/client.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,12 +33,13 @@ Tools are organised into subdirectories under `src/tools/` — one file per tool
|
|
|
33
33
|
|
|
34
34
|
No hosting required. Claude Desktop spawns the server as a subprocess and manages its lifecycle.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
### Global install
|
|
37
|
+
|
|
37
38
|
```bash
|
|
38
39
|
npm install -g @powerfm/libretime-mcp
|
|
39
40
|
```
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
42
43
|
|
|
43
44
|
```json
|
|
44
45
|
{
|
|
@@ -58,7 +59,7 @@ npm install -g @powerfm/libretime-mcp
|
|
|
58
59
|
|
|
59
60
|
Use `libretime-mcp-client` instead of `libretime-mcp` for read-only access.
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
### npx (no install)
|
|
62
63
|
|
|
63
64
|
```json
|
|
64
65
|
{
|
|
@@ -76,6 +77,23 @@ Or run without installing (npx fetches on first use):
|
|
|
76
77
|
}
|
|
77
78
|
```
|
|
78
79
|
|
|
80
|
+
### From source
|
|
81
|
+
|
|
82
|
+
Clone the repo, create a `.env` file with your credentials (see [Development](#development) below), then point Claude Desktop at the local build:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"mcpServers": {
|
|
87
|
+
"libretime": {
|
|
88
|
+
"command": "node",
|
|
89
|
+
"args": ["/absolute/path/to/libretime-mcp/dist/stdio/admin.js"]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
No `env` block needed — credentials are loaded automatically from `.env`.
|
|
96
|
+
|
|
79
97
|
## Option 2 — Self-hosted HTTP server
|
|
80
98
|
|
|
81
99
|
Best for advanced setups — connect any MCP-compatible client over the network.
|
package/dist/http/admin.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// Exposes POST /mcp using MCP Streamable HTTP transport.
|
|
4
4
|
// Requires Authorization: Bearer <MCP_API_KEY> on every request.
|
|
5
5
|
// Intended for network clients (e.g. powerfm-agent). For Claude Desktop use stdio/admin.ts.
|
|
6
|
+
import './env.js';
|
|
6
7
|
import { createRequire } from 'module';
|
|
7
8
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
9
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
package/dist/http/client.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// Exposes POST /mcp using MCP Streamable HTTP transport.
|
|
4
4
|
// Requires Authorization: Bearer <MCP_API_KEY> on every request.
|
|
5
5
|
// Intended for network clients. For Claude Desktop use stdio/client.ts.
|
|
6
|
+
import './env.js';
|
|
6
7
|
import { createRequire } from 'module';
|
|
7
8
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
9
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
package/dist/stdio/admin.js
CHANGED
package/dist/stdio/client.js
CHANGED
package/package.json
CHANGED