@usefillo/mcp 0.8.2 → 0.9.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/README.md +1 -0
- package/dist/index.js +29 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,6 +93,7 @@ the named scope. With both, the login token wins — a key has no acting human.
|
|
|
93
93
|
| Area | Tools | Scope |
|
|
94
94
|
| --- | --- | --- |
|
|
95
95
|
| Form lifecycle | `fillo_pull_form`, `fillo_rename_form`, `fillo_duplicate_form`, `fillo_unpublish_form`, `fillo_discard_changes`, `fillo_delete_form`, `fillo_list_versions` | `forms:read`, `forms:write` |
|
|
96
|
+
| Logo | `fillo_import_logo` — download a PNG, JPEG, or WebP from a public https URL; put the returned id in the theme's `logo` or `dark.logo` | `forms:write` |
|
|
96
97
|
| Uploads | `fillo_get_storage`, `fillo_set_storage`, `fillo_list_drive_folders`, `fillo_set_drive_folder`, `fillo_reset_drive_folder` | `storage:manage` |
|
|
97
98
|
| Settings | `fillo_get_settings`, `fillo_update_settings` | `settings:manage` (plus `forms:write` for the presentation keys) |
|
|
98
99
|
| Destinations | `fillo_get_integration`, `fillo_enable_integration`, `fillo_disable_integration`, `fillo_list_connections`, `fillo_select_connection`, `fillo_disconnect_integration`, `fillo_remove_connection_account`, `fillo_rename_discord_channel`, `fillo_hubspot_properties`, `fillo_hubspot_pipelines` | `integrations:manage` |
|
package/dist/index.js
CHANGED
|
@@ -388,6 +388,7 @@ function registerFormLifecycle(server) {
|
|
|
388
388
|
registerPullForm(server);
|
|
389
389
|
registerRenameForm(server);
|
|
390
390
|
registerDuplicateForm(server);
|
|
391
|
+
registerImportLogo(server);
|
|
391
392
|
registerUnpublishForm(server);
|
|
392
393
|
registerDiscardChanges(server);
|
|
393
394
|
registerDeleteForm(server);
|
|
@@ -532,6 +533,33 @@ function registerDuplicateForm(server) {
|
|
|
532
533
|
}
|
|
533
534
|
);
|
|
534
535
|
}
|
|
536
|
+
function registerImportLogo(server) {
|
|
537
|
+
server.registerTool(
|
|
538
|
+
"fillo_import_logo",
|
|
539
|
+
{
|
|
540
|
+
title: "Import a logo image",
|
|
541
|
+
description: "Download a PNG, JPEG, or WebP image (up to 512 KB, no SVG) from a public https URL into the workspace, for a form's logo on its hosted page. Returns an image id: set it as theme.logo (the light or only palette) or theme.dark.logo, then save the theme with fillo_push_form. Importing the same image again returns the same id. Needs forms:write.",
|
|
542
|
+
inputSchema: {
|
|
543
|
+
url: z4.string().trim().url().max(2048).describe("Public https URL of the image.")
|
|
544
|
+
},
|
|
545
|
+
annotations: CREATE
|
|
546
|
+
},
|
|
547
|
+
async ({ url }) => {
|
|
548
|
+
const call = await laneCall(
|
|
549
|
+
{ path: "/assets", method: "POST", body: { url } },
|
|
550
|
+
{ scope: "forms:write", fallback: "Couldn't import the image" }
|
|
551
|
+
);
|
|
552
|
+
if (!call.ok) return call.result;
|
|
553
|
+
const data = formBody(call.res.json);
|
|
554
|
+
const id = typeof data?.id === "string" ? data.id : void 0;
|
|
555
|
+
if (!id) return fail("Fillo accepted the image but returned no id. Try again.");
|
|
556
|
+
return ok(
|
|
557
|
+
`Imported the image as "${id}". Set theme.logo (or theme.dark.logo for dark mode) to that id and save the theme with fillo_push_form.`,
|
|
558
|
+
data
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
);
|
|
562
|
+
}
|
|
535
563
|
function registerUnpublishForm(server) {
|
|
536
564
|
server.registerTool(
|
|
537
565
|
"fillo_unpublish_form",
|
|
@@ -1682,7 +1710,7 @@ function registerPushForm(server) {
|
|
|
1682
1710
|
),
|
|
1683
1711
|
schema: z13.record(z13.string(), z13.unknown()).describe("The FormSchema object: title, pages (with blocks/fields), and settings."),
|
|
1684
1712
|
theme: z13.record(z13.string(), z13.unknown()).optional().describe(
|
|
1685
|
-
|
|
1713
|
+
'Optional theme: colorScheme, primary, background, text, radius, fontFamily, logo (an image id from fillo_import_logo), and dark ({ primary, background, text, logo }) \u2014 the dark-mode palette used when colorScheme is omitted or "auto". A custom background without dark colors keeps the form in that one scheme; give both palettes to follow light and dark.'
|
|
1686
1714
|
),
|
|
1687
1715
|
storage: z13.enum(["gdrive", "box", "s3", "r2"]).optional().describe("Optional exact storage destination. Required with purpose=file_request."),
|
|
1688
1716
|
purpose: z13.literal("file_request").optional().describe("Preserve the file-request upload invariant and setup journey."),
|
package/package.json
CHANGED