flowcheck_connect_shopify
Connect a Shopify store to automatically sync orders and payouts for financial workflow analysis and validation.
Instructions
Connect a Shopify store. Orders and payouts will sync automatically. The access token must have read access to Orders and Payouts. FlowCheck encrypts it with AES-256-GCM.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shop | Yes | Shopify store domain (e.g. my-store.myshopify.com) | |
| access_token | Yes | Shopify access token (shpat_...) |
Implementation Reference
- src/tools/connect.ts:31-54 (handler)The registration and handler implementation for the `flowcheck_connect_shopify` tool. It validates the input `shop` and `access_token` and makes a POST request to the `/connect/shopify` endpoint via the client.
server.registerTool( "flowcheck_connect_shopify", { title: "Connect Shopify", description: "Connect a Shopify store. Orders and payouts will sync automatically. " + "The access token must have read access to Orders and Payouts. " + "FlowCheck encrypts it with AES-256-GCM.", inputSchema: z.object({ shop: z .string() .describe("Shopify store domain (e.g. my-store.myshopify.com)"), access_token: z .string() .describe("Shopify access token (shpat_...)"), }), }, async ({ shop, access_token }) => { const result = await client.request("POST", "/connect/shopify", { body: { shop, access_token }, }); return { content: [{ type: "text" as const, text: result }] }; }, );