Skip to content

Commit 627ead3

Browse files
authored
fix examples servers' npm run start:stdio (#507)
* fix examples servers' npm run start:stdio * rm mistakenly added file
1 parent 37533ff commit 627ead3

File tree

11 files changed

+21
-19
lines changed

11 files changed

+21
-19
lines changed

examples/budget-allocator-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve:http": "bun --watch main.ts",
20-
"serve:stdio": "bun server.ts --stdio",
20+
"serve:stdio": "bun main.ts --stdio",
2121
"start": "npm run start:http",
2222
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
23-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
23+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2424
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
2525
"prepublishOnly": "npm run build",
2626
"serve": "bun --watch main.ts"

examples/cohort-heatmap-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve:http": "bun --watch main.ts",
20-
"serve:stdio": "bun server.ts --stdio",
20+
"serve:stdio": "bun main.ts --stdio",
2121
"start": "npm run start:http",
2222
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
23-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
23+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2424
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
2525
"prepublishOnly": "npm run build",
2626
"serve": "bun --watch main.ts"

examples/customer-segmentation-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve:http": "bun --watch main.ts",
20-
"serve:stdio": "bun server.ts --stdio",
20+
"serve:stdio": "bun main.ts --stdio",
2121
"start": "npm run start:http",
2222
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
23-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
23+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2424
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
2525
"prepublishOnly": "npm run build",
2626
"serve": "bun --watch main.ts"

examples/integration-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
88
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
99
"serve:http": "bun --watch main.ts",
10-
"serve:stdio": "bun server.ts --stdio",
10+
"serve:stdio": "bun main.ts --stdio",
1111
"start": "npm run start:http",
1212
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
13-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
13+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
1414
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
1515
"serve": "bun --watch main.ts"
1616
},

examples/map-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve:http": "bun --watch main.ts",
20-
"serve:stdio": "bun server.ts --stdio",
20+
"serve:stdio": "bun main.ts --stdio",
2121
"start": "npm run start:http",
2222
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
23-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
23+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2424
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
2525
"prepublishOnly": "npm run build",
2626
"serve": "bun --watch main.ts"

examples/pdf-server/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node --external pdfjs-dist && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --external pdfjs-dist --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

examples/scenario-modeler-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve:http": "bun --watch main.ts",
20-
"serve:stdio": "bun server.ts --stdio",
20+
"serve:stdio": "bun main.ts --stdio",
2121
"start": "npm run start:http",
2222
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
23-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
23+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2424
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
2525
"prepublishOnly": "npm run build",
2626
"serve": "bun --watch main.ts"

examples/shadertoy-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"serve": "bun --watch main.ts",
2020
"serve:stdio": "bun main.ts --stdio",
2121
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2323
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2424
"prepublishOnly": "npm run build"
2525
},

examples/system-monitor-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve:http": "bun --watch main.ts",
20-
"serve:stdio": "bun server.ts --stdio",
20+
"serve:stdio": "bun main.ts --stdio",
2121
"start": "npm run start:http",
2222
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
23-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
23+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2424
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
2525
"prepublishOnly": "npm run build",
2626
"serve": "bun --watch main.ts"

examples/threejs-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve:http": "bun --watch main.ts",
20-
"serve:stdio": "bun server.ts --stdio",
20+
"serve:stdio": "bun main.ts --stdio",
2121
"start": "npm run start:http",
2222
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
23-
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
23+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2424
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
2525
"prepublishOnly": "npm run build",
2626
"serve": "bun --watch main.ts"

0 commit comments

Comments
 (0)