diff --git a/docs/quickstart.md b/docs/quickstart.md index 99ee795..3fb1198 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -44,9 +44,12 @@ Configure your [`package.json`](https://github.com/modelcontextprotocol/ext-apps ```bash npm pkg set type=module npm pkg set scripts.build="tsc --noEmit && tsc -p tsconfig.server.json && cross-env INPUT=mcp-app.html vite build" -npm pkg set scripts.start="concurrently 'cross-env NODE_ENV=development INPUT=mcp-app.html vite build --watch' 'tsx watch main.ts'" +npm pkg set scripts.start='concurrently "cross-env NODE_ENV=development INPUT=mcp-app.html vite build --watch" "tsx watch main.ts"' ``` +> [!NOTE] +> Windows `cmd.exe` users will need to convert quotes in the above command: `npm pkg set scripts.start="concurrently ""cross-env NODE_ENV=development INPUT=mcp-app.html vite build --watch"" ""tsx watch main.ts"""`. +
Create tsconfig.json: diff --git a/examples/basic-server-preact/package.json b/examples/basic-server-preact/package.json index 1c13af3..7cfef2c 100644 --- a/examples/basic-server-preact/package.json +++ b/examples/basic-server-preact/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/basic-server-react/package.json b/examples/basic-server-react/package.json index bf4dcea..dbcb1a7 100644 --- a/examples/basic-server-react/package.json +++ b/examples/basic-server-react/package.json @@ -28,7 +28,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/basic-server-solid/package.json b/examples/basic-server-solid/package.json index 239376b..52049f3 100644 --- a/examples/basic-server-solid/package.json +++ b/examples/basic-server-solid/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/basic-server-svelte/package.json b/examples/basic-server-svelte/package.json index 97684b1..5ade2d2 100644 --- a/examples/basic-server-svelte/package.json +++ b/examples/basic-server-svelte/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/basic-server-vanillajs/package.json b/examples/basic-server-vanillajs/package.json index 0a48de2..8e1d8ca 100644 --- a/examples/basic-server-vanillajs/package.json +++ b/examples/basic-server-vanillajs/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/basic-server-vue/package.json b/examples/basic-server-vue/package.json index 7fc7f89..1a32959 100644 --- a/examples/basic-server-vue/package.json +++ b/examples/basic-server-vue/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/budget-allocator-server/package.json b/examples/budget-allocator-server/package.json index 1a6d9c6..4dcbf3f 100644 --- a/examples/budget-allocator-server/package.json +++ b/examples/budget-allocator-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" }, diff --git a/examples/cohort-heatmap-server/package.json b/examples/cohort-heatmap-server/package.json index 3fee9e0..83d883c 100644 --- a/examples/cohort-heatmap-server/package.json +++ b/examples/cohort-heatmap-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" }, diff --git a/examples/customer-segmentation-server/package.json b/examples/customer-segmentation-server/package.json index ddb0918..61c3b91 100644 --- a/examples/customer-segmentation-server/package.json +++ b/examples/customer-segmentation-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" }, diff --git a/examples/debug-server/package.json b/examples/debug-server/package.json index 8fbc81c..86cb9ce 100644 --- a/examples/debug-server/package.json +++ b/examples/debug-server/package.json @@ -19,7 +19,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/integration-server/package.json b/examples/integration-server/package.json index f00d4f8..fc25449 100644 --- a/examples/integration-server/package.json +++ b/examples/integration-server/package.json @@ -11,7 +11,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "serve": "bun --watch main.ts" }, "dependencies": { diff --git a/examples/map-server/package.json b/examples/map-server/package.json index ff6bc79..a89fba5 100644 --- a/examples/map-server/package.json +++ b/examples/map-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" }, diff --git a/examples/pdf-server/package.json b/examples/pdf-server/package.json index 4c2e78a..64553a3 100644 --- a/examples/pdf-server/package.json +++ b/examples/pdf-server/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/quickstart/package.json b/examples/quickstart/package.json index 3bf40fb..aa0adc6 100644 --- a/examples/quickstart/package.json +++ b/examples/quickstart/package.json @@ -12,7 +12,7 @@ "license": "MIT", "scripts": { "build": "tsc --noEmit && tsc -p tsconfig.server.json && cross-env INPUT=mcp-app.html vite build", - "start": "concurrently 'cross-env NODE_ENV=development INPUT=mcp-app.html vite build --watch' 'tsx watch main.ts'" + "start": "concurrently \"cross-env NODE_ENV=development INPUT=mcp-app.html vite build --watch\" \"tsx watch main.ts\"" }, "dependencies": { "@modelcontextprotocol/ext-apps": "^1.0.0", diff --git a/examples/scenario-modeler-server/package.json b/examples/scenario-modeler-server/package.json index 9f546b0..25ae261 100644 --- a/examples/scenario-modeler-server/package.json +++ b/examples/scenario-modeler-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" }, diff --git a/examples/shadertoy-server/package.json b/examples/shadertoy-server/package.json index fef12ec..ca0ddcd 100644 --- a/examples/shadertoy-server/package.json +++ b/examples/shadertoy-server/package.json @@ -20,7 +20,7 @@ "serve:stdio": "bun main.ts --stdio", "start": "cross-env NODE_ENV=development npm run build && npm run serve", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/sheet-music-server/package.json b/examples/sheet-music-server/package.json index 9c5dec5..717fccb 100644 --- a/examples/sheet-music-server/package.json +++ b/examples/sheet-music-server/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/system-monitor-server/package.json b/examples/system-monitor-server/package.json index cc60923..783da60 100644 --- a/examples/system-monitor-server/package.json +++ b/examples/system-monitor-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" }, diff --git a/examples/threejs-server/package.json b/examples/threejs-server/package.json index 653370a..f26909a 100644 --- a/examples/threejs-server/package.json +++ b/examples/threejs-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" }, diff --git a/examples/transcript-server/package.json b/examples/transcript-server/package.json index 897ec32..f896bc7 100644 --- a/examples/transcript-server/package.json +++ b/examples/transcript-server/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/video-resource-server/package.json b/examples/video-resource-server/package.json index 0d5a7aa..7501638 100644 --- a/examples/video-resource-server/package.json +++ b/examples/video-resource-server/package.json @@ -18,7 +18,7 @@ "watch": "cross-env INPUT=mcp-app.html vite build --watch", "serve": "bun --watch main.ts", "start": "cross-env NODE_ENV=development npm run build && npm run serve", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/examples/wiki-explorer-server/package.json b/examples/wiki-explorer-server/package.json index 372c729..e3a0aee 100644 --- a/examples/wiki-explorer-server/package.json +++ b/examples/wiki-explorer-server/package.json @@ -21,7 +21,7 @@ "start": "npm run start:http", "start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http", "start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio", - "dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve:http'", + "dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"", "prepublishOnly": "npm run build", "serve": "bun --watch main.ts" },