@moovio/sdk 0.9.0 → 0.10.0
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/README.md +42 -7
- package/bin/mcp-server.js +45 -9
- package/bin/mcp-server.js.map +13 -12
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/components/feeplan.d.ts +6 -0
- package/models/components/feeplan.d.ts.map +1 -1
- package/models/components/feeplan.js +3 -0
- package/models/components/feeplan.js.map +1 -1
- package/models/components/feeplanagreement.d.ts +6 -0
- package/models/components/feeplanagreement.d.ts.map +1 -1
- package/models/components/feeplanagreement.js +3 -0
- package/models/components/feeplanagreement.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/monthlyplatformfee.d.ts +44 -0
- package/models/components/monthlyplatformfee.d.ts.map +1 -0
- package/models/components/monthlyplatformfee.js +71 -0
- package/models/components/monthlyplatformfee.js.map +1 -0
- package/models/components/partnerpricing.d.ts +6 -0
- package/models/components/partnerpricing.d.ts.map +1 -1
- package/models/components/partnerpricing.js +3 -0
- package/models/components/partnerpricing.js.map +1 -1
- package/models/components/partnerpricingagreement.d.ts +6 -0
- package/models/components/partnerpricingagreement.d.ts.map +1 -1
- package/models/components/partnerpricingagreement.js +3 -0
- package/models/components/partnerpricingagreement.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +11 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/feeplan.ts +13 -0
- package/src/models/components/feeplanagreement.ts +13 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/monthlyplatformfee.ts +83 -0
- package/src/models/components/partnerpricing.ts +13 -0
- package/src/models/components/partnerpricingagreement.ts +13 -0
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ yarn add @moovio/sdk zod
|
|
|
79
79
|
This SDK is also an installable MCP server where the various SDK methods are
|
|
80
80
|
exposed as tools that can be invoked by AI applications.
|
|
81
81
|
|
|
82
|
-
> Node.js v20 or greater is required to run the MCP server.
|
|
82
|
+
> Node.js v20 or greater is required to run the MCP server from npm.
|
|
83
83
|
|
|
84
84
|
<details>
|
|
85
85
|
<summary>Claude installation steps</summary>
|
|
@@ -109,17 +109,52 @@ Add the following server definition to your `claude_desktop_config.json` file:
|
|
|
109
109
|
<details>
|
|
110
110
|
<summary>Cursor installation steps</summary>
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
Create a `.cursor/mcp.json` file in your project root with the following content:
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
npx
|
|
114
|
+
```json
|
|
115
|
+
{
|
|
116
|
+
"mcpServers": {
|
|
117
|
+
"Moov": {
|
|
118
|
+
"command": "npx",
|
|
119
|
+
"args": [
|
|
120
|
+
"-y", "--package", "@moovio/sdk",
|
|
121
|
+
"--",
|
|
122
|
+
"mcp", "start",
|
|
123
|
+
"--username", "...",
|
|
124
|
+
"--password", "...",
|
|
125
|
+
"--x-moov-version", "..."
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
119
130
|
```
|
|
120
131
|
|
|
121
132
|
</details>
|
|
122
133
|
|
|
134
|
+
You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
curl -L -o mcp-server \
|
|
138
|
+
https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \
|
|
139
|
+
chmod +x mcp-server
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
```json
|
|
146
|
+
{
|
|
147
|
+
"mcpServers": {
|
|
148
|
+
"Todos": {
|
|
149
|
+
"command": "./DOWNLOAD/PATH/mcp-server",
|
|
150
|
+
"args": [
|
|
151
|
+
"start"
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
123
158
|
For a full list of server arguments, run:
|
|
124
159
|
|
|
125
160
|
```sh
|
package/bin/mcp-server.js
CHANGED
|
@@ -34213,9 +34213,9 @@ var init_config = __esm(() => {
|
|
|
34213
34213
|
SDK_METADATA = {
|
|
34214
34214
|
language: "typescript",
|
|
34215
34215
|
openapiDocVersion: "latest",
|
|
34216
|
-
sdkVersion: "0.
|
|
34217
|
-
genVersion: "2.
|
|
34218
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34216
|
+
sdkVersion: "0.10.0",
|
|
34217
|
+
genVersion: "2.558.5",
|
|
34218
|
+
userAgent: "speakeasy-sdk/typescript 0.10.0 2.558.5 latest @moovio/sdk"
|
|
34219
34219
|
};
|
|
34220
34220
|
});
|
|
34221
34221
|
|
|
@@ -35440,6 +35440,9 @@ function resolveSecurity(...options) {
|
|
|
35440
35440
|
} else if (o.type === "oauth2:password") {
|
|
35441
35441
|
return typeof o.value === "string" && !!o.value;
|
|
35442
35442
|
} else if (o.type === "oauth2:client_credentials") {
|
|
35443
|
+
if (typeof o.value == "string") {
|
|
35444
|
+
return !!o.value;
|
|
35445
|
+
}
|
|
35443
35446
|
return o.value.clientID != null || o.value.clientSecret != null;
|
|
35444
35447
|
} else if (typeof o.value === "string") {
|
|
35445
35448
|
return !!o.value;
|
|
@@ -35505,7 +35508,9 @@ function applyBearer(state, spec) {
|
|
|
35505
35508
|
if (value.slice(0, 7).toLowerCase() !== "bearer ") {
|
|
35506
35509
|
value = `Bearer ${value}`;
|
|
35507
35510
|
}
|
|
35508
|
-
|
|
35511
|
+
if (spec.fieldName !== undefined) {
|
|
35512
|
+
state.headers[spec.fieldName] = value;
|
|
35513
|
+
}
|
|
35509
35514
|
}
|
|
35510
35515
|
function resolveGlobalSecurity(security) {
|
|
35511
35516
|
return resolveSecurity([
|
|
@@ -40664,6 +40669,24 @@ var init_minimumcommitment = __esm(() => {
|
|
|
40664
40669
|
})(MinimumCommitment$ ||= {});
|
|
40665
40670
|
});
|
|
40666
40671
|
|
|
40672
|
+
// src/models/components/monthlyplatformfee.ts
|
|
40673
|
+
var MonthlyPlatformFee$inboundSchema, MonthlyPlatformFee$outboundSchema, MonthlyPlatformFee$;
|
|
40674
|
+
var init_monthlyplatformfee = __esm(() => {
|
|
40675
|
+
init_lib();
|
|
40676
|
+
MonthlyPlatformFee$inboundSchema = objectType({
|
|
40677
|
+
currency: stringType(),
|
|
40678
|
+
valueDecimal: stringType()
|
|
40679
|
+
});
|
|
40680
|
+
MonthlyPlatformFee$outboundSchema = objectType({
|
|
40681
|
+
currency: stringType(),
|
|
40682
|
+
valueDecimal: stringType()
|
|
40683
|
+
});
|
|
40684
|
+
((MonthlyPlatformFee$) => {
|
|
40685
|
+
MonthlyPlatformFee$.inboundSchema = MonthlyPlatformFee$inboundSchema;
|
|
40686
|
+
MonthlyPlatformFee$.outboundSchema = MonthlyPlatformFee$outboundSchema;
|
|
40687
|
+
})(MonthlyPlatformFee$ ||= {});
|
|
40688
|
+
});
|
|
40689
|
+
|
|
40667
40690
|
// src/models/components/feeplan.ts
|
|
40668
40691
|
var FeePlan$inboundSchema, FeePlan$outboundSchema, FeePlan$;
|
|
40669
40692
|
var init_feeplan = __esm(() => {
|
|
@@ -40671,6 +40694,7 @@ var init_feeplan = __esm(() => {
|
|
|
40671
40694
|
init_billablefee();
|
|
40672
40695
|
init_cardacquiringmodel();
|
|
40673
40696
|
init_minimumcommitment();
|
|
40697
|
+
init_monthlyplatformfee();
|
|
40674
40698
|
FeePlan$inboundSchema = objectType({
|
|
40675
40699
|
planID: stringType(),
|
|
40676
40700
|
name: stringType(),
|
|
@@ -40678,6 +40702,7 @@ var init_feeplan = __esm(() => {
|
|
|
40678
40702
|
cardAcquiringModel: CardAcquiringModel$inboundSchema,
|
|
40679
40703
|
billableFees: arrayType(BillableFee$inboundSchema),
|
|
40680
40704
|
minimumCommitment: MinimumCommitment$inboundSchema,
|
|
40705
|
+
monthlyPlatformFee: MonthlyPlatformFee$inboundSchema,
|
|
40681
40706
|
createdAt: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
40682
40707
|
});
|
|
40683
40708
|
FeePlan$outboundSchema = objectType({
|
|
@@ -40687,6 +40712,7 @@ var init_feeplan = __esm(() => {
|
|
|
40687
40712
|
cardAcquiringModel: CardAcquiringModel$outboundSchema,
|
|
40688
40713
|
billableFees: arrayType(BillableFee$outboundSchema),
|
|
40689
40714
|
minimumCommitment: MinimumCommitment$outboundSchema,
|
|
40715
|
+
monthlyPlatformFee: MonthlyPlatformFee$outboundSchema,
|
|
40690
40716
|
createdAt: dateType().transform((v2) => v2.toISOString())
|
|
40691
40717
|
});
|
|
40692
40718
|
((FeePlan$) => {
|
|
@@ -40719,6 +40745,7 @@ var init_feeplanagreement = __esm(() => {
|
|
|
40719
40745
|
init_cardacquiringmodel();
|
|
40720
40746
|
init_feeplanagreementstatus();
|
|
40721
40747
|
init_minimumcommitment();
|
|
40748
|
+
init_monthlyplatformfee();
|
|
40722
40749
|
FeePlanAgreement$inboundSchema = objectType({
|
|
40723
40750
|
agreementID: stringType(),
|
|
40724
40751
|
planID: stringType(),
|
|
@@ -40729,7 +40756,8 @@ var init_feeplanagreement = __esm(() => {
|
|
|
40729
40756
|
status: FeePlanAgreementStatus$inboundSchema,
|
|
40730
40757
|
cardAcquiringModel: CardAcquiringModel$inboundSchema,
|
|
40731
40758
|
billableFees: arrayType(BillableFee$inboundSchema),
|
|
40732
|
-
minimumCommitment: MinimumCommitment$inboundSchema
|
|
40759
|
+
minimumCommitment: MinimumCommitment$inboundSchema,
|
|
40760
|
+
monthlyPlatformFee: MonthlyPlatformFee$inboundSchema
|
|
40733
40761
|
});
|
|
40734
40762
|
FeePlanAgreement$outboundSchema = objectType({
|
|
40735
40763
|
agreementID: stringType(),
|
|
@@ -40741,7 +40769,8 @@ var init_feeplanagreement = __esm(() => {
|
|
|
40741
40769
|
status: FeePlanAgreementStatus$outboundSchema,
|
|
40742
40770
|
cardAcquiringModel: CardAcquiringModel$outboundSchema,
|
|
40743
40771
|
billableFees: arrayType(BillableFee$outboundSchema),
|
|
40744
|
-
minimumCommitment: MinimumCommitment$outboundSchema
|
|
40772
|
+
minimumCommitment: MinimumCommitment$outboundSchema,
|
|
40773
|
+
monthlyPlatformFee: MonthlyPlatformFee$outboundSchema
|
|
40745
40774
|
});
|
|
40746
40775
|
((FeePlanAgreement$) => {
|
|
40747
40776
|
FeePlanAgreement$.inboundSchema = FeePlanAgreement$inboundSchema;
|
|
@@ -42287,6 +42316,7 @@ var init_partnerpricing = __esm(() => {
|
|
|
42287
42316
|
init_billablefee();
|
|
42288
42317
|
init_cardacquiringmodel();
|
|
42289
42318
|
init_minimumcommitment();
|
|
42319
|
+
init_monthlyplatformfee();
|
|
42290
42320
|
PartnerPricing$inboundSchema = objectType({
|
|
42291
42321
|
planID: stringType(),
|
|
42292
42322
|
name: stringType(),
|
|
@@ -42295,6 +42325,7 @@ var init_partnerpricing = __esm(() => {
|
|
|
42295
42325
|
cardAcquiringModel: CardAcquiringModel$inboundSchema,
|
|
42296
42326
|
billableFees: arrayType(BillableFee$inboundSchema),
|
|
42297
42327
|
minimumCommitment: MinimumCommitment$inboundSchema,
|
|
42328
|
+
monthlyPlatformFee: MonthlyPlatformFee$inboundSchema,
|
|
42298
42329
|
createdAt: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
42299
42330
|
});
|
|
42300
42331
|
PartnerPricing$outboundSchema = objectType({
|
|
@@ -42305,6 +42336,7 @@ var init_partnerpricing = __esm(() => {
|
|
|
42305
42336
|
cardAcquiringModel: CardAcquiringModel$outboundSchema,
|
|
42306
42337
|
billableFees: arrayType(BillableFee$outboundSchema),
|
|
42307
42338
|
minimumCommitment: MinimumCommitment$outboundSchema,
|
|
42339
|
+
monthlyPlatformFee: MonthlyPlatformFee$outboundSchema,
|
|
42308
42340
|
createdAt: dateType().transform((v2) => v2.toISOString())
|
|
42309
42341
|
});
|
|
42310
42342
|
((PartnerPricing$) => {
|
|
@@ -42321,6 +42353,7 @@ var init_partnerpricingagreement = __esm(() => {
|
|
|
42321
42353
|
init_cardacquiringmodel();
|
|
42322
42354
|
init_feeplanagreementstatus();
|
|
42323
42355
|
init_minimumcommitment();
|
|
42356
|
+
init_monthlyplatformfee();
|
|
42324
42357
|
PartnerPricingAgreement$inboundSchema = objectType({
|
|
42325
42358
|
agreementID: stringType(),
|
|
42326
42359
|
planID: stringType(),
|
|
@@ -42332,6 +42365,7 @@ var init_partnerpricingagreement = __esm(() => {
|
|
|
42332
42365
|
cardAcquiringModel: CardAcquiringModel$inboundSchema,
|
|
42333
42366
|
billableFees: arrayType(BillableFee$inboundSchema),
|
|
42334
42367
|
minimumCommitment: MinimumCommitment$inboundSchema,
|
|
42368
|
+
monthlyPlatformFee: MonthlyPlatformFee$inboundSchema,
|
|
42335
42369
|
revenueShare: numberType().int()
|
|
42336
42370
|
});
|
|
42337
42371
|
PartnerPricingAgreement$outboundSchema = objectType({
|
|
@@ -42345,6 +42379,7 @@ var init_partnerpricingagreement = __esm(() => {
|
|
|
42345
42379
|
cardAcquiringModel: CardAcquiringModel$outboundSchema,
|
|
42346
42380
|
billableFees: arrayType(BillableFee$outboundSchema),
|
|
42347
42381
|
minimumCommitment: MinimumCommitment$outboundSchema,
|
|
42382
|
+
monthlyPlatformFee: MonthlyPlatformFee$outboundSchema,
|
|
42348
42383
|
revenueShare: numberType().int()
|
|
42349
42384
|
});
|
|
42350
42385
|
((PartnerPricingAgreement$) => {
|
|
@@ -44838,6 +44873,7 @@ var init_components = __esm(() => {
|
|
|
44838
44873
|
init_microdepositstatus();
|
|
44839
44874
|
init_minimumcommitment();
|
|
44840
44875
|
init_mode();
|
|
44876
|
+
init_monthlyplatformfee();
|
|
44841
44877
|
init_moovfeedetails();
|
|
44842
44878
|
init_moovwalletpaymentmethod();
|
|
44843
44879
|
init_mxauthorizationcode();
|
|
@@ -70575,7 +70611,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
70575
70611
|
function createMCPServer(deps) {
|
|
70576
70612
|
const server = new McpServer({
|
|
70577
70613
|
name: "Moov",
|
|
70578
|
-
version: "0.
|
|
70614
|
+
version: "0.10.0"
|
|
70579
70615
|
});
|
|
70580
70616
|
const client = new MoovCore({
|
|
70581
70617
|
security: deps.security,
|
|
@@ -72074,7 +72110,7 @@ var routes = rn({
|
|
|
72074
72110
|
var app = Ve(routes, {
|
|
72075
72111
|
name: "mcp",
|
|
72076
72112
|
versionInfo: {
|
|
72077
|
-
currentVersion: "0.
|
|
72113
|
+
currentVersion: "0.10.0"
|
|
72078
72114
|
}
|
|
72079
72115
|
});
|
|
72080
72116
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -72082,5 +72118,5 @@ export {
|
|
|
72082
72118
|
app
|
|
72083
72119
|
};
|
|
72084
72120
|
|
|
72085
|
-
//# debugId=
|
|
72121
|
+
//# debugId=BC8E86FEC6C5688D64756E2164756E21
|
|
72086
72122
|
//# sourceMappingURL=mcp-server.js.map
|