Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(images): remove the doc-generator-mcp image from the image system
Jose Ramirez35915ff04638
diff --git a/deploy/images.json b/deploy/images.jsonindex 7867ca263..2aae39a4b 100644--- a/deploy/images.json+++ b/deploy/images.json@@ -269,13 +269,6 @@"published": false,"deployed_to_minikube": true,"e2e_only": true- },- {- "name": "doc-generator-mcp",- "path": "mcp-servers/doc-generator",- "local_tag": "v1",- "published": false,- "deployed_to_minikube": false}]}diff --git a/mcp-servers/README.md b/mcp-servers/README.mdindex d467228b5..1fc697ccb 100644--- a/mcp-servers/README.md+++ b/mcp-servers/README.md@@ -14,10 +14,10 @@ This directory contains MCP server implementations, test suites, and Kubernetes| **[MongoDB](./mongodb/README.md)** | MongoDB integration for querying, aggregation, and schema inspection | StreamableHTTP | 3000 | Tested — dedicated unit-test suite || **[Web Search](./web-search/README.md)** | Brave Search API web/news search and page fetching (first-party source) | StreamableHTTP | 3000 | Available — no test suite yet || **[Playwright](./playwright/README.md)** | Browser automation via the upstream Microsoft Playwright MCP image | StreamableHTTP | 8931 | Available — no test suite yet |-| **[Doc Generator](./doc-generator/README.md)** | Markdown → print-ready HTML documents and Excel (.xlsx) generation (first-party source) | StreamableHTTP | 3000 | Available — no test suite yet |+| **[Doc Generator](./doc-generator/README.md)** | Markdown → print-ready HTML documents and Excel (.xlsx) generation (first-party source) | StreamableHTTP | 3000 | Source only — no image, no tests || **[Alpha Vantage](./alphavantage/README.md)** | Secret template only — no Dockerfile, source, or CRD yet | — | — | Experimental stub |-"Tested" refers to the unit-test suites under `__tests__/` in this package (see [Testing](#testing)); the servers marked "available" build and deploy but do not have test suites here yet. Web Search and Doc Generator ship no in-tree `mcpserver.yaml` — see their READMEs for how to deploy them.+"Tested" refers to the unit-test suites under `__tests__/` in this package (see [Testing](#testing)); the servers marked "available" build and deploy but do not have test suites here yet. Doc Generator is "source only" because nothing in this repo builds or publishes an image for it: it has no row in `deploy/images.json` and no publish-matrix entry, so running it means building its Dockerfile yourself. Web Search and Doc Generator ship no in-tree `mcpserver.yaml` — see their READMEs for how to deploy them.## Project Structurediff --git a/mcp-servers/doc-generator/README.md b/mcp-servers/doc-generator/README.mdindex 615930c07..baac03940 100644--- a/mcp-servers/doc-generator/README.md+++ b/mcp-servers/doc-generator/README.md@@ -27,9 +27,9 @@ No API keys or secrets are required.docker build -t doc-generator-mcp:latest .```-Multi-stage `node:24-alpine` build; runs as a non-root `mcp` user (uid 1001) that owns `/output`. Minikube setup neither builds nor pulls it: the evenfire registry distributes this connector and installs it on demand, writing the catalog entry's image reference straight into the `McpServer` resource, so no locally loaded `clerum/*` alias is involved. It is `deployed_to_minikube: false` in `deploy/images.json`.+Multi-stage `node:24-alpine` build; runs as a non-root `mcp` user (uid 1001) that owns `/output`. That command is the only way this image comes into being: build it yourself and push it wherever your cluster pulls from.-It is also not in the `.github/workflows/build-publish.yml` publish matrix (`published: false`), so nothing pushes it anywhere. That is a known gap, not the intended end state: a registry-distributed connector has to be published somewhere the kubelet can pull it from.+This image is not part of the repo's image system. It has no row in `deploy/images.json`, no entry in the `.github/workflows/build-publish.yml` publish matrix, and no `ghcr.io/evenfire-ai/doc-generator-mcp` to pull — nothing ever pushed one. Minikube setup neither builds it nor pulls it. Its sibling MCP servers (`airtable-mcp-server`, `web-search-mcp`, `playwright-server`) are published to ghcr, which is what lets the evenfire registry install them on demand; this one was never published, so the row was removed rather than left pointing at an image obtainable nowhere.## Deployment@@ -37,4 +37,4 @@ This directory has no `mcpserver.yaml` or NetworkPolicy — there is no ready-ma## Status-Available; type-checked by `scripts/build-preflight.sh`. Minikube setup does not build or pull the image. No test suite yet (unlike `airtable/` and `mongodb/`) and not yet referenced by user-facing docs.+Source only. The workspace package (`@clerum/doc-generator-mcp`) is type-checked by `scripts/build-preflight.sh` and formatted through `scripts/prettier/paths.mjs`, but no image is built, published, or deployed from it. No test suite yet (unlike `airtable/` and `mongodb/`) and not yet referenced by user-facing docs.diff --git a/mcp-servers/doc-generator/package-lock.json b/mcp-servers/doc-generator/package-lock.jsonindex 1ce69afcb..44ce601ae 100644--- a/mcp-servers/doc-generator/package-lock.json+++ b/mcp-servers/doc-generator/package-lock.json@@ -1,12 +1,12 @@{"name": "@clerum/doc-generator-mcp",- "version": "1.0.6",+ "version": "1.0.7","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@clerum/doc-generator-mcp",- "version": "1.0.6",+ "version": "1.0.7","dependencies": {"@modelcontextprotocol/sdk": "^1.29.0","exceljs": "^4.4.0",diff --git a/mcp-servers/doc-generator/package.json b/mcp-servers/doc-generator/package.jsonindex 3116a65c7..50abd6a8e 100644--- a/mcp-servers/doc-generator/package.json+++ b/mcp-servers/doc-generator/package.json@@ -1,6 +1,6 @@{"name": "@clerum/doc-generator-mcp",- "version": "1.0.6",+ "version": "1.0.7","type": "module","main": "dist/index.js","scripts": {diff --git a/mcp-servers/package-lock.json b/mcp-servers/package-lock.jsonindex de8c21cd5..b0b589bb8 100644--- a/mcp-servers/package-lock.json+++ b/mcp-servers/package-lock.json@@ -1,12 +1,12 @@{"name": "@clerum/mcp-servers",- "version": "1.0.7",+ "version": "1.0.8","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@clerum/mcp-servers",- "version": "1.0.7",+ "version": "1.0.8","dependencies": {"js-yaml": "^4.1.1"},diff --git a/mcp-servers/package.json b/mcp-servers/package.jsonindex 7be36056c..a044ec5e4 100644--- a/mcp-servers/package.json+++ b/mcp-servers/package.json@@ -1,6 +1,6 @@{"name": "@clerum/mcp-servers",- "version": "1.0.7",+ "version": "1.0.8","description": "MCP servers for Clerum testing","type": "module","main": "index.ts",diff --git a/scripts/minikube/build-images.sh b/scripts/minikube/build-images.shindex f05e964c6..178bd26d3 100755--- a/scripts/minikube/build-images.sh+++ b/scripts/minikube/build-images.sh@@ -424,8 +424,8 @@ fi# MINIKUBE_SEED_PROFILE=e2e, and in local mode, where a full build builds every# fixture.#-# The registry-distributed MCP servers (airtable-mcp-server, web-search-mcp,-# doc-generator-mcp) are absent from this set entirely, because they are+# The registry-distributed MCP servers (airtable-mcp-server, web-search-mcp)+# are absent from this set entirely, because they are# deployed_to_minikube:false -- minikube setup neither builds nor pulls them,# so demanding them would fail every cluster. airtable-mcp-server is an opt-in# local build (MINIKUBE_BUILD_AIRTABLE_MCP_IMAGE) for the SEED_PROFILE=e2e demodiff --git a/scripts/minikube/full-setup.sh b/scripts/minikube/full-setup.shindex 9db8b3668..71196709a 100755--- a/scripts/minikube/full-setup.sh+++ b/scripts/minikube/full-setup.sh@@ -769,11 +769,9 @@ elif [ "$IMAGE_SOURCE" = ghcr ]; thenok "Public base images loaded"# No local build runs on this path any more. The published:false images- # (workflow-custom-sdk-e2e, workflow-plugin-sdk-e2e, doc-generator-mcp) have- # no ghcr counterpart, and all three are now built only by the path that- # actually needs them: the two fixtures by `make minikube-setup-e2e`, and- # doc-generator-mcp by nothing at all -- the registry distributes it and- # installs it on demand, so no cluster manifest names its local ref.+ # (workflow-custom-sdk-e2e, workflow-plugin-sdk-e2e) have no ghcr+ # counterpart, and both are now built only by the path that actually needs+ # them: `make minikube-setup-e2e`.log "Pulling published images (${EFFECTIVE_IMAGE_TAG}) into minikube..."# `${MINIKUBE_MULTI_NODE:-false}`, not `$MINIKUBE_MULTI_NODE`: this scriptdiff --git a/scripts/minikube/pre-gate-incremental.sh b/scripts/minikube/pre-gate-incremental.shindex ebe810f36..fb3cf94f6 100755--- a/scripts/minikube/pre-gate-incremental.sh+++ b/scripts/minikube/pre-gate-incremental.sh@@ -304,10 +304,9 @@ incremental_shadow_selector() {while IFS="$(printf '\t')" read -r name local_ref shadow_ref; do[[ -n "${name}" ]] || continueif [[ "${shadow_ref}" == "-" ]]; then- # published:false images (the two E2E fixtures; doc-generator-mcp, which- # nothing acquires any more) run under their clerum/* ref in BOTH modes,- # so the local build is already the running image and there is nothing to- # shadow.+ # published:false images (the two E2E fixtures) run under their clerum/*+ # ref in BOTH modes, so the local build is already the running image and+ # there is nothing to shadow.log " ${local_ref} has no published counterpart; the local build is what runs"continuefidiff --git a/scripts/tests/test-images-manifest.sh b/scripts/tests/test-images-manifest.shindex 749b243d4..abb7ea476 100755--- a/scripts/tests/test-images-manifest.sh+++ b/scripts/tests/test-images-manifest.sh@@ -202,17 +202,19 @@ JSONrm -rf "$d"}-assert_unpublished_images_are_exactly_the_known_three() {+assert_unpublished_images_are_exactly_the_known_two() {local gotgot="$(node -e 'import("'"$REPO_ROOT"'/scripts/release/images-manifest.mjs").then(m =>console.log(m.IMAGES.filter(i=>!i.published).map(i=>i.name).sort().join(",")))' 2>/dev/null)"- # Verified by anonymous ghcr probe: these three return `denied`. playwright-server+ # Verified by anonymous ghcr probe: these two return `denied`. playwright-server# IS published (an earlier draft wrongly listed it as a gap; the probe that said- # otherwise was missing its Accept header).- local want="doc-generator-mcp,workflow-custom-sdk-e2e,workflow-plugin-sdk-e2e"+ # otherwise was missing its Accept header). doc-generator-mcp used to be the+ # third; it has no manifest row at all now (see+ # assert_doc_generator_mcp_has_been_removed_from_the_image_system).+ local want="workflow-custom-sdk-e2e,workflow-plugin-sdk-e2e"if [ "$got" = "$want" ]; then- pass "the unpublished set is exactly the known three"+ pass "the unpublished set is exactly the known two"elsefail "unpublished set is '$got', expected '$want'"fi@@ -586,9 +588,8 @@ assert_the_verify_set_splits_on_published_not_on_mode() {# default path fails a healthy cluster with a remedy that can never work.## doc-generator-mcp used to be the one exception -- unpublished but built on-# both paths. It is deployed_to_minikube:false now (the registry distributes it-# and installs it on demand), so it is not in the verify set at all rather than-# being in it under a local ref.+# both paths. It has no manifest row at all now (never published, so no cluster+# could ever acquire it), so it is not in the verify set in any mode.## The expected refs are spelled out rather than re-derived from the manifest:# a test that recomputes minikubeVerifyRefs()'s own rule proves nothing.@@ -642,7 +643,7 @@ assert_registry_distributed_mcp_servers_are_out_of_the_minikube_set() {local output rcoutput="$(node -e 'import("'"$REPO_ROOT"'/scripts/release/images-manifest.mjs").then(m => {- const registryServed = ["airtable-mcp-server", "web-search-mcp", "doc-generator-mcp"]+ const registryServed = ["airtable-mcp-server", "web-search-mcp"]const problems = []const byName = new Map(m.IMAGES.map(i => [i.name, i]))const ghcrNames = new Set(m.pullInGhcrMode().map(i => i.name))@@ -680,13 +681,15 @@ assert_registry_distributed_mcp_servers_are_out_of_the_minikube_set() {}# The other half of the pair above, and the reason it cannot simply assert-# "these three are absent from deploy/images.json". Dropping the rows would stop+# "these two are absent from deploy/images.json". Dropping the rows would stop# publishing them, and the registry serves these images from ghcr -- so the rows# must stay, with published untouched.#-# doc-generator-mcp is published:false today. That is a known, separate gap-# (the registry cannot serve an image that is never pushed) and is pinned here-# as the current state rather than silently fixed by this case.+# doc-generator-mcp was the third name here, pinned as published:false. That+# combination was unserveable -- the registry cannot install an image no one+# pushes -- so the image was removed from the system outright instead of being+# published; assert_doc_generator_mcp_has_been_removed_from_the_image_system+# holds that.assert_registry_distributed_mcp_servers_keep_their_published_flag() {local output rcoutput="$(node -e '@@ -694,7 +697,6 @@ assert_registry_distributed_mcp_servers_keep_their_published_flag() {const expected = new Map([["airtable-mcp-server", true],["web-search-mcp", true],- ["doc-generator-mcp", false],])const problems = []const byName = new Map(m.IMAGES.map(i => [i.name, i]))@@ -721,12 +723,82 @@ assert_registry_distributed_mcp_servers_keep_their_published_flag() {if [ "$rc" -ne 0 ]; thenfail "published-flag derivation failed: $output"elif [ -z "$output" ]; then- pass "the registry-distributed MCP servers keep publishing (doc-generator-mcp still the known false)"+ pass "the registry-distributed MCP servers keep publishing"elsefail "$output"fi}+# THE REGRESSION GUARD for the removal. doc-generator-mcp was published:false+# AND deployed_to_minikube:false: nothing built it, nothing pulled it, and+# ghcr.io/evenfire-ai/doc-generator-mcp answers 403 because it was never+# pushed. An image obtainable nowhere is not a gap to publish, it is a row to+# delete -- so the row is gone, and every set derived from it must stay empty+# of the name.+#+# Asserted against the derived sets by NAME rather than by re-deriving the+# absence rule, and across every consumer at once: the missing row fans out to+# the build matrix, the puller, the ghcr overlay component, and all three+# verify modes, and a check on IMAGES alone would not notice a name+# reintroduced further down the chain.+#+# The source directory mcp-servers/doc-generator deliberately survives: it is+# an npm workspace package (@clerum/doc-generator-mcp) that scripts/build-+# preflight.sh type-checks and scripts/prettier/paths.mjs formats. This case is+# about the IMAGE, so it must not grow an assertion about the tree.+assert_doc_generator_mcp_has_been_removed_from_the_image_system() {+ local output rc+ output="$(node -e '+ import("'"$REPO_ROOT"'/scripts/release/images-manifest.mjs").then(async m => {+ const fs = await import("node:fs")+ const gone = "doc-generator-mcp"+ const problems = []+ if (m.IMAGES.some(i => i.name === gone)) problems.push("still has a row in deploy/images.json")+ if (m.publishedImages().some(i => i.name === gone)) problems.push("still in publishedImages()")+ if (m.pullInGhcrMode().some(i => i.name === gone)) problems.push("still in pullInGhcrMode()")+ const modes = [+ ["ghcr", m.minikubeVerifyRefs({ mode: "ghcr", tag: "vTEST" })],+ ["local", m.minikubeVerifyRefs({ mode: "local" })],+ ["ghcr+e2e", m.minikubeVerifyRefs({ mode: "ghcr", tag: "vTEST", includeE2eFixtures: true })],+ ]+ for (const [label, refs] of modes) {+ if (refs.some(r => r.includes(gone))) problems.push(`still verified in ${label} mode`)+ }+ // The two hand-written lists the manifest does not generate. Read rather+ // than derived, because a stale entry in either is exactly what a+ // manifest-only check cannot see.+ const wf = fs.readFileSync("'"$REPO_ROOT"'/.github/workflows/build-publish.yml", "utf8")+ if (wf.includes(gone)) problems.push("still named in the build-publish.yml matrix")+ const sh = fs.readFileSync("'"$REPO_ROOT"'/scripts/minikube/build-images.sh", "utf8")+ const block = sh.match(/ALL_IMAGES=\(([\s\S]*?)\n\)/)+ if (!block) {+ console.log("PARSE_ERROR: could not find the ALL_IMAGES=(...) array in build-images.sh")+ process.exit(1)+ }+ const refs = [+ ...[...block[1].matchAll(/"([^"]+)"/g)].map(x => x[1]),+ ...[...sh.matchAll(/ALL_IMAGES\+=\("([^"]+)"\)/g)].map(x => x[1]),+ ]+ if (refs.some(r => r.includes(gone))) problems.push("still built by build-images.sh")+ const overlay = fs.readFileSync("'"$REPO_ROOT"'/deploy/overlays/minikube/kustomization.yaml", "utf8")+ if (overlay.includes(gone)) problems.push("still named in the minikube overlay")+ const component = fs.readFileSync("'"$REPO_ROOT"'/deploy/components/ghcr-images/kustomization.yaml", "utf8")+ if (component.includes(gone)) problems.push("still named in the ghcr-images component")+ console.log(problems.join("; "))+ }).catch(err => {+ console.log(`PARSE_ERROR: ${err.message}`)+ process.exit(1)+ })' 2>&1)"+ rc=$?+ if [ "$rc" -ne 0 ]; then+ fail "doc-generator-mcp removal check failed: $output"+ elif [ -z "$output" ]; then+ pass "doc-generator-mcp is gone from the manifest and every derived set"+ else+ fail "doc-generator-mcp: $output"+ fi+}+# The exclusion is an opt-out, not a deletion. `make minikube-setup-e2e` builds# both fixtures, and a full LOCAL build builds every fixture unconditionally --# origin/dev verified them, and dropping them there would lose real coverage.@@ -848,7 +920,7 @@ assert_every_local_image_maps_to_exactly_one_rowassert_pull_in_ghcr_mode_is_derived_not_storedassert_a_published_image_with_no_source_paths_is_rejectedassert_an_invalid_image_name_is_rejected-assert_unpublished_images_are_exactly_the_known_three+assert_unpublished_images_are_exactly_the_known_twoassert_matrix_fields_match_manifestassert_every_matrix_image_has_a_manifest_rowassert_source_paths_match_filters@@ -857,6 +929,7 @@ assert_the_verify_set_splits_on_published_not_on_modeassert_the_default_ghcr_verify_set_omits_only_the_e2e_fixturesassert_registry_distributed_mcp_servers_are_out_of_the_minikube_setassert_registry_distributed_mcp_servers_keep_their_published_flag+assert_doc_generator_mcp_has_been_removed_from_the_image_systemassert_the_e2e_opt_in_and_local_mode_both_keep_the_fixturesassert_verify_refs_refuses_a_mode_or_tag_it_cannot_serveassert_e2e_only_images_are_unpublished_minikube_fixturesdiff --git a/scripts/tests/test-minikube-pull-images.sh b/scripts/tests/test-minikube-pull-images.shindex 34aaa915c..d2b512e97 100755--- a/scripts/tests/test-minikube-pull-images.sh+++ b/scripts/tests/test-minikube-pull-images.sh@@ -120,14 +120,14 @@ assert_it_pulls_every_pull_in_ghcr_mode_image() {rm -rf "$d"}-# The derivation guard at the consumer end. The three published:false images+# The derivation guard at the consumer end. The two published:false images# have no ghcr counterpart at all; pulling one fails with MANIFEST_UNKNOWN and# takes the whole default setup down with it.assert_it_never_pulls_an_unpublished_image() {local d out badd="$(mktemp -d)"out="$(run_puller "$d")"- bad="$(grep -E '^pull ghcr\.io/evenfire-ai/(workflow-custom-sdk-e2e|workflow-plugin-sdk-e2e|doc-generator-mcp):' "$d/ops.log" || true)"+ bad="$(grep -E '^pull ghcr\.io/evenfire-ai/(workflow-custom-sdk-e2e|workflow-plugin-sdk-e2e):' "$d/ops.log" || true)"if [ -z "$bad" ]; thenpass "no unpublished image was pulled"else@@ -238,11 +238,11 @@ assert_it_never_pulls_a_registry_distributed_mcp_server() {local d out bad aliasedd="$(mktemp -d)"out="$(run_puller "$d")"- bad="$(grep -E '^pull ghcr\.io/evenfire-ai/(airtable-mcp-server|web-search-mcp|doc-generator-mcp):' "$d/ops.log" || true)"+ bad="$(grep -E '^pull ghcr\.io/evenfire-ai/(airtable-mcp-server|web-search-mcp):' "$d/ops.log" || true)"# The alias is the other half: a `docker tag` onto clerum/airtable-mcp-server# would put the image in the daemon under the exact name the old McpServer# instance expects, hiding the removal from every consumer.- aliased="$(grep -E '^tag [^ ]+ clerum/(airtable-mcp-server|web-search-mcp|doc-generator-mcp):' "$d/ops.log" || true)"+ aliased="$(grep -E '^tag [^ ]+ clerum/(airtable-mcp-server|web-search-mcp):' "$d/ops.log" || true)"if [ -z "$bad" ] && [ -z "$aliased" ]; thenpass "no registry-distributed MCP server was pulled or aliased"elsediff --git a/scripts/tests/test-minikube-verify-images.sh b/scripts/tests/test-minikube-verify-images.shindex 6e1482ea4..081fb056e 100755--- a/scripts/tests/test-minikube-verify-images.sh+++ b/scripts/tests/test-minikube-verify-images.sh@@ -346,7 +346,7 @@ assert_an_only_build_carries_the_recorded_mode_forward() {## The daemon fixture is now `all_ghcr_refs` alone. It used to carry# clerum/doc-generator-mcp:v1 as well, because full-setup.sh built that one-# unpublished image before the pull; nothing builds it on this path any more.+# unpublished image before the pull; that image has no manifest row any more.assert_the_default_ghcr_verify_passes_without_the_e2e_fixtures() {local d out rc presentd="$(mktemp -d)"@@ -366,9 +366,14 @@ assert_the_default_ghcr_verify_passes_without_the_e2e_fixtures() {# The end-to-end half of the manifest guard, through the REAL script: a cluster# that correctly never acquired the registry-distributed MCP servers must-# verify CLEAN. If any of the three were still demanded, the daemon fixture-# above (which does not contain them) would make this rc!=0 -- so the run has to-# be green AND silent about all three, in every mode the verifier supports.+# verify CLEAN. If any of them were still demanded, the daemon fixture above+# (which does not contain them) would make this rc!=0 -- so the run has to be+# green AND silent about every one, in every mode the verifier supports.+#+# doc-generator-mcp was the third name here. It has no manifest row at all now,+# so there is nothing for this script to derive a ref from; its absence from+# every verify mode is asserted directly in test-images-manifest.sh+# (assert_doc_generator_mcp_has_been_removed_from_the_image_system).## rc is checked before the greps: "no mention of airtable" is also true of a# crashed run that printed nothing.@@ -394,7 +399,7 @@ assert_the_verify_set_never_demands_a_registry_distributed_mcp_server() {out="$(run_verify "$d" "$present")"; rc=$?;;esac- named="$(grep -E 'airtable-mcp-server|web-search-mcp|doc-generator-mcp' <<< "$out" || true)"+ named="$(grep -E 'airtable-mcp-server|web-search-mcp' <<< "$out" || true)"if [ "$rc" -eq 0 ] && [ -z "$named" ]; thenpass "the ${mode} verify set demands no registry-distributed MCP server"else