Tooluck logoTooluck
SKILL.md

mcp-apps-builder

Agent skill fromLeanmcp/gateway-skills

Build MCP Apps with interactive React UIs using the Leanmcp UI SDK. Use this skill when users ask for "MCP with UI", "MCP App", "interactive MCP", "leanmcp UI", "MCP dashboard", or want to create rich visual interfaces for their MCP tools. This skill covers @UIApp decorator, React components with useTool/useResource hooks, ToolDataGrid, ToolForm, ToolButton, and ChatGPT Apps support.

How to install mcp-apps-builder

install mcp-apps-builder
# install the gateway-skills pack with the skills CLI
npx skills add Leanmcp/gateway-skills

# or add only this skill to Claude Code: copy the folder

skills/mcp-apps-builder/

# into

~/.claude/skills/mcp-apps-builder/ (all projects)

.claude/skills/mcp-apps-builder/ (one project)

skills/mcp-apps-builder/SKILL.md

MITFull file
1# MCP Apps Builder Skill
2
3This skill guides you in building MCP Apps - MCP servers with interactive React UIs using the Leanmcp UI SDK.
4
5## When to Use This Skill
6
7- User asks for "MCP with UI"
8- User wants "interactive MCP server"
9- User mentions "MCP App" or "leanmcp UI"
10- User needs "dashboard for MCP tools"
11- User wants "visual interface for AI tools"
12- User mentions "@leanmcp/ui" or "@UIApp"
13- User asks for "ChatGPT App" or "GPT App"
14
15## What is an MCP App?
16
17MCP Apps extend MCP servers to deliver interactive UIs. Apps run in sandboxed iframes and communicate via JSON-RPC over postMessage. When a tool is called, the UI can be displayed alongside the tool response.
18
19## Core Architecture
20
211. **Service file** (`mcp/*/index.ts`) - Tool methods decorated with `@Tool` AND `@UIApp`
222. **Component file** (`mcp/*/*.tsx`) - React component using `@leanmcp/ui` components
233. **CLI handles the rest** - `leanmcp dev` builds and wraps components with AppProvider
24
25## Required Dependencies
26
27```json
28{
29 "dependencies": {
30 "@leanmcp/core": "^0.4.7",
31 "@leanmcp/ui": "^0.3.7",
32 "react": "^18.0.0",
33 "react-dom": "^18.0.0",
34 "dotenv": "^16.5.0"
35 },
36 "devDependencies": {
37 "@leanmcp/cli": "latest",
38 "@types/react": "^18.0.0",
39 "@types/react-dom": "^18.0.0",
40 "@types/node": "^20.0.0",
41 "typescript": "^5.6.3"
42 }
43}
44```
45
46## TypeScript Configuration
47
48```json
49{
50 "compilerOptions": {
51 "experimentalDecorators": true,
52 "emitDecoratorMetadata": true,
53…

Excerpt shown under the repository's MIT license.

More skills in gateway-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates