docs: simplify GitHub Actions publishing guide (#446)

Simplifies the GitHub Actions publishing guide to be more concise and
easier to follow:

## Changes
- Streamlined MCP publisher installation with single-line curl command
(no more chmod/directory operations)
- Condensed authentication methods into compact sections
- Reduced language-specific examples to essential steps only
- Updated GitHub Actions to use latest versions (v5)
- Made test/build steps optional with `--if-present` flag
- Added helpful AI assistant prompt tip to publish-server.md

## Result
The guide is now much more succinct while maintaining all essential
information, following the same simplified approach as the main
publishing guide.
This commit is contained in:
adam jones 2025-09-12 02:57:46 -07:00 • committed by GitHub
commit ba86c6beb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,12 @@
Complete guide to publishing an MCP server to the registry.
> [!TIP]
> Using an agentic AI coding assistant? Just use this prompt:
> ```
> Read https://raw.githubusercontent.com/modelcontextprotocol/registry/refs/heads/main/docs/guides/publishing/publish-server.md and https://raw.githubusercontent.com/modelcontextprotocol/registry/refs/heads/main/docs/guides/publishing/github-actions.md. Evaluate the best way to publish this server to the registry (prefer automated CI flows over manual flows where possible), and implement that. If possible, validate the server.json against the $schema before telling the user you are done, using a proper json schema library or tool available on the user's machine. If you get stuck, guide the user through the parts of the publishing process they need to do (e.g. logging into the publisher CLI if doing manual pubishing).
> ```
## What You'll Learn
By the end of this tutorial, you'll have:
@ -339,6 +345,13 @@ You should see your server metadata returned in the JSON response.
**"Namespace not authorized"** - Your authentication method doesn't match your chosen namespace format.
## Examples
See these real-world examples of published servers:
- [NPM, Docker and MCPB example](https://github.com/domdomegg/airtable-mcp-server)
- [NuGet example](https://github.com/domdomegg/time-mcp-nuget)
- [PyPI example](https://github.com/domdomegg/time-mcp-pypi)
## Next Steps
- **Update your server**: Publish new versions with updated server.json files