Add proprietary license #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish MCP Server to Registry | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| name: Publish to MCP Registry | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Validate server.json schema | |
| run: | | |
| pip install jsonschema requests | |
| python3 -c " | |
| import json, requests, jsonschema | |
| schema_url = 'https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json' | |
| schema = requests.get(schema_url).json() | |
| with open('server.json') as f: | |
| doc = json.load(f) | |
| jsonschema.validate(doc, schema) | |
| print('server.json is valid') | |
| " | |
| - name: Install mcp-publisher | |
| run: | | |
| LATEST=$(curl -s https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r .tag_name) | |
| curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${LATEST}/mcp-publisher_linux_amd64.tar.gz" \ | |
| | tar xz mcp-publisher | |
| sudo mv mcp-publisher /usr/local/bin/ | |
| - name: Publish via GitHub OIDC | |
| run: | | |
| mcp-publisher publish \ | |
| --registry-url "https://registry.modelcontextprotocol.io" \ | |
| --mcp-file "./server.json" \ | |
| --auth-method github-oidc |