martha#191: a crew that declares a mesh starts with .mcp.json pinning the recorded mesh server #323
Loading…
Reference in a new issue
No description provided.
Delete branch "neptunus/191-init-mcp-json"
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?
Refs #191. Based on main
2f59758b.martha initnow writes.mcp.jsonbeside the other starter files when the declaration has ameshblock. It pins the newest recorded@macula-io/mcpby version and bin, in the shape.mcp.json's server check accepts. The launch then places it from its recorded tree and hands itMACULA_MESH_STATIONSand, for a realm written by its name,MACULA_MESH_REALMSwith the kept key (#158). Nothing in the launch changed..mcp.jsonthe owner already has is left exactly as it is.martha configwrites the same file after a save that declares a mesh, when none is there.aPinOfTheMeshServer, which the engine member's mesh server (#181) now uses too, so the pin is no longer written in two places.docs/getting-started.mdsays what the file is.Tests:
the_files_a_crew_starts_with.node-test.ts: a fresh crew with a mesh (the pin, the launch's server check passes, the stations and realm key handed); no mesh, no file; a crew whose own file already pins the server keeps it byte for byte and is handed the mesh; no recorded server.the_crew_editor_acts.node-test.ts: amartha configsave, with and without a mesh, and with a file already there.meshServerEnvironments, which only reads the config.Proof:
npm run verify0;npm testthrough run_the_tests_in_a_namespace_of_their_own.sh: 5874 tests, 0 fail (installer job 169/169);Not done here: an owner's existing
.mcp.jsonthat pins no mesh server is left as it is, so its members still have no mesh server. Init says it left the file.CI coordinator: round r=1: dispatched ci.yml on
7a0eee060d, run 6025 (base2f59758b26).CI coordinator: round r=1: dispatched suite.yml on
7a0eee060d, run 6026 (base2f59758b26).CI coordinator: round r=1: dispatched c4-model.yml on
7a0eee060d, run 6027 (base2f59758b26).CI coordinator: round r=1: dispatched standalone.yml on
7a0eee060d, run 6028 (base2f59758b26).