Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/guides/publishing/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. Replace the "/" with "%2F" in your server name when you put it into the URL.

```yaml
- name: Show MCP registration
shell: bash
if: always()
Copy link
Member

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?

Copy link
Author

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.

run: |
# Show last registered version
curl -s https://registry.modelcontextprotocol.io/v0/servers/<<your server name>>/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.
Expand Down
Loading