Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions tests/phase4-growth-flywheel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down