Skip to content

Commit c566873

Browse files
committed
reshuffle build / start scripts
1 parent 123b740 commit c566873

File tree

4 files changed

+15
-45
lines changed

4 files changed

+15
-45
lines changed

build.esbuild.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/simple-host/package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,31 @@
44
"version": "1.0.0",
55
"type": "module",
66
"scripts": {
7-
"start:server": "tsx server.ts",
8-
"start:mcp-server": "cd ../simple-server && npm install && npm run start",
9-
"build": "concurrently 'INPUT=example-host-vanilla.html vite build' 'INPUT=example-host-react.html vite build' 'INPUT=sandbox.html vite build'",
10-
"server": "bun server.ts",
11-
"start": "NODE_ENV=development npm run build && concurrently 'npm run start:server' 'npm run start:mcp-server'"
7+
"start": "NODE_ENV=development npm run build && concurrently 'npm run start:server'",
8+
"start:server": "bun server.ts",
9+
"build": "concurrently 'INPUT=example-host-vanilla.html vite build' 'INPUT=example-host-react.html vite build' 'INPUT=sandbox.html vite build'"
1210
},
1311
"dependencies": {
1412
"@modelcontextprotocol/ext-apps": "../..",
1513
"@modelcontextprotocol/sdk": "^1.22.0",
16-
"react-dom": "^19.2.0",
1714
"react": "^19.2.0",
15+
"react-dom": "^19.2.0",
1816
"zod": "^3.25.0"
1917
},
2018
"devDependencies": {
2119
"@types/express": "^5.0.0",
2220
"@types/node": "^22.0.0",
23-
"@types/react-dom": "^19.2.2",
2421
"@types/react": "^19.2.2",
22+
"@types/react-dom": "^19.2.2",
2523
"@vitejs/plugin-react": "^4.3.4",
24+
"bun": "^1.3.2",
2625
"concurrently": "^9.2.1",
2726
"cors": "^2.8.5",
2827
"esbuild": "~0.19.10",
2928
"express": "^5.1.0",
3029
"prettier": "^3.6.2",
31-
"tsx": "^4.20.6",
32-
"typescript": "^5.9.3",
33-
"vite-plugin-singlefile": "^2.3.0",
3430
"vite": "^6.0.0",
31+
"vite-plugin-singlefile": "^2.3.0",
3532
"vitest": "^3.2.4"
3633
}
3734
}

examples/simple-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7+
"start": "NODE_ENV=development npm run build && npm run server",
78
"build": "concurrently 'INPUT=ui-raw.html vite build' 'INPUT=ui-vanilla.html vite build' 'INPUT=ui-react.html vite build'",
8-
"server": "bun server.ts",
9-
"start": "npm run build && npm run server"
9+
"server": "bun server.ts"
1010
},
1111
"dependencies": {
1212
"@modelcontextprotocol/ext-apps": "../..",

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"dist"
2424
],
2525
"scripts": {
26-
"start": "cd examples/simple-host && npm i && npm start",
26+
"start:example-host": "cd examples/simple-host && npm --registry=https://registry.npmjs.org/ i && npm start",
27+
"start:example-mcp-server": "cd examples//simple-server && npm --registry=https://registry.npmjs.org/ install && npm start",
28+
"start": "NODE_ENV=development npm run build && concurrently 'npm run start:example-host' 'npm run start:example-mcp-server'",
2729
"build": "bun build.bun.ts",
2830
"prepare": "npm run build",
2931
"prettier:base-cmd": "prettier -u --ignore-path ./.gitignore --ignore-path ./.prettierignore",
@@ -36,15 +38,16 @@
3638
"@types/react-dom": "^19.2.2",
3739
"concurrently": "^9.2.1",
3840
"cors": "^2.8.5",
41+
"esbuild": "^0.25.12",
3942
"express": "^5.1.0",
40-
"prettier": "^3.6.2"
43+
"prettier": "^3.6.2",
44+
"typescript": "^5.9.3"
4145
},
4246
"dependencies": {
4347
"@modelcontextprotocol/sdk": "^1.22.0",
4448
"bun": "^1.3.2",
4549
"react": "^19.2.0",
4650
"react-dom": "^19.2.0",
47-
"typescript": "5.7.2",
4851
"zod": "^3.25"
4952
}
5053
}

0 commit comments

Comments
 (0)