@flexprice/mcp-server 2.0.15 → 2.0.16

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/manifest.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "sensitive": true
49
49
  }
50
50
  },
51
- "version": "2.0.15",
51
+ "version": "2.0.16",
52
52
  "tools": [
53
53
  {
54
54
  "name": "update-customer",
@@ -128,7 +128,7 @@
128
128
  },
129
129
  {
130
130
  "name": "get-invoice-pdf",
131
- "description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary."
131
+ "description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3."
132
132
  },
133
133
  {
134
134
  "name": "recalculate-invoice",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexprice/mcp-server",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "author": "flexprice",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * Get invoice PDF
30
30
  *
31
31
  * @remarks
32
- * Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary.
32
+ * Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3.
33
33
  */
34
34
  export function invoicesGetInvoicePdf(
35
35
  client$: FlexpriceCore,
@@ -94,6 +94,7 @@ async function $do(
94
94
  pathParams$,
95
95
  );
96
96
  const query$ = encodeFormQuery({
97
+ "force_generate": payload$.force_generate,
97
98
  "url": payload$.url,
98
99
  });
99
100
 
package/src/lib/config.ts CHANGED
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "1.0",
72
- sdkVersion: "2.0.15",
73
- genVersion: "2.879.1",
72
+ sdkVersion: "2.0.16",
73
+ genVersion: "2.879.6",
74
74
  userAgent:
75
- "speakeasy-sdk/mcp-typescript 2.0.15 2.879.1 1.0 @flexprice/mcp-server",
75
+ "speakeasy-sdk/mcp-typescript 2.0.16 2.879.6 1.0 @flexprice/mcp-server",
76
76
  } as const;
@@ -21,7 +21,7 @@ const routes = buildRouteMap({
21
21
  export const app = buildApplication(routes, {
22
22
  name: "mcp",
23
23
  versionInfo: {
24
- currentVersion: "2.0.15",
24
+ currentVersion: "2.0.16",
25
25
  },
26
26
  });
27
27
 
@@ -101,7 +101,7 @@ export function createMCPServer(deps: {
101
101
  }) {
102
102
  const server = new McpServer({
103
103
  name: "Flexprice",
104
- version: "2.0.15",
104
+ version: "2.0.16",
105
105
  });
106
106
 
107
107
  const getClient = deps.getSDK || (() =>
@@ -14,7 +14,7 @@ export const tool$invoicesGetInvoicePdf: ToolDefinition<typeof args> = {
14
14
  name: "get-invoice-pdf",
15
15
  description: `Get invoice PDF
16
16
 
17
- Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary.`,
17
+ Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3.`,
18
18
  scopes: ["read"],
19
19
  annotations: {
20
20
  "title": "",
@@ -5,10 +5,17 @@
5
5
  import * as z from "zod";
6
6
  import * as b64$ from "../lib/base64.js";
7
7
 
8
- export type GetInvoicePdfRequest = { id: string; url?: boolean | undefined };
8
+ export type GetInvoicePdfRequest = {
9
+ id: string;
10
+ url?: boolean | undefined;
11
+ force_generate?: boolean | undefined;
12
+ };
9
13
 
10
14
  export const GetInvoicePdfRequest$zodSchema: z.ZodType<GetInvoicePdfRequest> = z
11
15
  .object({
16
+ force_generate: z.boolean().describe(
17
+ "Force regeneration of the PDF even if one already exists in S3 (default: false). Note: force_generate has no effect if invoice_pdf_url is already set on the invoice.",
18
+ ).optional(),
12
19
  id: z.string().describe("Invoice ID"),
13
20
  url: z.boolean().describe("Return presigned URL from s3 instead of PDF")
14
21
  .optional(),
package/src/tool-names.ts CHANGED
@@ -78,7 +78,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
78
78
  },
79
79
  {
80
80
  "name": "get-invoice-pdf",
81
- "description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary."
81
+ "description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3."
82
82
  },
83
83
  {
84
84
  "name": "recalculate-invoice",