flowcheck_connect_stripe
Connect a Stripe account to FlowCheck Financial API using a restricted API key with read access to Payouts and Balance. The key is encrypted with AES-256-GCM for secure integration.
Instructions
Connect a Stripe account using a restricted API key. The key must have read access to Payouts and Balance. FlowCheck encrypts it with AES-256-GCM.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| restricted_key | Yes | Stripe restricted API key (rk_live_... or rk_test_...) |
Implementation Reference
- src/tools/connect.ts:23-28 (handler)Handler for the flowcheck_connect_stripe tool, which sends a request to the /connect/stripe endpoint.
async ({ restricted_key }) => { const result = await client.request("POST", "/connect/stripe", { body: { restricted_key }, }); return { content: [{ type: "text" as const, text: result }] }; }, - src/tools/connect.ts:17-21 (schema)Input schema definition for the flowcheck_connect_stripe tool.
inputSchema: z.object({ restricted_key: z .string() .describe("Stripe restricted API key (rk_live_... or rk_test_...)"), }), - src/tools/connect.ts:9-29 (registration)Registration of the flowcheck_connect_stripe tool within the McpServer.
server.registerTool( "flowcheck_connect_stripe", { title: "Connect Stripe", description: "Connect a Stripe account using a restricted API key. " + "The key must have read access to Payouts and Balance. " + "FlowCheck encrypts it with AES-256-GCM.", inputSchema: z.object({ restricted_key: z .string() .describe("Stripe restricted API key (rk_live_... or rk_test_...)"), }), }, async ({ restricted_key }) => { const result = await client.request("POST", "/connect/stripe", { body: { restricted_key }, }); return { content: [{ type: "text" as const, text: result }] }; }, );