@moovio/sdk 0.9.0 → 0.10.1

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.
Files changed (87) hide show
  1. package/README.md +53 -7
  2. package/bin/mcp-server.js +354 -128
  3. package/bin/mcp-server.js.map +18 -13
  4. package/docs/sdks/terminalconfigurations/README.md +98 -0
  5. package/funcs/terminalConfigurationsGet.d.ts +16 -0
  6. package/funcs/terminalConfigurationsGet.d.ts.map +1 -0
  7. package/funcs/terminalConfigurationsGet.js +124 -0
  8. package/funcs/terminalConfigurationsGet.js.map +1 -0
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/lib/config.js.map +1 -1
  13. package/lib/security.d.ts +4 -3
  14. package/lib/security.d.ts.map +1 -1
  15. package/lib/security.js +6 -1
  16. package/lib/security.js.map +1 -1
  17. package/mcp-server/mcp-server.js +1 -1
  18. package/mcp-server/mcp-server.js.map +1 -1
  19. package/mcp-server/server.d.ts.map +1 -1
  20. package/mcp-server/server.js +3 -1
  21. package/mcp-server/server.js.map +1 -1
  22. package/mcp-server/tools/terminalConfigurationsGet.d.ts +8 -0
  23. package/mcp-server/tools/terminalConfigurationsGet.d.ts.map +1 -0
  24. package/mcp-server/tools/terminalConfigurationsGet.js +65 -0
  25. package/mcp-server/tools/terminalConfigurationsGet.js.map +1 -0
  26. package/models/components/feeplan.d.ts +6 -0
  27. package/models/components/feeplan.d.ts.map +1 -1
  28. package/models/components/feeplan.js +3 -0
  29. package/models/components/feeplan.js.map +1 -1
  30. package/models/components/feeplanagreement.d.ts +6 -0
  31. package/models/components/feeplanagreement.d.ts.map +1 -1
  32. package/models/components/feeplanagreement.js +3 -0
  33. package/models/components/feeplanagreement.js.map +1 -1
  34. package/models/components/index.d.ts +2 -0
  35. package/models/components/index.d.ts.map +1 -1
  36. package/models/components/index.js +2 -0
  37. package/models/components/index.js.map +1 -1
  38. package/models/components/monthlyplatformfee.d.ts +44 -0
  39. package/models/components/monthlyplatformfee.d.ts.map +1 -0
  40. package/models/components/monthlyplatformfee.js +71 -0
  41. package/models/components/monthlyplatformfee.js.map +1 -0
  42. package/models/components/partnerpricing.d.ts +6 -0
  43. package/models/components/partnerpricing.d.ts.map +1 -1
  44. package/models/components/partnerpricing.js +3 -0
  45. package/models/components/partnerpricing.js.map +1 -1
  46. package/models/components/partnerpricingagreement.d.ts +6 -0
  47. package/models/components/partnerpricingagreement.d.ts.map +1 -1
  48. package/models/components/partnerpricingagreement.js +3 -0
  49. package/models/components/partnerpricingagreement.js.map +1 -1
  50. package/models/components/terminalconfiguration.d.ts +32 -0
  51. package/models/components/terminalconfiguration.d.ts.map +1 -0
  52. package/models/components/terminalconfiguration.js +69 -0
  53. package/models/components/terminalconfiguration.js.map +1 -0
  54. package/models/operations/getterminalconfiguration.d.ts +101 -0
  55. package/models/operations/getterminalconfiguration.d.ts.map +1 -0
  56. package/models/operations/getterminalconfiguration.js +147 -0
  57. package/models/operations/getterminalconfiguration.js.map +1 -0
  58. package/models/operations/index.d.ts +1 -0
  59. package/models/operations/index.d.ts.map +1 -1
  60. package/models/operations/index.js +1 -0
  61. package/models/operations/index.js.map +1 -1
  62. package/package.json +1 -1
  63. package/sdk/sdk.d.ts +3 -0
  64. package/sdk/sdk.d.ts.map +1 -1
  65. package/sdk/sdk.js +4 -0
  66. package/sdk/sdk.js.map +1 -1
  67. package/sdk/terminalconfigurations.d.ts +12 -0
  68. package/sdk/terminalconfigurations.d.ts.map +1 -0
  69. package/sdk/terminalconfigurations.js +22 -0
  70. package/sdk/terminalconfigurations.js.map +1 -0
  71. package/src/funcs/terminalConfigurationsGet.ts +181 -0
  72. package/src/lib/config.ts +3 -3
  73. package/src/lib/security.ts +11 -3
  74. package/src/mcp-server/mcp-server.ts +1 -1
  75. package/src/mcp-server/server.ts +3 -1
  76. package/src/mcp-server/tools/terminalConfigurationsGet.ts +38 -0
  77. package/src/models/components/feeplan.ts +13 -0
  78. package/src/models/components/feeplanagreement.ts +13 -0
  79. package/src/models/components/index.ts +2 -0
  80. package/src/models/components/monthlyplatformfee.ts +83 -0
  81. package/src/models/components/partnerpricing.ts +13 -0
  82. package/src/models/components/partnerpricingagreement.ts +13 -0
  83. package/src/models/components/terminalconfiguration.ts +69 -0
  84. package/src/models/operations/getterminalconfiguration.ts +229 -0
  85. package/src/models/operations/index.ts +1 -0
  86. package/src/sdk/sdk.ts +8 -0
  87. package/src/sdk/terminalconfigurations.ts +27 -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
- Go to `Cursor Settings > Features > MCP Servers > Add new MCP server` and use the following settings:
112
+ Create a `.cursor/mcp.json` file in your project root with the following content:
113
113
 
114
- - Name: Moov
115
- - Type: `command`
116
- - Command:
117
- ```sh
118
- npx -y --package @moovio/sdk -- mcp start --username ... --password ... --x-moov-version ...
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
@@ -1086,6 +1121,13 @@ you'll need to specify the `/terminalApplications.read` scope.
1086
1121
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1087
1122
  you'll need to specify the `/terminalApplications.write` scope.
1088
1123
 
1124
+ ### [terminalConfigurations](docs/sdks/terminalconfigurations/README.md)
1125
+
1126
+ * [get](docs/sdks/terminalconfigurations/README.md#get) - Fetch the configuration for a given Terminal Application
1127
+
1128
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1129
+ you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
1130
+
1089
1131
  ### [transfers](docs/sdks/transfers/README.md)
1090
1132
 
1091
1133
  * [create](docs/sdks/transfers/README.md#create) - Move money by providing the source, destination, and amount in the request body.
@@ -1841,6 +1883,10 @@ you'll need to specify the `/terminalApplications.read` scope.
1841
1883
 
1842
1884
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1843
1885
  you'll need to specify the `/terminalApplications.read` scope.
1886
+ - [`terminalConfigurationsGet`](docs/sdks/terminalconfigurations/README.md#get) - Fetch the configuration for a given Terminal Application
1887
+
1888
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1889
+ you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
1844
1890
  - [`transfersCreate`](docs/sdks/transfers/README.md#create) - Move money by providing the source, destination, and amount in the request body.
1845
1891
 
1846
1892
  Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.