ci: notify zernio-mcp after SDK publication#30
Open
Ooscaar wants to merge 1 commit into
Open
Conversation
Both publish pipelines now send a repository_dispatch to zernio-dev/zernio-mcp once the PyPI uploads complete, so the MCP package can sync against the released SDK version instead of going stale until someone notices. Uses the same curl dispatch pattern as the Node SDK trigger in the API repo. The event type and payload match what zernio-mcp's sync-sdk.yml consumes: `sdk-released` with a `sdk_version` it validates as semver. Each step is gated on the same condition as the publish steps above it, so no notification is sent for a run that published nothing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
When the SDK publishes to PyPI, nothing tells
zernio-mcpabout it. The MCP package sits on an old SDK version until someone notices by hand.What
A
repository_dispatchat the end of both publish pipelines, using the same curl pattern as the Node SDK trigger in the API repo:sdk-released+sdk_versionis whatzernio-mcp/.github/workflows/sync-sdk.ymllistens for and validates. Each step reuses the condition of the publish steps above it, so a run that published nothing notifies nothing.Workflow files only — no source, tests, or packaging.
Worth a look
MCP_DISPATCH_TOKEN, already configured. (refactor: extract MCP server into standalone repository #29 assumesMCP_REPO_TOKEN, which does not exist here.)-fsS: the reference snippet omits-f, so a 401 exits 0 and still prints✓ Triggered. With-fthe step goes red whilecontinue-on-errorkeeps the release green. Easy to drop.release.ymlwill not actually fire. It runs only on push tomain(1.4.49 vs develop's 1.4.291, untouched since May), and its last run skipped every publish step because the tag already existed. Added for symmetry and manual releases;generate.ymlis what notifies MCP in practice.generate.yml's publish steps still havecontinue-on-error: true, so a failed upload fires the dispatch anyway. refactor: extract MCP server into standalone repository #29 removes those two lines — needs to land there or as a follow-up.Validation
YAML parses; dispatch payload is valid JSON and passes the semver regex
sync-sdk.ymlenforces; referenced step ids/outputs exist; notify step sits after both publishes with a matching condition. Not yet run against the live pipeline.🤖 Generated with Claude Code