-
Notifications
You must be signed in to change notification settings - Fork 462
docs: Add optional GitHub Actions workflow step to show last registration #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 "<<your server name>>" 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=<<your server name>>" \ | ||
|
||
| -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 | ||
|
Comment on lines
76
to
86
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm unclear on the purpose of this enhancement. If it is to display the published metadata, why not just Could you elaborate on your use case?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This confirms that that last submitted version of the MCP server was actually registered in the registry, and gets the metadata for that registration.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But it's just being logged, not actually confirmed, right? A human would have to visually inspect the summary and compare it to the version that's in the More importantly though, if registration fails, I would expect the build to fail before it reaches this point (e.g., fail at the "Publish to MCP Registry" step). Have you observed cases where that wasn't true?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build would fail at the point where the registration failed, and the failure would be reported. This is just the status report that shows at the bottom of the GitHub Actions workflow, and acts as an additional information/ debugging step. It is nothing to do with the functionality of registering the server.json per se. We would want the report to show irrespective of whether the registration (and the build) failed or succeeded. |
||
| ``` | ||
|
|
||
| ### Step 2: Configure Secrets | ||
|
|
||
| You don't need any secrets for publishing to the MCP Registry using GitHub OIDC. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better for this to be success() instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The report will always show the last registered version, so a visual check can show if the correct (latest) version actually got registered.