ext-appsのbasic-server-vanillajsの実行
git clone https://github.com/modelcontextprotocol/ext-apps
% git clone https://github.com/modelcontextprotocol/ext-apps
Cloning into 'ext-apps'...
remote: Enumerating objects: 24263, done.
remote: Counting objects: 100% (5297/5297), done.
remote: Compressing objects: 100% (1139/1139), done.
remote: Total 24263 (delta 4777), reused 4233 (delta 4152), pack-reused 18966 (from 3)
Receiving objects: 100% (24263/24263), 142.89 MiB | 15.78 MiB/s, done.
Resolving deltas: 100% (15369/15369), done.
% cd ext-apps
ext-apps %
ext-apps % npm install
npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation
> @modelcontextprotocol/ext-apps@1.5.0 prepare
> npm run build && husky
> @modelcontextprotocol/ext-apps@1.5.0 build
> npm run generate:schemas && npm run sync:snippets && node scripts/run-bun.mjs build.bun.ts && node scripts/link-self.mjs
> @modelcontextprotocol/ext-apps@1.5.0 generate:schemas
> tsx scripts/generate-schemas.ts && prettier --write "src/generated/**/*"
🔧 Generating Zod schemas from spec.types.ts...
✅ Written: /Users/ynakakoshi/Documents/ext-apps/src/generated/schema.ts
✅ Written: /Users/ynakakoshi/Documents/ext-apps/src/generated/schema.test.ts
✅ Written: /Users/ynakakoshi/Documents/ext-apps/src/generated/schema.json
🎉 Schema generation complete!
src/generated/schema.json 49ms
src/generated/schema.test.ts 24ms
src/generated/schema.ts 26ms
> @modelcontextprotocol/ext-apps@1.5.0 sync:snippets
> bun scripts/sync-snippets.ts
🔧 Syncing code snippets from example files...
✅ No files needed modification
🎉 Snippet sync complete!
added 573 packages, and audited 622 packages in 8s
119 packages are looking for funding
run `npm fund` for details
3 vulnerabilities (2 moderate, 1 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
ext-apps %
サンプルを実行します。
ext-apps % npm run start
> @modelcontextprotocol/ext-apps@1.5.0 start
> npm run examples:dev
> @modelcontextprotocol/ext-apps@1.5.0 examples:dev
> NODE_ENV=development bun examples/run-all.ts dev
Running command: dev
Server examples: basic-server-preact:3101, basic-server-react:3102, basic-server-solid:3103, basic-server-svelte:3104, basic-server-vanillajs:3105, basic-server-vue:3106, budget-allocator-server:3107, cohort-heatmap-server:3108, customer-segmentation-server:3109, debug-server:3110, integration-server:3111, map-server:3112, pdf-server:3113, qr-server:3114, quickstart:3115, say-server:3116, scenario-modeler-server:3117, shadertoy-server:3118, sheet-music-server:3119, system-monitor-server:3120, threejs-server:3121, transcript-server:3122, video-resource-server:3123, wiki-explorer-server:3124
[basic-server-solid]
[basic-server-solid] > @modelcontextprotocol/server-basic-solid@1.5.0 dev
[basic-server-solid] > cross-env NODE_ENV=development concurrently "npm run watch" "npm run serve"
[basic-server-solid]
[map-server]
[中略]
[cohort-heatmap-server] [1]
[cohort-heatmap-server] [1] > @modelcontextprotocol/server-cohort-heatmap@1.5.0 serve:http
[cohort-heatmap-server] [1] > bun --watch main.ts
[cohort-heatmap-server] [1]
[basic-host] [1] Host server: http://localhost:8080
[basic-host] [1] Sandbox server: http://localhost:8081
[basic-host] [1]
[basic-host] [1] Press Ctrl+C to stop
[basic-host] [1]
[integration-server] [1]
[integration-server] [1] > integration-server@1.5.0 serve:http
[integration-server] [1] > bun --watch main.ts
[integration-server] [1]
[中略]
[threejs-server] [0] dist/mcp-app.html 10,374.90 kB │ gzip: 2,151.32 kB
[threejs-server] [0] built in 3070ms.
[pdf-server] [0] dist/mcp-app.html 10,436.10 kB │ gzip: 2,377.31 kB
[say-server] npm error Lifecycle script `dev` failed with error:
[say-server] npm error code 1
[say-server] npm error path /Users/ynakakoshi/Documents/ext-apps/examples/say-server
[say-server] npm error workspace @modelcontextprotocol/server-say@1.5.0
[say-server] npm error location /Users/ynakakoshi/Documents/ext-apps/examples/say-server
[say-server] npm error command failed
[say-server] npm error command sh -c uv run --index https://pypi.org/simple server.py
[pdf-server] [0] built in 3304ms.
[say-server] npm run --workspace examples/say-server dev exited with code 1
ブラウザよりサンプルを呼び出します。
{
"content": [
{
"type": "text",
"text": "2026-04-14T06:09:37.819Z"
}
],
"structuredContent": {
"time": "2026-04-14T06:09:37.819Z"
}
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"time": {
"type": "string"
}
}
}
npx -y @modelcontextprotocol/inspector
Transport TypeにStreamable HTTPを選択し、URLにリモートMCPサーバーのエンドポイントとなるURLを指定します。




















