@usefillo/mcp 0.8.1 → 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 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` |
@@ -107,9 +108,8 @@ the named scope. With both, the login token wins — a key has no acting human.
107
108
  login token — there is no project-API-key route for them, so a leaked key can
108
109
  never enumerate or revoke the workspace's credentials or read its plan.
109
110
  `fillo_get_billing` is read-only: it reports the plan and this month's usage and
110
- returns the Settings link, but no tool can subscribe, change the plan, start a
111
- trial, or open checkout — an owner or admin does that in Settings → Billing &
112
- plan. `fillo_delete_response` needs one too, for a
111
+ returns the Settings link, but no tool can subscribe, change the plan, or open
112
+ checkout — an owner or admin does that in Settings → Billing & plan. `fillo_delete_response` needs one too, for a
113
113
  different reason: its scoped route takes no typed confirmation, so on a project
114
114
  API key the confirmation would be checked only by the caller, which is no
115
115
  confirmation at all.
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
- "Optional theme tokens (colorScheme, primary, background, text, radius, fontFamily)."
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."),
@@ -2696,7 +2724,7 @@ function registerGetBilling(server) {
2696
2724
  "fillo_get_billing",
2697
2725
  {
2698
2726
  title: "Read the workspace's plan and usage",
2699
- description: "Report the workspace's plan (Free, trial, complimentary, or an Everything volume and billing period), this month's response count against its allowance, recent monthly usage, and the Settings link where an owner or admin changes the plan. Read-only: no tool can subscribe, change the plan, start a trial, or open checkout \u2014 report the numbers and hand the human manageUrl. Needs a LOGIN TOKEN \u2014 billing has no project-API-key route.",
2727
+ description: "Report the workspace's plan (Free, complimentary, or an Everything volume and billing period), this month's response count against its allowance, recent monthly usage, and the Settings link where an owner or admin changes the plan. Read-only: no tool can subscribe, change the plan, or open checkout \u2014 report the numbers and hand the human manageUrl. Needs a LOGIN TOKEN \u2014 billing has no project-API-key route.",
2700
2728
  inputSchema: {},
2701
2729
  annotations: READ_ONLY
2702
2730
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usefillo/mcp",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "mcpName": "io.github.jacobfunch/usefillo",
5
5
  "description": "Fillo MCP server — provision, scaffold, publish, and query forms from your coding agent.",
6
6
  "license": "MIT",