From 044b97f61c1a813bb91751cf291011c46a053848 Mon Sep 17 00:00:00 2001 From: getterobo <176732030+getterobo@users.noreply.github.com> Date: Mon, 17 Aug 2026 10:20:37 +0800 Subject: [PATCH] fix: support current Codex plugin marketplace --- .agents/plugins/marketplace.json | 20 ++++++++++++++++++++ .codex-plugin/plugin.json | 20 ++++++++++++++++++-- .mcp.json | 2 +- README.md | 10 +++++++++- 4 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 .agents/plugins/marketplace.json diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json new file mode 100644 index 0000000..ac3224a --- /dev/null +++ b/.agents/plugins/marketplace.json @@ -0,0 +1,20 @@ +{ + "name": "21st", + "interface": { + "displayName": "21st.dev" + }, + "plugins": [ + { + "name": "21st", + "source": { + "source": "local", + "path": "./" + }, + "policy": { + "installation": "AVAILABLE", + "authentication": "ON_INSTALL" + }, + "category": "Developer Tools" + } + ] +} diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 80ab536..b8c84e3 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -7,7 +7,23 @@ "url": "https://21st.dev" }, "homepage": "https://21st.dev", + "repository": "https://github.com/21st-dev/codex-plugin", + "license": "Apache-2.0", "keywords": ["react", "shadcn", "ui", "components", "mcp", "frontend", "cli"], - "skills": ["./skills"], - "mcp": "./.mcp.json" + "skills": "./skills/", + "mcpServers": "./.mcp.json", + "interface": { + "displayName": "21st.dev", + "shortDescription": "Search, install, and publish React/shadcn UI", + "longDescription": "Search, install, and publish React/shadcn components, themes, and templates on 21st.dev using bundled skills and the remote 21st MCP server.", + "developerName": "21st.dev", + "category": "Developer Tools", + "capabilities": ["Interactive", "Read", "Write"], + "websiteURL": "https://21st.dev", + "defaultPrompt": [ + "Find a polished shadcn component for my current UI.", + "Install a 21st.dev component into this project.", + "Publish this component to 21st.dev." + ] + } } diff --git a/.mcp.json b/.mcp.json index d685369..eb590da 100644 --- a/.mcp.json +++ b/.mcp.json @@ -1,5 +1,5 @@ { - "mcp_servers": { + "mcpServers": { "21st": { "url": "https://21st.dev/api/mcp", "bearer_token_env_var": "API_KEY_21ST" diff --git a/README.md b/README.md index 0361e76..da11d3b 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,12 @@ instead of hand-writing UI. (Replace `21st-dev/codex-plugin` with the actual `/`, git URL, or local path that hosts this directory.) + Refresh the Git-backed marketplace later with: + + ```bash + codex plugin marketplace upgrade 21st + ``` + 3. Open the in-CLI plugin browser and install `21st`: ``` @@ -68,7 +74,9 @@ the shell that launched Codex. .codex-plugin/ plugin.json # skills + mcp references .mcp.json # remote 21st MCP (bearer via API_KEY_21ST env) -marketplace.json # self-hosted marketplace listing this plugin +.agents/plugins/ + marketplace.json # Codex marketplace manifest +marketplace.json # legacy marketplace manifest skills/ 21st-cli-use/ SKILL.md # bundled skills (shared with the Claude Code plugin