@flexprice/mcp-server 2.1.18 → 2.1.20
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 +42 -21
- package/bin/mcp-server.js.map +10 -10
- package/bun.lock +15 -15
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/retries.js +7 -0
- package/esm/lib/retries.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/getusagerequest.d.ts +1 -0
- package/esm/models/getusagerequest.d.ts.map +1 -1
- package/esm/models/getusagerequest.js +2 -1
- package/esm/models/getusagerequest.js.map +1 -1
- package/esm/models/pointbucket.d.ts +7 -0
- package/esm/models/pointbucket.d.ts.map +1 -0
- package/esm/models/pointbucket.js +9 -0
- package/esm/models/pointbucket.js.map +1 -0
- package/esm/models/submodifycouponparams.d.ts +1 -2
- package/esm/models/submodifycouponparams.d.ts.map +1 -1
- package/esm/models/submodifycouponparams.js +2 -3
- package/esm/models/submodifycouponparams.js.map +1 -1
- package/esm/models/submodifytaxparams.d.ts +1 -1
- package/esm/models/submodifytaxparams.d.ts.map +1 -1
- package/esm/models/submodifytaxparams.js +1 -1
- package/esm/models/submodifytaxparams.js.map +1 -1
- package/esm/models/usageanalyticpoint.d.ts +2 -2
- package/esm/models/usageanalyticpoint.d.ts.map +1 -1
- package/esm/models/usageanalyticpoint.js +2 -2
- package/esm/models/usageanalyticpoint.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +8 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/getusagerequest.ts +5 -1
- package/src/models/pointbucket.ts +15 -0
- package/src/models/submodifycouponparams.ts +3 -7
- package/src/models/submodifytaxparams.ts +4 -4
- package/src/models/usageanalyticpoint.ts +4 -5
package/bin/mcp-server.js
CHANGED
|
@@ -51270,9 +51270,9 @@ var init_config = __esm(() => {
|
|
|
51270
51270
|
SDK_METADATA = {
|
|
51271
51271
|
language: "typescript",
|
|
51272
51272
|
openapiDocVersion: "1.0",
|
|
51273
|
-
sdkVersion: "2.1.
|
|
51274
|
-
genVersion: "2.
|
|
51275
|
-
userAgent: "speakeasy-sdk/mcp-typescript 2.1.
|
|
51273
|
+
sdkVersion: "2.1.20",
|
|
51274
|
+
genVersion: "2.911.0",
|
|
51275
|
+
userAgent: "speakeasy-sdk/mcp-typescript 2.1.20 2.911.0 1.0 @flexprice/mcp-server"
|
|
51276
51276
|
};
|
|
51277
51277
|
});
|
|
51278
51278
|
|
|
@@ -51770,6 +51770,13 @@ async function retryBackoff(fn, strategy) {
|
|
|
51770
51770
|
}
|
|
51771
51771
|
}
|
|
51772
51772
|
function retryIntervalFromResponse(res) {
|
|
51773
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
51774
|
+
if (retryAfterMsVal) {
|
|
51775
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
51776
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
51777
|
+
return parsedMs;
|
|
51778
|
+
}
|
|
51779
|
+
}
|
|
51773
51780
|
const retryVal = res.headers.get("retry-after") || "";
|
|
51774
51781
|
if (!retryVal) {
|
|
51775
51782
|
return 0;
|
|
@@ -55665,9 +55672,16 @@ Example values:
|
|
|
55665
55672
|
event_name: string2(),
|
|
55666
55673
|
external_customer_id: string2().optional(),
|
|
55667
55674
|
filters: record(string2(), array(string2())).optional(),
|
|
55675
|
+
group_by: array(string2()).optional().describe(`GroupBy lists the analytics group_by dimensions.
|
|
55676
|
+
- "source" — group by event source column
|
|
55677
|
+
- "properties.X" — group by JSON property X`),
|
|
55668
55678
|
group_by_property: string2().optional().describe(`GroupByProperty is the property name in event.properties to group by before aggregating.
|
|
55669
55679
|
When set, aggregation is applied per unique value of this property within each bucket,
|
|
55670
|
-
then the per-group results are summed to produce the bucket total
|
|
55680
|
+
then the per-group results are summed to produce the bucket total.
|
|
55681
|
+
|
|
55682
|
+
Deprecated: prefer GroupBy []string{"properties.<X>"} for parity with
|
|
55683
|
+
other analytics endpoints. ToUsageParams translates this field into
|
|
55684
|
+
GroupBy when GroupBy is otherwise empty.`),
|
|
55671
55685
|
multiplier: string2().optional(),
|
|
55672
55686
|
property_name: string2().optional().describe("will be empty/ignored in case of COUNT"),
|
|
55673
55687
|
start_time: exports_iso.datetime({ offset: true }).optional(),
|
|
@@ -62749,11 +62763,10 @@ var init_submodifycouponparams = __esm(() => {
|
|
|
62749
62763
|
init_submodifycouponaction();
|
|
62750
62764
|
SubModifyCouponParams$zodSchema = object({
|
|
62751
62765
|
action: SubModifyCouponAction$zodSchema,
|
|
62752
|
-
|
|
62766
|
+
coupon_association_id: string2().optional().describe('Required when action="remove". ID of the CouponAssociation to soft-delete.'),
|
|
62753
62767
|
coupon_code: string2().optional().describe('Required for action="add". Coupon code of the coupon to attach.'),
|
|
62754
|
-
effective_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When to apply the change; defaults to now if omitted."),
|
|
62755
62768
|
end_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When the coupon association ends."),
|
|
62756
|
-
start_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When the coupon association starts; defaults to
|
|
62769
|
+
start_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When the coupon association starts; defaults to now."),
|
|
62757
62770
|
subscription_id: string2().optional().describe("Optional. Apply at subscription level. Mutually exclusive with SubscriptionLineItemID."),
|
|
62758
62771
|
subscription_line_item_id: string2().optional().describe("Optional. Apply at a specific line item. Mutually exclusive with SubscriptionID.")
|
|
62759
62772
|
});
|
|
@@ -62842,8 +62855,8 @@ var init_submodifytaxparams = __esm(() => {
|
|
|
62842
62855
|
init_submodifytaxaction();
|
|
62843
62856
|
SubModifyTaxParams$zodSchema = object({
|
|
62844
62857
|
action: SubModifyTaxAction$zodSchema,
|
|
62845
|
-
association_id: string2().optional().describe('Required when action="remove". ID of the TaxAssociation to soft-delete.'),
|
|
62846
62858
|
effective_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When to apply the change; defaults to now if omitted."),
|
|
62859
|
+
tax_association_id: string2().optional().describe('Required when action="remove". ID of the TaxAssociation to soft-delete.'),
|
|
62847
62860
|
tax_rate_id: string2().optional().describe('Required when action="add". ID of the active tax rate to attach.')
|
|
62848
62861
|
});
|
|
62849
62862
|
});
|
|
@@ -65830,7 +65843,7 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
65830
65843
|
function createMCPServer(deps) {
|
|
65831
65844
|
const server = new McpServer({
|
|
65832
65845
|
name: "Flexprice",
|
|
65833
|
-
version: "2.1.
|
|
65846
|
+
version: "2.1.20"
|
|
65834
65847
|
});
|
|
65835
65848
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
65836
65849
|
security: deps.security,
|
|
@@ -68987,20 +69000,28 @@ function buildRouteScanner(root, config, startingPrefix) {
|
|
|
68987
69000
|
let target;
|
|
68988
69001
|
let rootLevel = true;
|
|
68989
69002
|
let helpRequested = false;
|
|
69003
|
+
let treatInputsAsArguments = false;
|
|
68990
69004
|
return {
|
|
68991
69005
|
next: (input) => {
|
|
68992
|
-
if (
|
|
68993
|
-
|
|
68994
|
-
|
|
68995
|
-
target = current;
|
|
68996
|
-
}
|
|
69006
|
+
if (!treatInputsAsArguments && config.allowArgumentEscapeSequence && input === "--") {
|
|
69007
|
+
treatInputsAsArguments = true;
|
|
69008
|
+
unprocessedInputs.push(input);
|
|
68997
69009
|
return;
|
|
68998
|
-
}
|
|
68999
|
-
|
|
69000
|
-
if (
|
|
69001
|
-
|
|
69010
|
+
}
|
|
69011
|
+
if (!treatInputsAsArguments) {
|
|
69012
|
+
if (input === "--help" || input === "-h") {
|
|
69013
|
+
helpRequested = true;
|
|
69014
|
+
if (!target) {
|
|
69015
|
+
target = current;
|
|
69016
|
+
}
|
|
69017
|
+
return;
|
|
69018
|
+
} else if (input === "--helpAll" || input === "--help-all" || input === "-H") {
|
|
69019
|
+
helpRequested = "all";
|
|
69020
|
+
if (!target) {
|
|
69021
|
+
target = current;
|
|
69022
|
+
}
|
|
69023
|
+
return;
|
|
69002
69024
|
}
|
|
69003
|
-
return;
|
|
69004
69025
|
}
|
|
69005
69026
|
if (target) {
|
|
69006
69027
|
unprocessedInputs.push(input);
|
|
@@ -69980,7 +70001,7 @@ var routes = buildRouteMap({
|
|
|
69980
70001
|
var app = buildApplication(routes, {
|
|
69981
70002
|
name: "mcp",
|
|
69982
70003
|
versionInfo: {
|
|
69983
|
-
currentVersion: "2.1.
|
|
70004
|
+
currentVersion: "2.1.20"
|
|
69984
70005
|
}
|
|
69985
70006
|
});
|
|
69986
70007
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -69988,5 +70009,5 @@ export {
|
|
|
69988
70009
|
app
|
|
69989
70010
|
};
|
|
69990
70011
|
|
|
69991
|
-
//# debugId=
|
|
70012
|
+
//# debugId=AA274945AD54942F64756E2164756E21
|
|
69992
70013
|
//# sourceMappingURL=mcp-server.js.map
|