discogs-mcp-server 0.3.0 → 0.4.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 +3 -3
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ The other environment variables in `.env.example` are optional and have sensible
|
|
|
74
74
|
|
|
75
75
|
2. Available commands:
|
|
76
76
|
- `pnpm run dev`: Start the development server with hot reloading
|
|
77
|
-
- `pnpm run dev:
|
|
77
|
+
- `pnpm run dev:stream`: Start the development server with hot reloading in HTTP streaming mode
|
|
78
78
|
- `pnpm run build`: Build the production version
|
|
79
79
|
- `pnpm run start`: Run the production build
|
|
80
80
|
- `pnpm run inspect`: Run the MCP Inspector (see [Inspection](#inspection) section)
|
|
@@ -96,10 +96,10 @@ The other environment variables in `.env.example` are optional and have sensible
|
|
|
96
96
|
docker run --env-file .env discogs-mcp-server:latest
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
For
|
|
99
|
+
For HTTP Streaming transport mode:
|
|
100
100
|
```bash
|
|
101
101
|
# The port should match what is in your .env file
|
|
102
|
-
docker run --env-file .env -p 3001:3001 discogs-mcp-server:latest
|
|
102
|
+
docker run --env-file .env -p 3001:3001 discogs-mcp-server:latest stream
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
## Inspection
|
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.4.0";
|
|
8
8
|
|
|
9
9
|
// src/config.ts
|
|
10
10
|
dotenv.config();
|
|
@@ -3313,13 +3313,15 @@ function registerTools(server) {
|
|
|
3313
3313
|
|
|
3314
3314
|
// src/index.ts
|
|
3315
3315
|
function assertTransportType(transportType) {
|
|
3316
|
-
return transportType === "stdio" || transportType === "
|
|
3316
|
+
return transportType === "stdio" || transportType === "stream";
|
|
3317
3317
|
}
|
|
3318
3318
|
try {
|
|
3319
3319
|
validateConfig();
|
|
3320
3320
|
const transportType = process.argv[2] ?? "stdio";
|
|
3321
3321
|
if (!assertTransportType(transportType)) {
|
|
3322
|
-
throw Error(
|
|
3322
|
+
throw Error(
|
|
3323
|
+
`Invalid transport type: "${transportType}". Allowed: 'stdio' (default) or 'stream'.`
|
|
3324
|
+
);
|
|
3323
3325
|
}
|
|
3324
3326
|
const server = new FastMCP({
|
|
3325
3327
|
name: config.server.name,
|
|
@@ -3328,11 +3330,10 @@ try {
|
|
|
3328
3330
|
registerTools(server);
|
|
3329
3331
|
if (transportType === "stdio") {
|
|
3330
3332
|
server.start({ transportType });
|
|
3331
|
-
} else if (transportType === "
|
|
3333
|
+
} else if (transportType === "stream") {
|
|
3332
3334
|
server.start({
|
|
3333
|
-
transportType,
|
|
3334
|
-
|
|
3335
|
-
endpoint: "/sse",
|
|
3335
|
+
transportType: "httpStream",
|
|
3336
|
+
httpStream: {
|
|
3336
3337
|
port: config.server.port
|
|
3337
3338
|
}
|
|
3338
3339
|
});
|