@charisol/plexo-mcp 1.0.16 → 1.0.17
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/appToolDefs.js +57 -0
- package/package.json +1 -1
- package/src/appToolDefs.ts +57 -0
package/dist/appToolDefs.js
CHANGED
|
@@ -349,6 +349,63 @@ exports.APP_TOOL_DEFS = [
|
|
|
349
349
|
]
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
|
+
{
|
|
353
|
+
"name": "app_design_describe",
|
|
354
|
+
"description": "Reads the app's visually designed pages (the Design tab, src/plexo-canvas): for each page its slug, name, address and its sections in order (id, kind, layout, a few words of what it says), plus the brand (colours, fonts, corners) and the catalog of every section kind with its layouts and the fields you can fill in, and the ready-made page templates. Call this before app_design_edit, and again after you change a page if you need fresh section ids. Pages marked codeEdited were changed in code — edit those with app_edit_file, not app_design_edit.",
|
|
355
|
+
"inputSchema": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"properties": {
|
|
358
|
+
"appId": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"description": "The app's id (from create_app or list_apps)."
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"required": [
|
|
364
|
+
"appId"
|
|
365
|
+
]
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "app_design_edit",
|
|
370
|
+
"description": "Changes designed pages section by section — the right way to edit a page built in the Design tab, instead of editing its generated .tsx. Pass commands, each one of: {op:\"addSection\", pageId, kind, variant?, content?, style?, afterSectionId? | index?} · {op:\"updateSection\", sectionId, content?, variant?, style?} · {op:\"removeSection\", sectionId} · {op:\"moveSection\", sectionId, index? | afterSectionId?} · {op:\"duplicateSection\", sectionId} · {op:\"setBrand\", tokens:{primaryColor?, secondaryColor?, headingFont?, bodyFont?, neutrals? (cool|warm|dark), roundness? (sharp|soft|round)}} · {op:\"addPage\", name, templateId?} (templateId from the catalog: home, landing, about, services, contact, pricing, blank — gives a complete, filled-in page) · {op:\"renamePage\", pageId, name}. pageId is the page's slug from app_design_describe; sectionId is a section id from it. Content keys are the field paths from the catalog (\"headline\", \"items.0.title\"); a list field needs the whole list; write real copy for the business. Each command is checked on its own — good ones are saved, bad ones come back with a plain-English reason, so read results. slug (optional) is the page you're working on: an addSection without a pageId goes there. A page that was edited in code is not changed (the reply says so); only pass overwrite: true if the owner chose to replace their code edits. Saving regenerates the page's React code and its route. Run app_build afterwards, then app_screenshot.",
|
|
371
|
+
"inputSchema": {
|
|
372
|
+
"type": "object",
|
|
373
|
+
"properties": {
|
|
374
|
+
"appId": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"description": "The app's id (from create_app or list_apps)."
|
|
377
|
+
},
|
|
378
|
+
"slug": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"description": "The designed page being edited (from app_design_describe)."
|
|
381
|
+
},
|
|
382
|
+
"commands": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"maxItems": 40,
|
|
385
|
+
"items": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"op": {
|
|
389
|
+
"type": "string"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"required": [
|
|
393
|
+
"op"
|
|
394
|
+
],
|
|
395
|
+
"additionalProperties": true
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"overwrite": {
|
|
399
|
+
"type": "boolean",
|
|
400
|
+
"description": "Replace hand edits made to the page's code. Only when the owner asked for it."
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"required": [
|
|
404
|
+
"appId",
|
|
405
|
+
"commands"
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
},
|
|
352
409
|
{
|
|
353
410
|
"name": "app_publish",
|
|
354
411
|
"description": "Publishes the app: a clean release build, then the live database gets new migrations, server functions are deployed, and the live site switches over. The first publish gives it an address (subdomain picked from the app's name unless given). Only after the preview builds cleanly and the owner wants it live.",
|
package/package.json
CHANGED
package/src/appToolDefs.ts
CHANGED
|
@@ -346,6 +346,63 @@ export const APP_TOOL_DEFS = [
|
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
|
+
{
|
|
350
|
+
"name": "app_design_describe",
|
|
351
|
+
"description": "Reads the app's visually designed pages (the Design tab, src/plexo-canvas): for each page its slug, name, address and its sections in order (id, kind, layout, a few words of what it says), plus the brand (colours, fonts, corners) and the catalog of every section kind with its layouts and the fields you can fill in, and the ready-made page templates. Call this before app_design_edit, and again after you change a page if you need fresh section ids. Pages marked codeEdited were changed in code — edit those with app_edit_file, not app_design_edit.",
|
|
352
|
+
"inputSchema": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"appId": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"description": "The app's id (from create_app or list_apps)."
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"required": [
|
|
361
|
+
"appId"
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "app_design_edit",
|
|
367
|
+
"description": "Changes designed pages section by section — the right way to edit a page built in the Design tab, instead of editing its generated .tsx. Pass commands, each one of: {op:\"addSection\", pageId, kind, variant?, content?, style?, afterSectionId? | index?} · {op:\"updateSection\", sectionId, content?, variant?, style?} · {op:\"removeSection\", sectionId} · {op:\"moveSection\", sectionId, index? | afterSectionId?} · {op:\"duplicateSection\", sectionId} · {op:\"setBrand\", tokens:{primaryColor?, secondaryColor?, headingFont?, bodyFont?, neutrals? (cool|warm|dark), roundness? (sharp|soft|round)}} · {op:\"addPage\", name, templateId?} (templateId from the catalog: home, landing, about, services, contact, pricing, blank — gives a complete, filled-in page) · {op:\"renamePage\", pageId, name}. pageId is the page's slug from app_design_describe; sectionId is a section id from it. Content keys are the field paths from the catalog (\"headline\", \"items.0.title\"); a list field needs the whole list; write real copy for the business. Each command is checked on its own — good ones are saved, bad ones come back with a plain-English reason, so read results. slug (optional) is the page you're working on: an addSection without a pageId goes there. A page that was edited in code is not changed (the reply says so); only pass overwrite: true if the owner chose to replace their code edits. Saving regenerates the page's React code and its route. Run app_build afterwards, then app_screenshot.",
|
|
368
|
+
"inputSchema": {
|
|
369
|
+
"type": "object",
|
|
370
|
+
"properties": {
|
|
371
|
+
"appId": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "The app's id (from create_app or list_apps)."
|
|
374
|
+
},
|
|
375
|
+
"slug": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"description": "The designed page being edited (from app_design_describe)."
|
|
378
|
+
},
|
|
379
|
+
"commands": {
|
|
380
|
+
"type": "array",
|
|
381
|
+
"maxItems": 40,
|
|
382
|
+
"items": {
|
|
383
|
+
"type": "object",
|
|
384
|
+
"properties": {
|
|
385
|
+
"op": {
|
|
386
|
+
"type": "string"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"required": [
|
|
390
|
+
"op"
|
|
391
|
+
],
|
|
392
|
+
"additionalProperties": true
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"overwrite": {
|
|
396
|
+
"type": "boolean",
|
|
397
|
+
"description": "Replace hand edits made to the page's code. Only when the owner asked for it."
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"required": [
|
|
401
|
+
"appId",
|
|
402
|
+
"commands"
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
},
|
|
349
406
|
{
|
|
350
407
|
"name": "app_publish",
|
|
351
408
|
"description": "Publishes the app: a clean release build, then the live database gets new migrations, server functions are deployed, and the live site switches over. The first publish gives it an address (subdomain picked from the app's name unless given). Only after the preview builds cleanly and the owner wants it live.",
|