Provide implementations of advanced data structures
日本語の概要は準備中です。原文の説明を表示しています。
Scaffolds MCP App project structure with correct directory layout, dependencies, entry points, and framework-specific templates. Handles React (useApp hook), Vanilla JS, Vue, Svelte, Preact, and Solid.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Scaffold MCP App projects from scratch with correct structure, dependencies, and framework-specific templates following the reference-code-first methodology.
MCP Apps are interactive UIs that render inline in MCP-enabled hosts (Claude Desktop, ChatGPT, VS Code, Goose, Postman). Every MCP App requires:
registerAppToolregisterAppResource_meta.ui.resourceUri references the resource's URIThis skill handles the initial project scaffolding: cloning the SDK reference code, selecting a framework, generating the directory structure, and creating all entry points.
examples/basic-server-{framework}/src/docs/patterns.mdexamples/basic-host/useApp hook, useHostStyles, useHostStyleVariables, useHostFontssrc/, build configs, entry points.gitignore for build artifacts@modelcontextprotocol/ext-apps, @modelcontextprotocol/sdk, zodtypescript, vite, vite-plugin-singlefile, tsx, concurrentlyreact, react-dom, @types/react, @types/react-dom (for React)npm install -- never hardcode version numbers# Clone SDK at the exact version published to npm
git clone --branch "v$(npm view @modelcontextprotocol/ext-apps version)" \
--depth 1 https://github.com/modelcontextprotocol/ext-apps.git /tmp/mcp-ext-apps
Key reference locations:
| Path | Content |
|---|---|
/tmp/mcp-ext-apps/examples/basic-server-react/ | React template |
/tmp/mcp-ext-apps/examples/basic-server-vanillajs/ | Vanilla JS template |
/tmp/mcp-ext-apps/examples/basic-server-vue/ | Vue template |
/tmp/mcp-ext-apps/examples/basic-server-svelte/ | Svelte template |
/tmp/mcp-ext-apps/examples/basic-server-preact/ | Preact template |
/tmp/mcp-ext-apps/examples/basic-server-solid/ | Solid template |
/tmp/mcp-ext-apps/src/app.ts | App class API |
/tmp/mcp-ext-apps/src/server/index.ts | Server registration helpers |
/tmp/mcp-ext-apps/src/react/useApp.tsx | React useApp hook |
/tmp/mcp-ext-apps/src/styles.ts | Host styling helpers |
/tmp/mcp-ext-apps/docs/patterns.md | Advanced patterns |
/tmp/mcp-ext-apps/examples/basic-host/ | Test host |
Is the team familiar with React?
YES -> Use React with useApp hook (SDK-provided, first-class)
NO -> Is this a simple app with minimal UI?
YES -> Use Vanilla JS with manual lifecycle
NO -> Use team's preferred framework (Vue/Svelte/Preact/Solid)
with manual App lifecycle management
mkdir my-mcp-app && cd my-mcp-app
npm init -y
# Core dependencies
npm install @modelcontextprotocol/ext-apps @modelcontextprotocol/sdk zod
# Dev dependencies
npm install -D typescript vite vite-plugin-singlefile tsx concurrently @types/node
# React-specific (if using React)
npm install react react-dom
npm install -D @types/react @types/react-dom
my-mcp-app/
├── src/
│ ├── server.ts # MCP server with registerAppTool + registerAppResource
│ ├── main.ts # Client UI entry (or main.tsx for React)
│ └── global.css # Styles with host CSS variable fallbacks
├── mcp-app.html # HTML entry point for Vite (or mcp-app.tsx for React)
├── vite.config.ts # Vite + vite-plugin-singlefile
├── tsconfig.json # TypeScript configuration
├── package.json # Scripts: build:ui, build:server, build, dev
└── .gitignore # dist/, node_modules/, /tmp/
{
"scripts": {
"build:ui": "vite build",
"build:server": "tsc --project tsconfig.server.json",
"build": "npm run build:ui && npm run build:server",
"dev": "concurrently \"vite\" \"tsx watch src/server.ts\"",
"serve": "tsx src/server.ts"
}
}
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
"jsx": "react-jsx",
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "dist"]
}
npm install (no manual versions)server.ts)main.ts / main.tsx)mcp-app.html / mcp-app.tsx)vite-plugin-singlefile presentbuild:ui, build:server, build).gitignore includes dist/ and node_modules/const mcpAppScaffoldingTask = defineTask({
name: 'mcp-app-scaffolding',
description: 'Scaffold MCP App project structure with framework-specific templates',
inputs: {
appName: { type: 'string', required: true },
framework: { type: 'string', default: 'react' },
description: { type: 'string', default: '' },
transport: { type: 'string', default: 'stdio' },
existingServer: { type: 'boolean', default: false }
},
outputs: {
projectDir: { type: 'string' },
framework: { type: 'string' },
files: { type: 'array' },
artifacts: { type: 'array' }
},
async run(inputs, taskCtx) {
return {
kind: 'skill',
title: `Scaffold MCP App: ${inputs.appName} (${inputs.framework})`,
skill: {
name: 'mcp-app-scaffolding',
context: {
appName: inputs.appName,
framework: inputs.framework,
description: inputs.description,
transport: inputs.transport,
existingServer: inputs.existingServer,
instructions: [
'Clone SDK reference code at published npm version',
'Execute framework selection decision tree',
'Generate project directory structure',
'Install all dependencies via npm install',
'Create server and client entry points',
'Configure Vite with vite-plugin-singlefile',
'Set up TypeScript and build scripts'
]
}
},
io: {
inputJsonPath: `tasks/${taskCtx.effectId}/input.json`,
outputJsonPath: `tasks/${taskCtx.effectId}/result.json`
}
};
}
});
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Provide implementations of advanced data structures
日本語の概要は準備中です。原文の説明を表示しています。
Fresh adversarial code review with binary PASS/FAIL verdicts, evidence citations, and anchoring bias prevention via fresh reviewer spawning.
日本語の概要は準備中です。原文の説明を表示しています。
WASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.
日本語の概要は準備中です。原文の説明を表示しています。
Coordinate Crew (persistent) and Polecat (transient) agents using Gas Town's hook-based work distribution and GUPP principle.
日本語の概要は準備中です。原文の説明を表示しています。
Generate visual representations of algorithm execution
日本語の概要は準備中です。原文の説明を表示しています。
Hierarchical coordination and drift detection with frequent checkpoints, shared memory coherence validation, role specialization enforcement, and short task cycles.
日本語の概要は準備中です。原文の説明を表示しています。