[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F1TD7BVDWYD9RBA4PMQ67N":3,"skill-same:01M7F1TD7BVDWYD9RBA4PMQ67N":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F1TD7BVDWYD9RBA4PMQ67N","mcp",null,"MCP Apps integration for json-render. Use when building MCP servers that render interactive UIs in Claude, ChatGPT, Cursor, or VS Code, or when integrating json-render with the Model Context Protocol.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fmcp\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: mcp\ndescription: MCP Apps integration for json-render. Use when building MCP servers that render interactive UIs in Claude, ChatGPT, Cursor, or VS Code, or when integrating json-render with the Model Context Protocol.\n---\n\n# @json-render\u002Fmcp\n\nMCP Apps integration that serves json-render UIs as interactive MCP Apps inside Claude, ChatGPT, Cursor, VS Code, and other MCP-capable clients.\n\n## Quick Start\n\n### Server (Node.js)\n\n```typescript\nimport { createMcpApp } from \"@json-render\u002Fmcp\";\nimport { defineCatalog } from \"@json-render\u002Fcore\";\nimport { schema } from \"@json-render\u002Freact\u002Fschema\";\nimport { shadcnComponentDefinitions } from \"@json-render\u002Fshadcn\u002Fcatalog\";\nimport { StdioServerTransport } from \"@modelcontextprotocol\u002Fsdk\u002Fserver\u002Fstdio.js\";\nimport fs from \"node:fs\";\n\nconst catalog = defineCatalog(schema, {\n  components: { ...shadcnComponentDefinitions },\n  actions: {},\n});\n\nconst server = createMcpApp({\n  name: \"My App\",\n  version: \"1.0.0\",\n  catalog,\n  html: fs.readFileSync(\"dist\u002Findex.html\", \"utf-8\"),\n});\n\nawait server.connect(new StdioServerTransport());\n```\n\n### Client (React, inside iframe)\n\n```tsx\nimport { useJsonRenderApp } from \"@json-render\u002Fmcp\u002Fapp\";\nimport { JSONUIProvider, Renderer } from \"@json-render\u002Freact\";\n\nfunction McpAppView({ registry }) {\n  const { spec, loading, error } = useJsonRenderApp();\n  if (error) return \u003Cdiv>Error: {error.message}\u003C\u002Fdiv>;\n  if (!spec) return \u003Cdiv>Waiting...\u003C\u002Fdiv>;\n  return (\n    \u003CJSONUIProvider registry={registry} initialState={spec.state ?? {}}>\n      \u003CRenderer spec={spec} registry={registry} loading={loading} \u002F>\n    \u003C\u002FJSONUIProvider>\n  );\n}\n```\n\n## Architecture\n\n1. `createMcpApp()` creates an `McpServer` that registers a `render-ui` tool and a `ui:\u002F\u002F` HTML resource\n2. The tool description includes the catalog prompt so the LLM knows how to generate valid specs\n3. The HTML resource is a Vite-bundled single-file React app with json-render renderers\n4. Inside the iframe, `useJsonRenderApp()` connects to the host via `postMessage` and renders specs\n\n## Server API\n\n- `createMcpApp(options)` - main entry, creates a full MCP server\n- `registerJsonRenderTool(server, options)` - register a json-render tool on an existing server\n- `registerJsonRenderResource(server, options)` - register the UI resource\n\n## Client API (`@json-render\u002Fmcp\u002Fapp`)\n\n- `useJsonRenderApp(options?)` - React hook, returns `{ spec, loading, connected, error, callServerTool }`\n- `buildAppHtml(options)` - generate HTML from bundled JS\u002FCSS\n\n## Building the iframe HTML\n\nBundle the React app into a single self-contained HTML file using Vite + `vite-plugin-singlefile`:\n\n```typescript\n\u002F\u002F vite.config.ts\nimport { defineConfig } from \"vite\";\nimport react from \"@vitejs\u002Fplugin-react\";\nimport { viteSingleFile } from \"vite-plugin-singlefile\";\n\nexport default defineConfig({\n  plugins: [react(), viteSingleFile()],\n  build: { outDir: \"dist\" },\n});\n```\n\n## Client Configuration\n\n### Cursor (`.cursor\u002Fmcp.json`)\n\n```json\n{\n  \"mcpServers\": {\n    \"my-app\": {\n      \"command\": \"npx\",\n      \"args\": [\"tsx\", \"server.ts\", \"--stdio\"]\n    }\n  }\n}\n```\n\n### Claude Desktop\n\n```json\n{\n  \"mcpServers\": {\n    \"my-app\": {\n      \"command\": \"npx\",\n      \"args\": [\"tsx\", \"\u002Fpath\u002Fto\u002Fserver.ts\", \"--stdio\"]\n    }\n  }\n}\n```\n\n## Dependencies\n\n```bash\n# Server\nnpm install @json-render\u002Fmcp @json-render\u002Fcore @modelcontextprotocol\u002Fsdk\n\n# Client (iframe)\nnpm install @json-render\u002Freact @json-render\u002Fshadcn react react-dom\n\n# Build tools\nnpm install -D vite @vitejs\u002Fplugin-react vite-plugin-singlefile\n```\n","# @json-render\u002Fmcp\n\nMCP Apps integration that serves json-render UIs as interactive MCP Apps inside Claude, ChatGPT, Cursor, VS Code, and other MCP-capable clients.\n\n## Quick Start\n\n### Server (Node.js)\n\n```typescript\nimport { createMcpApp } from \"@json-render\u002Fmcp\";\nimport { defineCatalog } from \"@json-render\u002Fcore\";\nimport { schema } from \"@json-render\u002Freact\u002Fschema\";\nimport { shadcnComponentDefinitions } from \"@json-render\u002Fshadcn\u002Fcatalog\";\nimport { StdioServerTransport } from \"@modelcontextprotocol\u002Fsdk\u002Fserver\u002Fstdio.js\";\nimport fs from \"node:fs\";\n\nconst catalog = defineCatalog(schema, {\n  components: { ...shadcnComponentDefinitions },\n  actions: {},\n});\n\nconst server = createMcpApp({\n  name: \"My App\",\n  version: \"1.0.0\",\n  catalog,\n  html: fs.readFileSync(\"dist\u002Findex.html\", \"utf-8\"),\n});\n\nawait server.connect(new StdioServerTransport());\n```\n\n### Client (React, inside iframe)\n\n```tsx\nimport { useJsonRenderApp } from \"@json-render\u002Fmcp\u002Fapp\";\nimport { JSONUIProvider, Renderer } from \"@json-render\u002Freact\";\n\nfunction McpAppView({ registry }) {\n  const { spec, loading, error } = useJsonRenderApp();\n  if (error) return \u003Cdiv>Error: {error.message}\u003C\u002Fdiv>;\n  if (!spec) return \u003Cdiv>Waiting...\u003C\u002Fdiv>;\n  return (\n    \u003CJSONUIProvider registry={registry} initialState={spec.state ?? {}}>\n      \u003CRenderer spec={spec} registry={registry} loading={loading} \u002F>\n    \u003C\u002FJSONUIProvider>\n  );\n}\n```\n\n## Architecture\n\n1. `createMcpApp()` creates an `McpServer` that registers a `render-ui` tool and a `ui:\u002F\u002F` HTML resource\n2. The tool description includes the catalog prompt so the LLM knows how to generate valid specs\n3. The HTML resource is a Vite-bundled single-file React app with json-render renderers\n4. Inside the iframe, `useJsonRenderApp()` connects to the host via `postMessage` and renders specs\n\n## Server API\n\n- `createMcpApp(options)` - main entry, creates a full MCP server\n- `registerJsonRenderTool(server, options)` - register a json-render tool on an existing server\n- `registerJsonRenderResource(server, options)` - register the UI resource\n\n## Client API (`@json-render\u002Fmcp\u002Fapp`)\n\n- `useJsonRenderApp(options?)` - React hook, returns `{ spec, loading, connected, error, callServerTool }`\n- `buildAppHtml(options)` - generate HTML from bundled JS\u002FCSS\n\n## Building the iframe HTML\n\nBundle the React app into a single self-contained HTML file using Vite + `vite-plugin-singlefile`:\n\n```typescript\n\u002F\u002F vite.config.ts\nimport { defineConfig } from \"vite\";\nimport react from \"@vitejs\u002Fplugin-react\";\nimport { viteSingleFile } from \"vite-plugin-singlefile\";\n\nexport default defineConfig({\n  plugins: [react(), viteSingleFile()],\n  build: { outDir: \"dist\" },\n});\n```\n\n## Client Configuration\n\n### Cursor (`.cursor\u002Fmcp.json`)\n\n```json\n{\n  \"mcpServers\": {\n    \"my-app\": {\n      \"command\": \"npx\",\n      \"args\": [\"tsx\", \"server.ts\", \"--stdio\"]\n    }\n  }\n}\n```\n\n### Claude Desktop\n\n```json\n{\n  \"mcpServers\": {\n    \"my-app\": {\n      \"command\": \"npx\",\n      \"args\": [\"tsx\", \"\u002Fpath\u002Fto\u002Fserver.ts\", \"--stdio\"]\n    }\n  }\n}\n```\n\n## Dependencies\n\n```bash\n# Server\nnpm install @json-render\u002Fmcp @json-render\u002Fcore @modelcontextprotocol\u002Fsdk\n\n# Client (iframe)\nnpm install @json-render\u002Freact @json-render\u002Fshadcn react react-dom\n\n# Build tools\nnpm install -D vite @vitejs\u002Fplugin-react vite-plugin-singlefile\n```\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fmcp",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill mcp",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill mcp",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill mcp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fmcp\u002FSKILL.md",true,[],[47,54,59,66,73,80],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":55,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]