set_custom_domain
Configure a custom domain for QR code short URLs to replace default links with branded ones. Requires Pro plan and DNS CNAME setup.
Instructions
Set a custom domain for your QR code short URLs (Pro plan required). When set, all new QR codes will use https://your-domain.com/r/... instead of the default URL. You must configure DNS (CNAME) to point to the QR Agent server. Pass domain=null to remove the custom domain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Your custom domain without protocol (e.g. 'qr.mybrand.com'). Pass null to remove. |
Implementation Reference
- packages/mcp/src/tools.ts:793-813 (handler)Tool definition and handler for 'set_custom_domain' within the MCP tool package. The handler makes a request to the /api/domain endpoint.
set_custom_domain: { description: "Set a custom domain for your QR code short URLs (Pro plan required). When set, all new QR codes will use https://your-domain.com/r/... instead of the default URL. You must configure DNS (CNAME) to point to the QR Agent server. Pass domain=null to remove the custom domain.", inputSchema: z.object({ domain: z .string() .nullable() .describe( "Your custom domain without protocol (e.g. 'qr.mybrand.com'). Pass null to remove." ), }), handler: async (input: { domain: string | null }) => { if (input.domain === null) { return apiRequest("/api/domain", { method: "DELETE" }); } return apiRequest("/api/domain", { method: "PUT", body: { domain: input.domain }, }); }, },