@bettercms-ai/mcp 0.25.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3306,6 +3306,13 @@ function buildToolDefs(deps) {
3306
3306
  z.object({}).shape,
3307
3307
  async (c) => ok("Conversion brief.", await data(c, "GET", `/management/projects/current/conversion-brief`))
3308
3308
  ),
3309
+ def(
3310
+ "get_conversion_plan",
3311
+ "Get the approved conversion to apply",
3312
+ "The APPROVED conversion a human reviewed in the BetterCMS dashboard: the exact new contents of each template file, already checked against this project's real field paths. Apply it instead of writing the bindings by hand. Check out `baseHeadOid` (the exact commit it was written against \u2014 a plan applied to a different base is a different change), branch from there, write each file's `content` verbatim (whole file, no merge, no reformatting), then push or deploy however this project ships. `stale.head` / `stale.brief` say the repository or the CMS moved since it was approved: stop and ask for a fresh proposal rather than applying it anyway. Finish the loop the same way as a hand conversion \u2014 get_binding_report until `unmatched` is empty, then set_binding_mode { declaredBindings: true } and release once more. 404 with `code: \"no-approved-plan\"` means nobody has approved one: use get_conversion_brief and do the conversion yourself. Requires a project-scoped connection carrying artifact:write.",
3313
+ z.object({}).shape,
3314
+ async (c) => ok("Approved conversion plan.", await data(c, "GET", `/management/projects/current/conversion-plan`))
3315
+ ),
3309
3316
  def(
3310
3317
  "get_analytics_overview",
3311
3318
  "Get traffic overview",
@@ -4314,6 +4321,13 @@ first: it lists those pages, their routes, every bindable path with its current
4314
4321
  value, and the attributes to declare. SKIP steps 3 and 4 below and bind the keys it names \u2014
4315
4322
  registering the schema again builds a second one over the first.
4316
4323
 
4324
+ **Or let BetterCMS propose the edit.** \`get_conversion_plan\` returns an APPROVED conversion \u2014 the
4325
+ exact new contents of each template file, reviewed by a human in the dashboard and already checked
4326
+ against this project's real field paths. When there is one, apply it instead of doing step 5 by
4327
+ hand: check out its \`baseHeadOid\`, branch from there, write each file's \`content\` verbatim, and
4328
+ carry on from step 6. A 404 with \`code: "no-approved-plan"\` means nobody approved one, so the
4329
+ conversion is yours to write.
4330
+
4317
4331
  **The steps.**
4318
4332
 
4319
4333
  1. \`pull_project_source\` (or clone the \`github\` remote it returns). Read the SOURCE. Never