Skip to content

Commit ec67763

Browse files
feat: add script and workflow for contributing registry (#233)
1 parent c237095 commit ec67763

File tree

2 files changed

+283
-879
lines changed

2 files changed

+283
-879
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: (TESTING) Generate MCP Manifest
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
repo_url:
7+
description: 'Repository URL to generate manifest for'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
generate-manifest:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.11'
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install requests
33+
34+
- name: Generate manifest
35+
env:
36+
ANYON_API_KEY: ${{ secrets.ANYON_API_KEY }}
37+
run: |
38+
python scripts/get_manifest.py "${{ github.event.inputs.repo_url }}"
39+
40+
- name: Extract repo name for branch
41+
id: repo-info
42+
run: |
43+
REPO_URL="${{ github.event.inputs.repo_url }}"
44+
REPO_NAME=$(echo "$REPO_URL" | sed 's/.*github\.com[:/]//' | sed 's/\.git$//' | tr '/' '-')
45+
echo "repo_name=$REPO_NAME" >> $GITHUB_OUTPUT
46+
echo "branch_name=add-manifest-$REPO_NAME" >> $GITHUB_OUTPUT
47+
48+
- name: Create Pull Request
49+
uses: peter-evans/create-pull-request@v5
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
commit-message: |
53+
feat: add manifest for ${{ steps.repo-info.outputs.repo_name }}
54+
55+
Generated manifest JSON for repository: ${{ github.event.inputs.repo_url }}
56+
57+
🤖 Generated with [Claude Code](https://claude.ai/code)
58+
59+
Co-Authored-By: Claude <[email protected]>
60+
title: "feat: Add MCP manifest for ${{ steps.repo-info.outputs.repo_name }}"
61+
body: |
62+
## Summary
63+
64+
This PR adds a new MCP server manifest generated from the repository: ${{ github.event.inputs.repo_url }}
65+
66+
## Changes
67+
68+
- Added new manifest JSON file in `mcp-registry/servers/`
69+
- Manifest was automatically generated using the chatxiv.org API
70+
71+
## Test plan
72+
73+
- [ ] Verify the generated JSON is valid
74+
- [ ] Check that all required fields are present
75+
- [ ] Validate installation instructions work correctly
76+
77+
---
78+
79+
🤖 Generated with [Claude Code](https://claude.ai/code)
80+
branch: ${{ steps.repo-info.outputs.branch_name }}
81+
delete-branch: true

0 commit comments

Comments
 (0)