@paywithtender/mcp 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.
- package/README.md +8 -0
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -40,6 +40,14 @@ Use a dedicated agent wallet holding only what you're happy for the agent to spe
|
|
|
40
40
|
|
|
41
41
|
Leave out `TENDER_PRIVATE_KEY` to run read-only (`check_coin` and `quote` only).
|
|
42
42
|
|
|
43
|
+
## Try it
|
|
44
|
+
|
|
45
|
+
Tender runs its own paid API you can test against: `https://facilitator.paywithtender.com/api` lists the endpoints. Once the server is set up, ask your AI:
|
|
46
|
+
|
|
47
|
+
> Pay https://facilitator.paywithtender.com/api/token?address=0xda4a075417d613ec018c8959fea6ab5ac5d5b78c with my bag
|
|
48
|
+
|
|
49
|
+
It costs $0.01 plus gas, in whatever token you set as `TENDER_PAY_WITH`.
|
|
50
|
+
|
|
43
51
|
## Settings
|
|
44
52
|
|
|
45
53
|
| Variable | Default | |
|
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { type Address, type Hex } from "viem";
|
|
3
|
-
export declare const VERSION = "0.1.
|
|
3
|
+
export declare const VERSION = "0.1.1";
|
|
4
4
|
export interface TenderMcpConfig {
|
|
5
5
|
/** Agent wallet key. Without it, only the read-only tools work. */
|
|
6
6
|
privateKey?: Hex;
|
package/dist/server.js
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { createPublicClient, createWalletClient, defineChain, erc20Abi, formatUnits, getAddress, http, isAddress, } from "viem";
|
|
4
4
|
import { privateKeyToAccount } from "viem/accounts";
|
|
5
5
|
import { HEADER_PAYMENT, HEADER_REQUIRED, HEADER_RESPONSE, ROBINHOOD, SCHEME_SWAP, buildPayment, decodeHeader, encodeHeader, ensurePermit2Approval, } from "@paywithtender/sdk";
|
|
6
|
-
export const VERSION = "0.1.
|
|
6
|
+
export const VERSION = "0.1.1";
|
|
7
7
|
const USD = 1000000n;
|
|
8
8
|
function usdUnits(v, fallback) {
|
|
9
9
|
const s = (v ?? fallback).replace("$", "").trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paywithtender/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"mcpName": "io.github.paywithtender/tender",
|
|
4
5
|
"description": "MCP server that lets any AI agent pay x402 APIs with any token on Robinhood Chain, through Tender.",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"homepage": "https://paywithtender.com",
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
47
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
47
|
-
"@paywithtender/sdk": "^0.1.
|
|
48
|
+
"@paywithtender/sdk": "^0.1.2",
|
|
48
49
|
"viem": "^2.21.0",
|
|
49
50
|
"zod": "^4.1.0"
|
|
50
51
|
},
|