verse4verse.org splash site and V4V CMS¶
Public splash at https://verse4verse.org: ASP.NET Core Razor Pages + htmx (src/Verse4Verse.Site), on Cloud Run
(verse4verse-prod, us-central1, service verse4verse-site). Editable copy lives in V4V CMS, the same shape as
WorkWingman's WingCMS: one JSON file, edited by a CLI or MCP server, published to a GCS bucket the site mounts.
| Piece | Path | What it does |
|---|---|---|
| Content model + validation | src/Verse4Verse.Content |
Schema, validator, dotted-path editor, atomic save, gcloud storage cp publish |
| Seed content | src/Verse4Verse.Site/Content/site-content.json |
Baked into the image; the site boots from it |
| Site read path | src/Verse4Verse.Site/SiteContentProvider.cs |
Polls $V4VCMS_CONTENT_DIR/site-content.json (bucket mount) every 5 s; keeps last-good on a bad publish |
| CLI | tools/V4vCms.Cli (v4vcms) |
list, get, set, set-json, append, remove-index, validate, publish |
| MCP server | tools/V4vCms.Mcp (v4vcms-mcp, stdio) |
v4vcms_list/get/set/set_json/append/remove_index/validate/publish |
Content is plain text only; every page HTML-encodes it. Validation refuses unknown keys, blank or oversized text,
control characters, bad email, duplicate codes, and any edit that removes or rewords the Bible Brain notices
(© Bible Society of the West Indies for JAMBSW, © 1992 Bible Society in Sierra Leone for KRIBSL).
Edit and publish¶
dotnet run --project tools/V4vCms.Cli -- get hero.tagline
dotnet run --project tools/V4vCms.Cli -- set hero.tagline "Hear the verse. Live the Word."
dotnet run --project tools/V4vCms.Cli -- set about.paragraphs[0] @paragraph.txt # @file keeps non-ASCII intact
dotnet run --project tools/V4vCms.Cli -- publish # gs://verse4verse-site-content/site-content.json
Edits change the repo seed (commit them so the next image carries them); publish makes them live within ~5 s
without a deploy. Publishing uses your ambient gcloud login (andrewjonesdev1@gmail.com).
MCP registration (Claude Code)¶
"v4vcms": {
"type": "stdio",
"command": "dotnet",
"args": ["<repo>/tools/V4vCms.Mcp/bin/Release/net10.0/v4vcms-mcp.dll"],
"env": { "V4VCMS_CONTENT": "<repo>/src/Verse4Verse.Site/Content/site-content.json" }
}
Build and deploy¶
gcloud builds submit --project verse4verse-prod --config src/Verse4Verse.Site/cloudbuild.yaml --substitutions=_TAG=<tag> .
gcloud run deploy verse4verse-site --project verse4verse-prod --region us-central1 `
--image us-central1-docker.pkg.dev/verse4verse-prod/site/verse4verse-site:<tag> `
--add-volume name=content,type=cloud-storage,bucket=verse4verse-site-content,readonly=true `
--add-volume-mount volume=content,mount-path=/mnt/content --set-env-vars V4VCMS_CONTENT_DIR=/mnt/content
The apex is served by a Cloudflare Worker that proxies to the run.app URL (see FLT-281 notes).