* feat: make MCP SDK a peer dependency - Move @modelcontextprotocol/sdk from dependencies to peerDependencies (^1.20.0) - Add to devDependencies for local development (^1.24.3) - Externalize SDK from all build entry points (app, app-bridge, react, server) Benefits: - Consumers control their SDK version - Deduplication when consumer already has SDK - Follows pattern of react/zod peer deps * fix: require SDK ^1.24.0 for Zod 4 compatibility Earlier SDK versions have Zod type incompatibilities that cause build errors. * chore: update examples to SDK ^1.24.0 to match peer dep
33 lines
1.1 KiB
JSON
33 lines
1.1 KiB
JSON
{
|
|
"name": "customer-segmentation-server",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "cross-env INPUT=mcp-app.html vite build",
|
|
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
|
|
"serve:http": "bun server.ts",
|
|
"serve:stdio": "bun server.ts --stdio",
|
|
"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'"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/ext-apps": "../..",
|
|
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
"chart.js": "^4.4.0",
|
|
"zod": "^4.1.13"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.19",
|
|
"@types/express": "^5.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"concurrently": "^9.2.1",
|
|
"cors": "^2.8.5",
|
|
"express": "^5.1.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^6.0.0",
|
|
"vite-plugin-singlefile": "^2.3.0"
|
|
}
|
|
}
|