Publish @macula-io/mcp (and @macula-io/ts) on the forge npm registry; Martha installs it from there, no npmjs #4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (feature): a stranger installing Martha gets the macula MCP server without any byte coming from npmjs.org.
DECIDED 2026-11-24 "yes. we move off of Big Tech (and that includes npmjs)" (Raf). Builds on DECIDED 2026-11-24 "we will ONLY use our own package management on the forge" and "Public in macula-pub".
Today: Martha installs @macula-io/mcp 0.51.3 from its recorded lock, which resolves on registry.npmjs.org; its deps are @macula-io/ts, @modelcontextprotocol/sdk, qrcode, yaml, zod (all npmjs). macula-mcp has only GitHub workflows (ci.yml, release.yml); @macula-io/ts is not yet on the forge registry.
Done-when:
martha upon a clean user installs it with npmjs.org unreachable (proved by blocking it), and the members' mesh tools answer.Refs martha-ai/martha#149 (stranger install), macula-io/forge-setup#30.
Approach (Pluto, 2026-11-25)
State read before planning: macula-ts#3 and PR 3 (Ceres, parked) already carry the ts port to
macula-pub;macula-ci-nodeis on the registry (20261124-0508); both repositories carry their release tags (ts v0.33.0, mcp v0.51.3) buthttps://git.macula.io/api/packages/macula-pub/npm/@macula-io%2ftsanswers 404, so nothing has ever been published from the forge registry.Order, each step the next one's prerequisite:
macula-pub, which macula-mcp's bundle needs at build time.release.ymlto the forge in the same shape as the ts port: plain-shell checkout,macula-ci-nodeby digest, pinned local copies of release-guard and dependency-advisories,FORGE_PACKAGES_TOKEN/FORGE_PACKAGES_USERfrom the repo secret,publishConfignaming the macula-pub registry. AddbundleDependenciesfor@macula-io/ts,@modelcontextprotocol/sdk,qrcode,yaml,zod(linux-x64 only, per the Linux-only ruling) with a step that proves the packed tarball carries them and installs from it alone. Aworkflow_dispatchrehearsal runs every gate and stops atnpm publish --dry-run.record:mesh-tools) sosrc/prove_the_mesh_server_bytes/recorded_mesh_server_trees.jsonnames the forge registry and the bundled tarball's integrities, then prove a cleanmartha upwith npmjs.org unreachable and the members' mesh tools answering.Two things block a publish and are with the Supervisor, not with me:
/api/v1/users/sdk-publisheranswers 404), so no SDK repository carriesFORGE_PACKAGES_TOKEN/FORGE_PACKAGES_USERyet.image-build/sdk-publisher-account.shlanded (f911cd58, renamed 2c91eb61) and has never been run.has_actions: falseon the forge (macula-ts is on).The existing v0.51.3 and v0.33.0 tags cannot fire a publish here (their push events predate Actions, and a tag is never re-pushed), so the first publish from the forge is a new version and tag. Tags are each Raf's yes: my menu carries the two tags in the order they run, once a rehearsal is green on the exact tip.
The official MCP Registry listing: frozen, and why
The Supervisor's ruling, relayed by Mars today: accept the frozen
io.macula/macula-mcplisting on the official MCP Registry. No npmjs publish and no takedown.Basis, quoted as given:
So the ported
release.ymldrops the registry step rather than porting it: that registry lists packages it can read on npmjs.org, so a package published only to the forge cannot be listed there, and the listing stays at its last npmjs version. macula-portal's own text is where "aligned with reality" is carried.Credential: the account exists, the secret is not everywhere yet
Ran
image-build/sdk-publisher-account.sh(FORGE_GO, on the Supervisor's go) at 01:02Z. It createdsdk-publisher, thesdk-publishersteam, minted and PROVED the onewrite:packagetoken (push bearer for macula-pub/sdk-publisher-probe, blob upload started 202 and cancelled, GET /user 403), and setFORGE_PACKAGES_TOKENon macula-ts and macula-py. It then stopped dead on macula-dotnet, 404:Cause, read back: a repository with Actions off answers 404 to its own Actions secrets API.
has_actionstoday: ts true, py true, dotnet false, rust true, go true, php false, mcp true. Turning Actions on for dotnet/php now is not an option, since their workflows are still GitHub-shaped and would run red on every push.Filed as forge-setup#49 (the class, the instance, and the check) with the fix in forge-setup PR 50: the script splits
SDK_REPOSbyhas_actions, passes only the repositories that can hold the secret, and names the skipped ones in its own say line. The run to follow lands there, and its read-back goes here.The publisher account: run, read back, done
Re-ran
image-build/sdk-publisher-account.shfrom forge-setup maina4fb44a4(the strict-read fix) at 01:02:57Z. Exit 0, no token anywhere in the output:So: one account, one
write:packagetoken, the old 01:02Z token revoked only after the new one was set everywhere it can live, the secret and variable present on macula-ts and macula-mcp, and macula-dotnet and macula-php named as unable to hold a secret until their release ports land (their Actions are off; turning Actions on before a port would run their GitHub-shaped workflows red on every push).The gap that stopped the first run is forge-setup#49, fixed and landed in forge-setup#50 and #51: the script splits the list by
has_actions, dies on a read that fails or answers anything but true or false, and names the skipped repositories in its own say line.Follow-ups recorded, not in PR 5
Both are outside the change in macula-io/macula-mcp#5 (reviewed r=0 with no required items) and are recorded here so they are decisions, not memories:
npm cion the release path resolves the lock'sresolvedURLs, which areregistry.npmjs.org, including the npmjs-built@macula-io/ts0.32.1 (the one that carries five platforms and makes the tarball 25.7 MB). The consumer fetches nothing from npmjs (the tarball carries 124 bundled packages), but the build does. Once@macula-io/tsis published to the forge, this repository's dependency and lock move to it and the bundle shrinks to the linux-x64 prebuild the ruling names. The remaining third-party packages still come from npmjs at build time; whether that changes is a later decision, not this package's.ci.ymlis not ported. Its jobs are GitHub-shaped (marketplace actions, cross-repository reusables, Windows runners) and fail at workflow expansion on the forge, so a push to main fires a red run until that port lands; the Linux-only ruling also retires its Windows job. The build and suite that gate a release run on the release path in the portedrelease.yml.src/all_tool_descriptions.test.tscases went red in one full parallel run on the final tip and green on the rerun and when the file runs alone; the file setsprocess.envfor terse mode and other worker files' imports race it.The size question is answered in the PR body: Forgejo 15's npm limit is
-1(no limit, checked in the v15.0.12 source), its total-owner-size limit is-1, and Caddy caps a request body at 2 GB, so the 25.7 MB tarball needs no setting changed.The last step's blocker, measured, and what it needs (2026-11-25)
Recording any mcp release from 0.51.3 on refused. Three separate causes, found in this order; the third was only reachable once the first two were gone.
node_modules/ipaddr.js, a directory whose name ends in.js, and both code-file collectors read it as a file. Fixed in martha,9826e87f.dist/hold_node_identity.jstookenv = process.envas a parameter (nothing ever passed one) and readXDG_RUNTIME_DIRoff it, so the strict scan could not name the key. Fixed on macula-mcp PR 7 (e561b0e, version 0.51.6): the setting is read by its literal name, with a test.bundleDependencies, so its tarball carries 124 packages of third-party code. Eight of their files read the environment by a key no list can name (process.env[key]in the MCP SDK's stdio client,Object.keys(process.env)indebug,options.env || process.envincross-spawnandpath-key,process.env[name + '_PREBUILD']innode-gyp-build,pngjs,yargs-parser). No bundle carrying a common dependency can pass that rule. martha's own header states the intended rule, which the code was not following: the strict list is the settings the server's own code reads, and a dependency's computed-key read is listed, not refused. Fixed in martha,fcc89330(PR 165), with the server's own strict rule still pinned by a test and a negative mutant for each guard.The third cause is mine: it came in with the bundling this package added (
a55886b).Measured on the real 0.51.6 tarball (124 bundled dependencies): the package's own 82 code files pass the strict scan with exactly the 23 settings
known_settingsalready lists, and the bundle's only read of a started-with name isPATHinwhich, whichknown_environment_readsalready covers.What remains: tag 0.51.6 (Supervisor's menu, after release.yml 4112 is green and Mars's PASS on PR 7), publish to macula-pub, then in one reviewed martha commit re-record the tree from the forge registry and retire the npmjs-recorded 0.51.0/0.51.2 (the recording's
registryfield is global to the file), and provemartha upwith npmjs unreachable.Purpose met (Supervisor's ruling, 2026-11-25)
A stranger installs the macula MCP server from the forge, and no byte comes from npmjs.org. Measured today, with
registry.npmjs.orgunable to resolve or connect (a mount namespace with a doctored hosts, an empty resolver andhosts: files):npm install @macula-io/mcp@0.51.6against macula-pub says "added 1 package", and the server answers oneinitializeasmacula-mcp 0.51.6. The tarball carries all 124 production packages inside it.The Done-when lines
@macula-io/tson the forge, by tag and forge CI: met. 0.33.1, linux-x64, tagged on9d79632, release run 4024.@macula-io/mcpon the forge, by tag and forge CI, with its dependencies inside the tarball: met. 0.51.4 (run 4066), 0.51.5 (run 4097) and 0.51.6 (run 4137), each tagged on its own tip; all three installs fetch one package and nothing else.npm ci, and a bundled server produces neither (the 127 bundled entries name no registry, andnpm cifrom such a lock with only macula-pub reachable cannot resolvefast-urifor ajv). That is martha's own tree model, so the work belongs there, with the registry flip and the retirement of the npmjs-recorded 0.51.0/0.51.2.The recording in martha still names npmjs today; that is the open item, and it is martha#168's. The packages themselves, their releases and their installs are delivered.
Refs martha-ai/martha#168.