Commit 2ec36c1
authored
feat(publish): publish to the official MCP Registry on release (#1585)
## Summary
- Adds `server.json` declaring the npm and OCI packages under the
`io.github.microsoft/playwright-mcp` namespace (already claimed via
`mcpName` in `package.json`).
- Adds a `publish-mcp-release-registry` job to `publish.yml` that runs
after the npm release, auto-syncs `server.json`'s version from
`package.json`, and publishes via `mcp-publisher` using GitHub OIDC (no
PAT needed).
- Unblocks enterprise users on `registryOnly` MCP policies (e.g. VS Code
+ Copilot in security-hardened setups) by listing `@playwright/mcp` in
the official registry.
Fixes #1477
## Precedent
[microsoft/mcp-dotnet-samples](https://github.com/microsoft/mcp-dotnet-samples/blob/main/.github/workflows/build-container.yaml)
publishes `io.github.microsoft/awesome-copilot` to the registry from an
hourly cron using the exact same flow (`id-token: write` + curl-fetched
`mcp-publisher` + `login github-oidc`). It's been running successfully
for weeks, so the GitHub-OIDC path is confirmed to work under
`microsoft/*` corp policy — no DNS / Key Vault setup needed (unlike the
reverted #1197 attempt that used the `com.microsoft/...` namespace).
## Notes
- `server.json`'s committed version is just a placeholder; the workflow
rewrites it from `package.json` before publish, so future `chore: mark
vX.Y.Z` commits don't need to touch `server.json`.
- First release after merge is the live test — no dry-run path.1 parent 97e82bd commit 2ec36c1
2 files changed
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
70 | 110 | | |
71 | 111 | | |
72 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments