ext-apps 2.0 and the 15 example server packages are built on the MCP TypeScript SDK 2.0 split packages, so the stateless example mounts in src/modules/example-apps now connect each server to NodeStreamableHTTPServerTransport from @modelcontextprotocol/node; the factory map is typed as the 2.0 McpServer. The rest of this host (OAuth, the root /mcp handlers, Redis transport) stays on @modelcontextprotocol/sdk 1.29, which installs alongside the 2.0 packages. zod moves to 4 for the whole tree: ext-apps 2.0 peers on ^4.2.0, sdk 1.29 accepts ^3.25 || ^4.0, and the host already imports zod/v4. The hello-world View takes CallToolResult from @modelcontextprotocol/client.
84 lines
3.6 KiB
JSON
84 lines
3.6 KiB
JSON
{
|
|
"name": "mcp-server-example-remote",
|
|
"version": "1.0.0",
|
|
"description": "MCP Feature Reference Server with OAuth - Unified Implementation",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"dev": "tsx watch --inspect src/index.ts",
|
|
"dev:internal": "AUTH_MODE=internal tsx watch --inspect src/index.ts",
|
|
"dev:external": "concurrently \"AUTH_MODE=auth_server PORT=3001 BASE_URI=http://localhost:3001 tsx watch src/index.ts\" \"sleep 3 && AUTH_MODE=external AUTH_SERVER_URL=http://localhost:3001 tsx watch --inspect src/index.ts\"",
|
|
"build": "tsc && npm run copy-static && npm run build:apps",
|
|
"build:apps": "INPUT=src/apps/hello-world/mcp-app.html vite build",
|
|
"copy-static": "mkdir -p dist/static dist/modules/auth/static && cp -r src/static/* dist/static/ 2>/dev/null || true && cp src/modules/auth/static/mcp.png dist/modules/auth/static/ 2>/dev/null || true",
|
|
"start": "node dist/index.js",
|
|
"start:internal": "AUTH_MODE=internal npm start",
|
|
"start:external": "concurrently \"AUTH_MODE=auth_server PORT=3001 BASE_URI=http://localhost:3001 node dist/index.js\" \"sleep 3 && AUTH_MODE=external AUTH_SERVER_URL=http://localhost:3001 node dist/index.js\"",
|
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
"test:e2e:internal": "./scripts/test-e2e-internal.sh",
|
|
"test:e2e:external": "./scripts/test-e2e-external.sh",
|
|
"test:e2e": "./scripts/test-e2e-all.sh",
|
|
"lint": "eslint src/",
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/ext-apps": "^2.0.0",
|
|
"@modelcontextprotocol/node": "^2.0.0",
|
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
"@modelcontextprotocol/server-budget-allocator": "^2.0.0",
|
|
"@modelcontextprotocol/server-cohort-heatmap": "^2.0.0",
|
|
"@modelcontextprotocol/server-customer-segmentation": "^2.0.0",
|
|
"@modelcontextprotocol/server-debug": "^2.0.0",
|
|
"@modelcontextprotocol/server-lazy-auth": "^2.0.0",
|
|
"@modelcontextprotocol/server-map": "^2.0.0",
|
|
"@modelcontextprotocol/server-pdf": "^2.0.0",
|
|
"@modelcontextprotocol/server-scenario-modeler": "^2.0.0",
|
|
"@modelcontextprotocol/server-shadertoy": "^2.0.0",
|
|
"@modelcontextprotocol/server-sheet-music": "^2.0.0",
|
|
"@modelcontextprotocol/server-system-monitor": "^2.0.0",
|
|
"@modelcontextprotocol/server-threejs": "^2.0.0",
|
|
"@modelcontextprotocol/server-transcript": "^2.0.0",
|
|
"@modelcontextprotocol/server-video-resource": "^2.0.0",
|
|
"@modelcontextprotocol/server-wiki-explorer": "^2.0.0",
|
|
"@redis/client": "^1.6.0",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.4.7",
|
|
"express": "^4.21.2",
|
|
"express-rate-limit": "^8.0.1",
|
|
"raw-body": "^3.0.0",
|
|
"react": "^19.2.1",
|
|
"react-dom": "^19.2.1",
|
|
"zod": "^4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.15.0",
|
|
"@types/content-type": "^1.1.8",
|
|
"@types/cors": "^2.8.17",
|
|
"@types/express": "^5.0.0",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^22.10.0",
|
|
"@types/react": "^19.2.5",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^4.7.0",
|
|
"concurrently": "^8.2.0",
|
|
"jest": "^29.7.0",
|
|
"ts-jest": "^29.2.5",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.2",
|
|
"typescript-eslint": "^8.18.0",
|
|
"vite": "^5.4.21",
|
|
"vite-plugin-singlefile": "^2.3.0"
|
|
},
|
|
"overrides": {
|
|
"@types/express": "^5.0.0",
|
|
"@types/express-serve-static-core": "5.1.0",
|
|
"@modelcontextprotocol/sdk": "$@modelcontextprotocol/sdk"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.16.0 || >=22.3.0"
|
|
},
|
|
"author": "",
|
|
"license": "MIT"
|
|
}
|