Skip to content

build: mcp and serve release tooling is copy-pasted #473

Done

Description

@bpowers

simlin-mcp and simlin-serve ship through near-identical copies of the same release tooling: cross-build scripts, npm platform-package generators, release scripts, and release workflows (about 1,000 lines in total).
A fix to one copy has to be made by hand in the other.

What differs

  • The two build-npm-packages.sh files differ only in the package name.
  • scripts/release-mcp.sh and scripts/release-serve.sh differ by about 60 diff lines.
  • .github/workflows/mcp-release.yml and serve-release.yml differ by about 170 diff lines.
  • Legitimate differences: serve's image includes Node and pnpm because its build.rs builds the web UI, and serve's cross-build.sh copies the repo into the container with tar instead of mounting it read-only, since the frontend build writes into the workspace.

Fix

Parameterize the parts that differ only by name: one npm-package generator and one release script that take the package name, and one reusable release workflow called by two thin per-package workflows.
Leave the two Dockerfile.cross and cross-build.sh files separate; they differ for real reasons and a shared abstraction over them would cost more than the copy.

Pointers

  • src/simlin-mcp/, src/simlin-serve/ (build-npm-packages.sh, scripts/cross-build.sh, Dockerfile.cross)
  • scripts/release-mcp.sh, scripts/release-serve.sh
  • .github/workflows/mcp-release.yml, .github/workflows/serve-release.yml

Activity

  1. added
    ci
    hygiene
    on Jun 8, 2026
  2. changed the title [-]build: factor shared cross-build infrastructure between simlin-mcp and simlin-serve into scripts/lib/[/-] [+]build: mcp and serve release tooling is copy-pasted[/+] on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cihygiene

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions