Skip to content

ci: Trigger seam-mcp redeploy on docs changes#1103

Merged
chmaltsp merged 1 commit into
mainfrom
claude/trigger-mcp-redeploy
Apr 24, 2026
Merged

ci: Trigger seam-mcp redeploy on docs changes#1103
chmaltsp merged 1 commit into
mainfrom
claude/trigger-mcp-redeploy

Conversation

@chmaltsp

Copy link
Copy Markdown
Contributor

Summary

  • New workflow: .github/workflows/trigger-mcp-redeploy.yml
  • On every push to main (and on manual dispatch), mints a scoped GitHub App token and calls gh workflow run deploy.yml --repo seamapi/seam-mcp --ref main
  • That existing seam-mcp deploy.yml already rebuilds the OpenAI embedding index from this repo's docs and deploys the MCP server to Fly — so this closes the gap where docs-only changes never reached production search results

Why this design

  • No changes needed in seam-mcp: deploy.yml already exposes workflow_dispatch:, so we can trigger it directly without defining a repository_dispatch event type on both sides
  • Scoped App token (repositories: seam-mcp) instead of an org-wide token — minimal blast radius
  • cancel-in-progress: true on this workflow is safe because it only sends a dispatch; the receiving deploy.yml has its own cancel-in-progress: false concurrency group to keep Fly deploys serialized

Pre-merge check

The SEAM_CI_BOT GitHub App needs actions: write on seamapi/seam-mcp for the gh workflow run call to succeed. It already has contents: read there (used in the other direction by seam-mcp's deploy). If the first run 403s, broaden the App's permissions on seam-mcp and re-run.

Test plan

  • Merge this PR
  • Confirm the Trigger MCP Redeploy workflow runs on the merge commit to main and succeeds
  • Confirm a Deploy MCP Server run appears in seamapi/seam-mcp Actions shortly after, triggered by workflow_dispatch
  • Confirm Fly deploy completes and MCP search reflects latest docs content
  • If the dispatch step 403s, grant actions: write to SEAM_CI_BOT on seamapi/seam-mcp and re-run via workflow_dispatch

🤖 Generated with Claude Code

Adds a workflow that fires on push to main and dispatches the
seam-mcp deploy workflow via the SEAM_CI_BOT GitHub App. This
keeps the public MCP's embedding index in sync with docs changes
without requiring a separate nightly rebuild.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chmaltsp chmaltsp requested a review from a team as a code owner April 24, 2026 00:45
@chmaltsp chmaltsp merged commit b43a58b into main Apr 24, 2026
8 checks passed
@chmaltsp chmaltsp deleted the claude/trigger-mcp-redeploy branch April 24, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant