diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json new file mode 100644 index 00000000..1d7ab8d3 --- /dev/null +++ b/.codex-plugin/plugin.json @@ -0,0 +1,24 @@ +{ + "name": "context7", + "version": "0.1.0", + "description": "Up-to-date code documentation for Codex from Context7", + "author": { + "name": "upstash", + "url": "https://github.com/upstash/context7" + }, + "homepage": "https://github.com/upstash/context7", + "repository": "https://github.com/upstash/context7", + "keywords": [ + "mcp", + "codex" + ], + "mcpServers": "./.mcp.json", + "interface": { + "displayName": "Context7", + "shortDescription": "Up-to-date code documentation for Codex from Context7", + "longDescription": "Up-to-date code documentation for LLMs and AI code editors.", + "category": "Development", + "websiteURL": "https://github.com/upstash/context7" + }, + "skills": "./skills/" +} \ No newline at end of file diff --git a/.github/workflows/plugin-quality-gate.yml b/.github/workflows/plugin-quality-gate.yml new file mode 100644 index 00000000..71ebfae9 --- /dev/null +++ b/.github/workflows/plugin-quality-gate.yml @@ -0,0 +1,28 @@ +name: Plugin Quality Gate + +on: + pull_request: + paths: + - ".codex-plugin/**" + - "skills/**" + - ".mcp.json" + +concurrency: + group: codex-plugin-scanner-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + scan: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + - name: Codex plugin quality gate + uses: hashgraph-online/hol-codex-plugin-scanner-action@0f78e6d99032ec198d23a41a8425080a658c07d1 + with: + plugin_dir: "." + min_score: 60 + fail_on_severity: high diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 00000000..c4a28646 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,11 @@ +{ + "mcpServers": { + "context7": { + "command": "npx", + "args": [ + "-y", + "ctx7@mcp" + ] + } + } +} \ No newline at end of file diff --git a/skills/context7/SKILL.md b/skills/context7/SKILL.md new file mode 100644 index 00000000..583fb2cc --- /dev/null +++ b/skills/context7/SKILL.md @@ -0,0 +1,12 @@ +--- +name: context7 +description: Up-to-date code documentation for Codex from Context7 +--- + +# Context7 for Codex + +Use Context7 from Codex via MCP. + +## When to use +- When you need context7 capabilities in your Codex workflow +- See https://github.com/upstash/context7 for full setup instructions