@flexprice/mcp-server 2.0.2 → 2.0.3
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/bin/mcp-server.js +45 -42
- package/bin/mcp-server.js.map +14 -14
- package/bun.lock +15 -15
- package/esm/funcs/invoicesRecalculateInvoice.d.ts +2 -2
- package/esm/funcs/invoicesRecalculateInvoice.js +2 -2
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/invoicesRecalculateInvoice.js +2 -2
- package/esm/mcp-server/tools/invoicesRecalculateInvoice.js.map +1 -1
- package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
- package/esm/models/dtofeatureresponse.d.ts +3 -0
- package/esm/models/dtofeatureresponse.d.ts.map +1 -1
- package/esm/models/dtofeatureresponse.js +3 -0
- package/esm/models/dtofeatureresponse.js.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts +3 -0
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js +3 -0
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js.map +1 -1
- package/esm/models/groupentitytype.d.ts +12 -0
- package/esm/models/groupentitytype.d.ts.map +1 -0
- package/esm/models/groupentitytype.js +13 -0
- package/esm/models/groupentitytype.js.map +1 -0
- package/esm/models/groupgroup.d.ts +21 -0
- package/esm/models/groupgroup.d.ts.map +1 -0
- package/esm/models/groupgroup.js +21 -0
- package/esm/models/groupgroup.js.map +1 -0
- package/esm/models/recalculateinvoiceop.d.ts +2 -2
- package/esm/models/recalculateinvoiceop.d.ts.map +1 -1
- package/esm/models/recalculateinvoiceop.js +2 -2
- package/esm/models/recalculateinvoiceop.js.map +1 -1
- package/esm/models/windowsize.d.ts +2 -2
- package/esm/models/windowsize.js +2 -2
- package/esm/models/windowsize.js.map +1 -1
- package/esm/tool-names.js +1 -1
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
- package/src/funcs/invoicesRecalculateInvoice.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/invoicesRecalculateInvoice.ts +2 -2
- package/src/models/dtofeatureresponse.ts +8 -0
- package/src/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.ts +5 -0
- package/src/models/groupentitytype.ts +17 -0
- package/src/models/groupgroup.ts +40 -0
- package/src/models/recalculateinvoiceop.ts +6 -6
- package/src/models/windowsize.ts +2 -2
- package/src/tool-names.ts +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -50435,9 +50435,9 @@ var init_config = __esm(() => {
|
|
|
50435
50435
|
SDK_METADATA = {
|
|
50436
50436
|
language: "typescript",
|
|
50437
50437
|
openapiDocVersion: "1.0",
|
|
50438
|
-
sdkVersion: "2.0.
|
|
50439
|
-
genVersion: "2.
|
|
50440
|
-
userAgent: "speakeasy-sdk/mcp-typescript 2.0.
|
|
50438
|
+
sdkVersion: "2.0.3",
|
|
50439
|
+
genVersion: "2.856.1",
|
|
50440
|
+
userAgent: "speakeasy-sdk/mcp-typescript 2.0.3 2.856.1 1.0 @flexprice/mcp-server"
|
|
50441
50441
|
};
|
|
50442
50442
|
});
|
|
50443
50443
|
|
|
@@ -52513,6 +52513,23 @@ var init_alertsettings = __esm(() => {
|
|
|
52513
52513
|
});
|
|
52514
52514
|
});
|
|
52515
52515
|
|
|
52516
|
+
// src/models/dtogroupresponse.ts
|
|
52517
|
+
var DtoGroupResponse$zodSchema;
|
|
52518
|
+
var init_dtogroupresponse = __esm(() => {
|
|
52519
|
+
init_zod();
|
|
52520
|
+
DtoGroupResponse$zodSchema = object({
|
|
52521
|
+
created_at: string2().optional(),
|
|
52522
|
+
entity_ids: array(string2()).optional(),
|
|
52523
|
+
entity_type: string2().optional(),
|
|
52524
|
+
id: string2().optional(),
|
|
52525
|
+
lookup_key: string2().optional(),
|
|
52526
|
+
metadata: record(string2(), string2()).optional(),
|
|
52527
|
+
name: string2().optional(),
|
|
52528
|
+
status: string2().optional(),
|
|
52529
|
+
updated_at: string2().optional()
|
|
52530
|
+
});
|
|
52531
|
+
});
|
|
52532
|
+
|
|
52516
52533
|
// src/models/aggregationtype.ts
|
|
52517
52534
|
var AggregationType$zodSchema;
|
|
52518
52535
|
var init_aggregationtype = __esm(() => {
|
|
@@ -52534,6 +52551,7 @@ var WindowSize$zodSchema;
|
|
|
52534
52551
|
var init_windowsize = __esm(() => {
|
|
52535
52552
|
init_zod();
|
|
52536
52553
|
WindowSize$zodSchema = _enum([
|
|
52554
|
+
"MONTH",
|
|
52537
52555
|
"MINUTE",
|
|
52538
52556
|
"15MIN",
|
|
52539
52557
|
"30MIN",
|
|
@@ -52542,8 +52560,7 @@ var init_windowsize = __esm(() => {
|
|
|
52542
52560
|
"6HOUR",
|
|
52543
52561
|
"12HOUR",
|
|
52544
52562
|
"DAY",
|
|
52545
|
-
"WEEK"
|
|
52546
|
-
"MONTH"
|
|
52563
|
+
"WEEK"
|
|
52547
52564
|
]);
|
|
52548
52565
|
});
|
|
52549
52566
|
|
|
@@ -52631,6 +52648,7 @@ var DtoFeatureResponse$zodSchema;
|
|
|
52631
52648
|
var init_dtofeatureresponse = __esm(() => {
|
|
52632
52649
|
init_zod();
|
|
52633
52650
|
init_alertsettings();
|
|
52651
|
+
init_dtogroupresponse();
|
|
52634
52652
|
init_dtometerresponse();
|
|
52635
52653
|
init_featuretype();
|
|
52636
52654
|
init_reportingunit();
|
|
@@ -52641,6 +52659,8 @@ var init_dtofeatureresponse = __esm(() => {
|
|
|
52641
52659
|
created_by: string2().optional(),
|
|
52642
52660
|
description: string2().optional(),
|
|
52643
52661
|
environment_id: string2().optional(),
|
|
52662
|
+
group: DtoGroupResponse$zodSchema.optional(),
|
|
52663
|
+
group_id: string2().optional(),
|
|
52644
52664
|
id: string2().optional(),
|
|
52645
52665
|
lookup_key: string2().optional(),
|
|
52646
52666
|
metadata: record(string2(), string2()).optional(),
|
|
@@ -56115,23 +56135,6 @@ var init_addontype = __esm(() => {
|
|
|
56115
56135
|
]);
|
|
56116
56136
|
});
|
|
56117
56137
|
|
|
56118
|
-
// src/models/dtogroupresponse.ts
|
|
56119
|
-
var DtoGroupResponse$zodSchema;
|
|
56120
|
-
var init_dtogroupresponse = __esm(() => {
|
|
56121
|
-
init_zod();
|
|
56122
|
-
DtoGroupResponse$zodSchema = object({
|
|
56123
|
-
created_at: string2().optional(),
|
|
56124
|
-
entity_ids: array(string2()).optional(),
|
|
56125
|
-
entity_type: string2().optional(),
|
|
56126
|
-
id: string2().optional(),
|
|
56127
|
-
lookup_key: string2().optional(),
|
|
56128
|
-
metadata: record(string2(), string2()).optional(),
|
|
56129
|
-
name: string2().optional(),
|
|
56130
|
-
status: string2().optional(),
|
|
56131
|
-
updated_at: string2().optional()
|
|
56132
|
-
});
|
|
56133
|
-
});
|
|
56134
|
-
|
|
56135
56138
|
// src/models/dtopriceunitresponse.ts
|
|
56136
56139
|
var DtoPriceUnitResponse$zodSchema;
|
|
56137
56140
|
var init_dtopriceunitresponse = __esm(() => {
|
|
@@ -57157,17 +57160,28 @@ Use when listing or searching invoices (e.g. admin view or customer history). Re
|
|
|
57157
57160
|
};
|
|
57158
57161
|
});
|
|
57159
57162
|
|
|
57163
|
+
// src/models/modelstemporalworkflowresult.ts
|
|
57164
|
+
var ModelsTemporalWorkflowResult$zodSchema;
|
|
57165
|
+
var init_modelstemporalworkflowresult = __esm(() => {
|
|
57166
|
+
init_zod();
|
|
57167
|
+
ModelsTemporalWorkflowResult$zodSchema = object({
|
|
57168
|
+
message: string2().optional(),
|
|
57169
|
+
run_id: string2().optional(),
|
|
57170
|
+
workflow_id: string2().optional()
|
|
57171
|
+
});
|
|
57172
|
+
});
|
|
57173
|
+
|
|
57160
57174
|
// src/models/recalculateinvoiceop.ts
|
|
57161
57175
|
var RecalculateInvoiceRequest$zodSchema, RecalculateInvoiceResponse$zodSchema;
|
|
57162
57176
|
var init_recalculateinvoiceop = __esm(() => {
|
|
57163
57177
|
init_zod();
|
|
57164
|
-
init_dtoinvoiceresponse();
|
|
57165
57178
|
init_errorserrorresponse();
|
|
57179
|
+
init_modelstemporalworkflowresult();
|
|
57166
57180
|
RecalculateInvoiceRequest$zodSchema = object({
|
|
57167
57181
|
id: string2().describe("Invoice ID")
|
|
57168
57182
|
});
|
|
57169
57183
|
RecalculateInvoiceResponse$zodSchema = union([
|
|
57170
|
-
|
|
57184
|
+
ModelsTemporalWorkflowResult$zodSchema,
|
|
57171
57185
|
ErrorsErrorResponse$zodSchema
|
|
57172
57186
|
]);
|
|
57173
57187
|
});
|
|
@@ -57261,9 +57275,9 @@ var init_invoicesRecalculateInvoice2 = __esm(() => {
|
|
|
57261
57275
|
};
|
|
57262
57276
|
tool$invoicesRecalculateInvoice = {
|
|
57263
57277
|
name: "recalculate-invoice",
|
|
57264
|
-
description: `Recalculate invoice (
|
|
57278
|
+
description: `Recalculate invoice (voided invoice)
|
|
57265
57279
|
|
|
57266
|
-
|
|
57280
|
+
Starts an async workflow that creates a fresh replacement invoice for a voided SUBSCRIPTION invoice (same billing period). Returns workflow_id and run_id; poll workflow status or GET the new invoice via recalculated_invoice_id after completion.`,
|
|
57267
57281
|
annotations: {
|
|
57268
57282
|
title: "",
|
|
57269
57283
|
destructiveHint: false,
|
|
@@ -58613,17 +58627,6 @@ Use when listing or searching plans (e.g. plan picker or admin catalog). Returns
|
|
|
58613
58627
|
};
|
|
58614
58628
|
});
|
|
58615
58629
|
|
|
58616
|
-
// src/models/modelstemporalworkflowresult.ts
|
|
58617
|
-
var ModelsTemporalWorkflowResult$zodSchema;
|
|
58618
|
-
var init_modelstemporalworkflowresult = __esm(() => {
|
|
58619
|
-
init_zod();
|
|
58620
|
-
ModelsTemporalWorkflowResult$zodSchema = object({
|
|
58621
|
-
message: string2().optional(),
|
|
58622
|
-
run_id: string2().optional(),
|
|
58623
|
-
workflow_id: string2().optional()
|
|
58624
|
-
});
|
|
58625
|
-
});
|
|
58626
|
-
|
|
58627
58630
|
// src/models/syncplanpricesop.ts
|
|
58628
58631
|
var SyncPlanPricesRequest$zodSchema, SyncPlanPricesResponse$zodSchema;
|
|
58629
58632
|
var init_syncplanpricesop = __esm(() => {
|
|
@@ -59898,7 +59901,7 @@ Use when changing price configuration (e.g. amount, billing scheme, or metadata)
|
|
|
59898
59901
|
function createMCPServer(deps) {
|
|
59899
59902
|
const server = new McpServer({
|
|
59900
59903
|
name: "Flexprice",
|
|
59901
|
-
version: "2.0.
|
|
59904
|
+
version: "2.0.3"
|
|
59902
59905
|
});
|
|
59903
59906
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
59904
59907
|
security: deps.security,
|
|
@@ -60145,9 +60148,9 @@ Use when delivering an invoice PDF to the customer (e.g. email attachment or dow
|
|
|
60145
60148
|
},
|
|
60146
60149
|
{
|
|
60147
60150
|
name: "recalculate-invoice",
|
|
60148
|
-
description: `Recalculate invoice (
|
|
60151
|
+
description: `Recalculate invoice (voided invoice)
|
|
60149
60152
|
|
|
60150
|
-
|
|
60153
|
+
Starts an async workflow that creates a fresh replacement invoice for a voided SUBSCRIPTION invoice (same billing period). Returns workflow_id and run_id; poll workflow status or GET the new invoice via recalculated_invoice_id after completion.`
|
|
60151
60154
|
},
|
|
60152
60155
|
{
|
|
60153
60156
|
name: "recalculate-invoice-v2",
|
|
@@ -63801,7 +63804,7 @@ var routes = buildRouteMap({
|
|
|
63801
63804
|
var app = buildApplication(routes, {
|
|
63802
63805
|
name: "mcp",
|
|
63803
63806
|
versionInfo: {
|
|
63804
|
-
currentVersion: "2.0.
|
|
63807
|
+
currentVersion: "2.0.3"
|
|
63805
63808
|
}
|
|
63806
63809
|
});
|
|
63807
63810
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -63809,5 +63812,5 @@ export {
|
|
|
63809
63812
|
app
|
|
63810
63813
|
};
|
|
63811
63814
|
|
|
63812
|
-
//# debugId=
|
|
63815
|
+
//# debugId=674E2BD63E511D5D64756E2164756E21
|
|
63813
63816
|
//# sourceMappingURL=mcp-server.js.map
|