diff --git a/docs/guides/publishing/github-actions.md b/docs/guides/publishing/github-actions.md index 61889a96..c802b71b 100644 --- a/docs/guides/publishing/github-actions.md +++ b/docs/guides/publishing/github-actions.md @@ -70,6 +70,22 @@ jobs: run: ./mcp-publisher publish ``` +Optionally, at the end of your workflow, you can show the latest registration for your server as the GitHub Actions workflow job summary. Replace "<>" with the name of the server in the YAML snippet below. Replace the "/" with "%2F" in your server name when you put it into the URL. + +```yaml + - name: Show MCP registration + shell: bash + if: always() + run: | + # Show last registered version + curl -s https://registry.modelcontextprotocol.io/v0/servers/<>/versions/latest | \ + jq '{server: {name: .server.name, version: .server.version}, _meta: ._meta}' > \ + output.json + echo '```json' >> $GITHUB_STEP_SUMMARY + cat output.json >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY +``` + ### Step 2: Configure Secrets You don't need any secrets for publishing to the MCP Registry using GitHub OIDC.