discogs-mcp-server 0.4.3 → 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/README.md +3 -0
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -65,6 +65,8 @@ To get your Discogs personal access token, go to your [Discogs Settings > Develo
|
|
|
65
65
|
|
|
66
66
|
The other environment variables in `.env.example` are optional and have sensible defaults, so you don't need to set them unless you have specific requirements.
|
|
67
67
|
|
|
68
|
+
- `SERVER_HOST`: The host address to bind the server to (default: `0.0.0.0`). Set to `0.0.0.0` to allow connections from outside the container/machine, or `127.0.0.1` to restrict to localhost only.
|
|
69
|
+
|
|
68
70
|
## Running the Server Locally
|
|
69
71
|
|
|
70
72
|
### Option 1: Local Development
|
|
@@ -101,6 +103,7 @@ The other environment variables in `.env.example` are optional and have sensible
|
|
|
101
103
|
For HTTP Streaming transport mode:
|
|
102
104
|
```bash
|
|
103
105
|
# The port should match what is in your .env file
|
|
106
|
+
# By default, the server listens on 0.0.0.0, allowing connections from outside the container
|
|
104
107
|
docker run --env-file .env -p 3001:3001 discogs-mcp-server:latest stream
|
|
105
108
|
```
|
|
106
109
|
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import dotenv from 'dotenv';
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
// src/version.ts
|
|
7
|
-
var VERSION = "0.
|
|
7
|
+
var VERSION = "0.5.1";
|
|
8
8
|
|
|
9
9
|
// src/config.ts
|
|
10
10
|
dotenv.config();
|
|
@@ -20,7 +20,8 @@ var config = {
|
|
|
20
20
|
},
|
|
21
21
|
server: {
|
|
22
22
|
name: process.env.SERVER_NAME || "Discogs MCP Server",
|
|
23
|
-
port: process.env.PORT ? parseInt(process.env.PORT, 10) : 3001
|
|
23
|
+
port: process.env.PORT ? parseInt(process.env.PORT, 10) : 3001,
|
|
24
|
+
host: process.env.SERVER_HOST || "0.0.0.0"
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
function validateConfig() {
|
|
@@ -1255,8 +1256,8 @@ var getInventoryExportsTool = {
|
|
|
1255
1256
|
execute: async () => {
|
|
1256
1257
|
try {
|
|
1257
1258
|
const inventoryService = new InventoryService();
|
|
1258
|
-
const exports = await inventoryService.getExports();
|
|
1259
|
-
return JSON.stringify(exports);
|
|
1259
|
+
const exports$1 = await inventoryService.getExports();
|
|
1260
|
+
return JSON.stringify(exports$1);
|
|
1260
1261
|
} catch (error) {
|
|
1261
1262
|
throw formatDiscogsError(error);
|
|
1262
1263
|
}
|
|
@@ -3334,7 +3335,8 @@ try {
|
|
|
3334
3335
|
server.start({
|
|
3335
3336
|
transportType: "httpStream",
|
|
3336
3337
|
httpStream: {
|
|
3337
|
-
port: config.server.port
|
|
3338
|
+
port: config.server.port,
|
|
3339
|
+
host: config.server.host
|
|
3338
3340
|
}
|
|
3339
3341
|
});
|
|
3340
3342
|
}
|