From 511cc09c4477d8d1eb228974be4a19765cedd078 Mon Sep 17 00:00:00 2001 From: Sualeh Fatehi Date: Sat, 27 Sep 2025 23:14:42 -0400 Subject: [PATCH 1/2] Add optional GitHub Actions workflow step to show last registration --- docs/guides/publishing/github-actions.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/guides/publishing/github-actions.md b/docs/guides/publishing/github-actions.md index b49b445f..d40ca33c 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. + +```yaml + - name: Show MCP registration + shell: bash + if: always() + run: | + # Show last registered version + curl -s -X GET "https://registry.modelcontextprotocol.io/v0/servers?search=<>" \ + -H "accept: application/json" | \ + jq '.servers[0] | {name, version, _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. From cbfc811a9126a4597b0a6aa80d53188f6f7ea1c6 Mon Sep 17 00:00:00 2001 From: Sualeh Fatehi Date: Sun, 2 Nov 2025 16:13:43 -0500 Subject: [PATCH 2/2] Use the latest versions API end-point --- docs/guides/publishing/github-actions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/publishing/github-actions.md b/docs/guides/publishing/github-actions.md index fcde22ed..c802b71b 100644 --- a/docs/guides/publishing/github-actions.md +++ b/docs/guides/publishing/github-actions.md @@ -70,7 +70,7 @@ 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. +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 @@ -78,9 +78,9 @@ Optionally, at the end of your workflow, you can show the latest registration fo if: always() run: | # Show last registered version - curl -s -X GET "https://registry.modelcontextprotocol.io/v0/servers?search=<>" \ - -H "accept: application/json" | \ - jq '.servers[0] | {name, version, _meta}' > output.json + 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