discogs-mcp-server 0.4.2 → 0.5.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 CHANGED
@@ -28,6 +28,8 @@ If you just want to get started immediately using this MCP Server with the [Clau
28
28
  - [NPX](#npx)
29
29
  - [Local Node](#local-node)
30
30
  - [Docker](#docker)
31
+ - [LibreChat](#librechat)
32
+ - [LM Studio](#lm-studio)
31
33
  - [TODO](#todo)
32
34
  - [License](#license)
33
35
 
@@ -63,6 +65,8 @@ To get your Discogs personal access token, go to your [Discogs Settings > Develo
63
65
 
64
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.
65
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
+
66
70
  ## Running the Server Locally
67
71
 
68
72
  ### Option 1: Local Development
@@ -99,6 +103,7 @@ The other environment variables in `.env.example` are optional and have sensible
99
103
  For HTTP Streaming transport mode:
100
104
  ```bash
101
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
102
107
  docker run --env-file .env -p 3001:3001 discogs-mcp-server:latest stream
103
108
  ```
104
109
 
@@ -116,7 +121,8 @@ For more information about the MCP Inspector, visit [the official documentation]
116
121
 
117
122
  ## MCP Clients
118
123
 
119
- Currently, this MCP server has only been tested with Claude Desktop. More client examples will be added in the future.
124
+ More client examples will be added in the future. If you'd like configuration for a specific client, either
125
+ request it by opening a new issue or creating the pull request to edit this section of the README yourself.
120
126
 
121
127
  ### Claude Desktop Configuration
122
128
 
@@ -188,6 +194,38 @@ The docker image should have been built before using this method.
188
194
 
189
195
  Any changes to local code will require Claude to be restarted to take effect. Also, Claude requires human-in-the-loop interaction to allow an MCP tool to be run, so everytime a new tool is accessed Claude will ask for permission. You usually only have to do this once per tool per chat. _If using the free version, long chats may result in more frequent errors trying to run tools as Claude limits the amount of context within a single chat._
190
196
 
197
+ ### LibreChat
198
+
199
+ In the `librechat.yaml` configuration file, add this under the `mcpServers` section:
200
+
201
+ ```yaml
202
+ discogs:
203
+ type: stdio
204
+ command: npx
205
+ args: ["-y", "discogs-mcp-server"]
206
+ env:
207
+ DISCOGS_PERSONAL_ACCESS_TOKEN: YOUR_TOKEN_GOES_HERE
208
+ ```
209
+
210
+ ### LM Studio
211
+
212
+ Get to the Chat `Settings`. In the `Program` tab there will be a dropdown with a default of `Install`. Select `Edit mcp.json`. Add this under the `mcpServers` section:
213
+
214
+ ```json
215
+ "discogs": {
216
+ "command": "npx",
217
+ "args": [
218
+ "-y",
219
+ "discogs-mcp-server"
220
+ ],
221
+ "env": {
222
+ "DISCOGS_PERSONAL_ACCESS_TOKEN": "YOUR_TOKEN_GOES_HERE"
223
+ }
224
+ }
225
+ ```
226
+
227
+ After you Save, in the `Program` tab there should now be an `mcp/discogs` toggle to enable the server. Within every chat box there is an `Integrations` menu where you can also enable mcp servers.
228
+
191
229
  ## TODO
192
230
 
193
231
  - OAuth support
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.4.2";
7
+ var VERSION = "0.5.0";
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
  }