@usefillo/mcp 0.5.0 → 0.5.1
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 +11 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -533,14 +533,22 @@ function registerProvisionWorkspace(server) {
|
|
|
533
533
|
description: "Create an unclaimed preview Fillo workspace so you can take a form live during integration before the developer signs up. No credential needed, but an email is REQUIRED \u2014 Fillo emails the private claim link to that inbox (it is never returned here). Returns a `pk_` publishable key (safe for browser/public env such as NEXT_PUBLIC_FILLO_KEY) plus the caps: up to N responses and a hold window. The key is saved locally so fillo_push_form and fillo_claim_status can use it. Next: push a form with fillo_push_form, then tell the user to open the emailed link and sign in to claim the workspace before the hold expires. Rate limited to 5/hour per network and 3/hour per email; a repeat email returns a collision error \u2014 reuse the emailed link.",
|
|
534
534
|
inputSchema: {
|
|
535
535
|
email: z6.string().email().describe("Where Fillo emails the private claim link. Ask the developer for theirs."),
|
|
536
|
-
name: z6.string().optional().describe("The human's display name if known, e.g. from git config user.name")
|
|
536
|
+
name: z6.string().optional().describe("The human's display name if known, e.g. from git config user.name"),
|
|
537
|
+
promptCopyId: z6.string().uuid().optional().describe(
|
|
538
|
+
"Opaque marketing stitch id. Pass the `pc` query from /agents?pc= or the `--pc` value from the documented bootstrap command when present."
|
|
539
|
+
)
|
|
537
540
|
},
|
|
538
541
|
annotations: CREATE
|
|
539
542
|
},
|
|
540
|
-
async ({ email, name }) => {
|
|
543
|
+
async ({ email, name, promptCopyId }) => {
|
|
541
544
|
const res = await filloFetch("/api/v1/workspaces/provision", {
|
|
542
545
|
method: "POST",
|
|
543
|
-
body: {
|
|
546
|
+
body: {
|
|
547
|
+
email,
|
|
548
|
+
source: "mcp",
|
|
549
|
+
...name ? { name } : {},
|
|
550
|
+
...promptCopyId ? { promptCopyId } : {}
|
|
551
|
+
}
|
|
544
552
|
});
|
|
545
553
|
if (!res.ok || typeof res.json?.key !== "string") {
|
|
546
554
|
return fail(apiErrorMessage(res, "Couldn't provision a workspace"));
|
package/package.json
CHANGED