@ramp-kit/mcp 0.1.4 → 0.1.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,MAAM,uGAOT,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CA0PtC,CAAC"}
1
+ {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,MAAM,uGAOT,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAwStC,CAAC"}
package/dist/docs.js CHANGED
@@ -27,8 +27,8 @@ with one line.
27
27
 
28
28
  **Packages (npm):**
29
29
  - \`@ramp-kit/core\` — SDK: EtherfuseProvider (Stellar-native, PIX/SPEI),
30
- MantecaProvider (broad LATAM rails; settles on Stellar verified live —
31
- plus EVM/Tron), MockProvider (dev),
30
+ MantecaProvider (broadest LATAM rails payouts across 11 countries;
31
+ settles on Stellar, verified live, plus EVM/Tron), MockProvider (dev),
32
32
  RampRouter (country/currency routing + live quote comparison), Stellar
33
33
  helpers (trustlines, claimable-balance claims, tx signing).
34
34
  - \`@ramp-kit/react\` — <RampWidget /> 3-step flow + useQuote/useOrder hooks.
@@ -133,6 +133,14 @@ from the Manteca team (not self-service): md-api-key header, faucet at
133
133
  faucet.manteca.dev, PIX test QRs ("pix", "pixmanualamount"), names containing
134
134
  "fail" simulate rejected onboarding.
135
135
 
136
+ ## Manteca fiat rails are asymmetric
137
+
138
+ Deposits (onramp) only in BR (PIX), AR, MX, CL. Payouts (offramp) across 11
139
+ countries: those plus CO (COP), PE (PEN), GT (GTQ), PA (PUSD), CR (CRC),
140
+ BO (BOB), PH (PHP). Pass a direction to RampRouter.eligible/resolve —
141
+ providers declare capabilities.onramp / .offramp when the two differ, so an
142
+ onramp in Colombia correctly resolves to no provider.
143
+
136
144
  ## Manteca users (required before quoting)
137
145
 
138
146
  Every Manteca quote/order runs on behalf of an onboarded USER — the
@@ -184,6 +192,44 @@ RampError { provider, code: auth | quote_expired | tx_expired |
184
192
  kyc_required | unsupported | network | provider_error }.`,
185
193
  production: `# Path to production
186
194
 
195
+ ## The integration model (how a real app ships this)
196
+
197
+ A partner API key identifies the BUSINESS, not the user. One key per app,
198
+ held server-side. End users never see or need one — they are customers
199
+ under that partner account, identified by a customerId.
200
+
201
+ browser (no key) → your backend (keys in env) → Etherfuse / Manteca
202
+ <RampWidget/> @ramp-kit/server
203
+
204
+ \`\`\`ts
205
+ // backend — the only place keys exist
206
+ createRampServer({
207
+ proxy: { apiKey: process.env.ETHERFUSE_API_KEY!, environment: "production" },
208
+ manteca: { apiKey: process.env.MANTECA_API_KEY!, environment: "production" },
209
+ }).listen(8787);
210
+
211
+ // frontend — EMPTY key, pointed at your backend
212
+ new EtherfuseProvider({ apiKey: "", baseUrl: "https://api.myapp.com/ramp/etherfuse" });
213
+ new MantecaProvider({ apiKey: "", baseUrl: "https://api.myapp.com/ramp/manteca" });
214
+ \`\`\`
215
+
216
+ Runnable reference: examples/backend-integration/ in the repo.
217
+
218
+ ## Dev environment setup (integrating developer)
219
+
220
+ 1. Keys: Etherfuse self-service (sandbox.etherfuse.com → approve own KYB →
221
+ api_sand… key); Manteca by request to their team. One provider is enough
222
+ to start — createRampServer enables whichever config it gets.
223
+ 2. .env (gitignored), read by the BACKEND — never VITE_/NEXT_PUBLIC_, which
224
+ would ship the key to the browser:
225
+ ETHERFUSE_API_KEY, ETHERFUSE_CUSTOMER_ID, MANTECA_API_KEY,
226
+ MANTECA_USER_ID, RAMP_ENV=sandbox|production
227
+ 3. Production: platform secret manager instead of a file.
228
+
229
+ What stays the developer's job: onboarding each end user with the provider
230
+ (KYC) to get their customerId, and resolving it from the session. The kit
231
+ takes over from quote onward.
232
+
187
233
  ## Ready in code today
188
234
  - environment: "sandbox" | "production" on every provider flips base URLs;
189
235
  stellarConfigFor("production") → mainnet Horizon + passphrase.
package/dist/docs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,UAAU;IACV,YAAY;IACZ,eAAe;IACf,cAAc;IACd,YAAY;IACZ,iBAAiB;CACT,CAAC;AAIX,MAAM,CAAC,MAAM,IAAI,GAA0B;IACzC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA6BoC;IAE9C,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAkE2D;IAEvE,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA4C8B;IAE/C,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA4ByC;IAEvD,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFA4BoE;IAEhF,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA2CW;CAC7B,CAAC"}
1
+ {"version":3,"file":"docs.js","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,UAAU;IACV,YAAY;IACZ,eAAe;IACf,cAAc;IACd,YAAY;IACZ,iBAAiB;CACT,CAAC;AAIX,MAAM,CAAC,MAAM,IAAI,GAA0B;IACzC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA6BoC;IAE9C,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAkE2D;IAEvE,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAoD8B;IAE/C,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA4ByC;IAEvD,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAkEoE;IAEhF,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA2CW;CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramp-kit/mcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "MCP server for the LATAM Ramp Kit: lets AI agents explore providers, fetch live ramp quotes, create sandbox orders, simulate PIX/SPEI deposits and inspect Stellar wallets — plus built-in documentation tools covering usage, architecture and the path to production",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@modelcontextprotocol/sdk": "^1.12.0",
18
18
  "zod": "^3.23.0",
19
- "@ramp-kit/core": "0.1.4"
19
+ "@ramp-kit/core": "0.1.5"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.0.0",