From aca6d4845e268614d3a7c49f249a7ba64b5b3860 Mon Sep 17 00:00:00 2001 From: Divyanshu Jethi <67845323+divyanshujethi@users.noreply.github.com> Date: Sun, 6 Dec 2026 12:15:55 +0530 Subject: [PATCH] docs: add GitHub Action Marketplace guide for MCPShelf Auto-Sync --- README.md | 50 ++++++++++++++++++++++++++++ tests/phase4-growth-flywheel.test.ts | 5 +++ 2 files changed, 55 insertions(+) diff --git a/README.md b/README.md index f4479645..5ff914f8 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,56 @@ To route `mcp.ritualdev.in` to MCPShelf on GitHub Pages: --- +## ⚡ GitHub Action (`RitualDev-Lab/MCPShelf`) + +Automatically validate `.mcpshelf.yml` and sync your MCP server release metadata with **MCPShelf** from any repository using our reusable GitHub Action. + +1. Add a `.mcpshelf.yml` manifest at the root of your repository: + +```yaml +id: io.github.example/weather-mcp +title: Weather MCP Server +description: Real-time forecast lookup and severe weather alerts over MCP stdio. +repositoryUrl: https://github.com/example/weather-mcp +category: developer-tools +installCommand: npx -y @example/weather-mcp +transportType: stdio +license: MIT +``` + +2. Add the workflow to `.github/workflows/mcpshelf-sync.yml`: + +```yaml +name: Sync to MCPShelf +on: + release: + types: [published] + push: + branches: [main] + paths: ['.mcpshelf.yml'] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: RitualDev-Lab/MCPShelf@v1 + with: + manifest_path: '.mcpshelf.yml' + # Optional: PAT with repo scope to open a direct PR (falls back to Edge API / Issue link) + # github_token: ${{ secrets.MCPSHELF_TOKEN }} +``` + +| Input / Output | Kind | Default | Description | +| :--- | :---: | :--- | :--- | +| `manifest_path` | Input | `.mcpshelf.yml` | Path to the manifest file in your repository | +| `github_token` | Input | `""` | Optional PAT to open a direct PR on `RitualDev-Lab/MCPShelf` | +| `submission_endpoint` | Input | `https://mcp.ritualdev.in/api/v1/mcpshelf/submit` | Submission API fallback endpoint | +| `dry_run` | Input | `false` | Validate and normalize manifest without network calls | +| `server_id`, `valid`, `sync_mode`, `pr_url`, `issue_url` | Output | — | Server identifier, sync mode, PR URL, and prefilled submission URL | + +--- + ## 🛠️ Local Development & Contributing ### Requirements diff --git a/tests/phase4-growth-flywheel.test.ts b/tests/phase4-growth-flywheel.test.ts index ccd7b780..fd037366 100644 --- a/tests/phase4-growth-flywheel.test.ts +++ b/tests/phase4-growth-flywheel.test.ts @@ -18,6 +18,11 @@ test('Phase 4: Reusable GitHub Action & .mcpshelf.yml parser/validator work clea const actionRaw = fs.readFileSync(actionYmlPath, 'utf8'); assert.ok(actionRaw.includes('manifest_path')); assert.ok(actionRaw.includes('action-entry.mjs')); + assert.ok(actionRaw.includes('branding:')); + assert.ok(actionRaw.includes("icon: 'layers'")); + assert.ok(actionRaw.includes("color: 'green'")); + const readmeRaw = fs.readFileSync(path.resolve(process.cwd(), 'README.md'), 'utf8'); + assert.ok(readmeRaw.includes('RitualDev-Lab/MCPShelf@v1')); const sampleYaml = ` # MCPShelf Manifest