402mob-merchant-sdk 0.1.0 → 0.1.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 (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,6 +6,10 @@ It wraps the existing HTTP merchant API. It does not custody keys, sign for wall
6
6
 
7
7
  The SDK is intended for server-side and agent-runtime use. `evidence.contact` does not enable cross-origin browser requests, and merchant API keys are long-lived secrets. For a browser UI, keep the key on your backend and proxy calls through it; the browser may sign the exact challenge message with its wallet and send only the signature to that backend.
8
8
 
9
+ ### Prefer MCP for a connected agent?
10
+
11
+ The SDK is optional. An agent already connected to `https://evidence.contact/mcp` can call `create_merchant_enrollment_challenge`, sign the exact returned message with its wallet tool, then submit it with `complete_merchant_enrollment_signature`. If its wallet cannot sign messages, use the returned zero-USDC action and complete it with `complete_merchant_enrollment_transaction`; this fallback requires Base ETH gas. The MCP caller and wallet signer are separate runtime tools. Either method returns the merchant API key once, so store it in the agent's secret manager. Use the [copy-ready enrollment prompt](https://evidence.contact/merchant-api.md#agent-enrollment-prompt). Choose this SDK when your Node.js app needs to call the merchant HTTP API directly.
12
+
9
13
  ## Install
10
14
 
11
15
  Install from npm:
@@ -14,7 +18,7 @@ Install from npm:
14
18
  npm install 402mob-merchant-sdk
15
19
  ```
16
20
 
17
- The source is available at [github.com/gggggggg424242/402mob-merchant-sdk](https://github.com/gggggggg424242/402mob-merchant-sdk).
21
+ The current release is **0.1.1**. See the [npm package page](https://www.npmjs.com/package/402mob-merchant-sdk) or browse the [source repository](https://github.com/gggggggg424242/402mob-merchant-sdk).
18
22
 
19
23
  Requires Node.js 18 or newer. The SDK uses the built-in Fetch API and has no runtime dependencies.
20
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "402mob-merchant-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Server-side TypeScript client for enrolling and operating 402Mob merchants.",
5
5
  "license": "MIT",
6
6
  "repository": {