@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 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
- **Install:**
36
+ ### Global install
37
+
37
38
  ```bash
38
39
  npm install -g @powerfm/libretime-mcp
39
40
  ```
40
41
 
41
- **Add to** `~/Library/Application Support/Claude/claude_desktop_config.json`:
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
- Or run without installing (npx fetches on first use):
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.
@@ -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';
@@ -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';
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import './env.js';
2
3
  import { createRequire } from 'module';
3
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import './env.js';
2
3
  import { createRequire } from 'module';
3
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerfm/libretime-mcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "MCP server for LibreTime radio station — connect Claude to your broadcast schedule, media library, and analytics",