@peridot-agent/agent-kit 0.2.0 → 0.2.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 +61 -1
- package/dist/adapters/langchain/index.cjs +228 -115
- package/dist/adapters/langchain/index.cjs.map +1 -1
- package/dist/adapters/langchain/index.d.cts +1 -1
- package/dist/adapters/langchain/index.d.ts +1 -1
- package/dist/adapters/langchain/index.js +196 -83
- package/dist/adapters/langchain/index.js.map +1 -1
- package/dist/adapters/mcp/server.cjs +228 -115
- package/dist/adapters/mcp/server.cjs.map +1 -1
- package/dist/adapters/mcp/server.js +196 -83
- package/dist/adapters/mcp/server.js.map +1 -1
- package/dist/adapters/vercel-ai/index.cjs +228 -115
- package/dist/adapters/vercel-ai/index.cjs.map +1 -1
- package/dist/adapters/vercel-ai/index.d.cts +1 -1
- package/dist/adapters/vercel-ai/index.d.ts +1 -1
- package/dist/adapters/vercel-ai/index.js +196 -83
- package/dist/adapters/vercel-ai/index.js.map +1 -1
- package/dist/index.cjs +228 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +196 -83
- package/dist/index.js.map +1 -1
- package/dist/{types-Cg95um6s.d.cts → types-BP04EsT6.d.cts} +1 -8
- package/dist/{types-Cg95um6s.d.ts → types-BP04EsT6.d.ts} +1 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,66 @@ The Peridot Agent Kit is a TypeScript SDK that wraps Peridot's lending protocol
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## Get started in 3 steps
|
|
10
|
+
|
|
11
|
+
### Step 1 — Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @peridot-agent/agent-kit
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Step 2 — Pick your setup
|
|
18
|
+
|
|
19
|
+
**Use with Claude Desktop or Cursor (no code needed)**
|
|
20
|
+
|
|
21
|
+
Add this to `~/.claude/claude_desktop_config.json` (or your Cursor MCP config):
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"peridot": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": ["-y", "-p", "@peridot-agent/agent-kit", "peridot-mcp"],
|
|
29
|
+
"env": {
|
|
30
|
+
"BICONOMY_API_KEY": "your-key-here"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`BICONOMY_API_KEY` is optional — omit it if you only use BSC, Monad, or Somnia. It's only needed for cross-chain tools (Arbitrum, Base, Ethereum, Polygon, Optimism, Avalanche).
|
|
38
|
+
|
|
39
|
+
Restart Claude Desktop. Ask it *"What can I lend on Peridot?"* — it just works.
|
|
40
|
+
|
|
41
|
+
**Use in your own agent (LangChain)**
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { createLangChainTools } from "@peridot-agent/agent-kit/langchain"
|
|
45
|
+
|
|
46
|
+
const tools = createLangChainTools({
|
|
47
|
+
biconomyApiKey: process.env.BICONOMY_API_KEY,
|
|
48
|
+
})
|
|
49
|
+
// pass tools to your agent as usual
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Use in your own agent (Vercel AI SDK)**
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import { createVercelAITools } from "@peridot-agent/agent-kit/vercel-ai"
|
|
56
|
+
|
|
57
|
+
const tools = createVercelAITools({
|
|
58
|
+
biconomyApiKey: process.env.BICONOMY_API_KEY,
|
|
59
|
+
})
|
|
60
|
+
// pass tools to generateText / streamText
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Step 3 — Get a Biconomy API key
|
|
64
|
+
|
|
65
|
+
Cross-chain tools (Arbitrum, Base, Ethereum, Polygon, Optimism, Avalanche) require a [Biconomy MEE API key](https://dashboard.biconomy.io). Same-chain tools on BSC, Monad, and Somnia work without one.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
9
69
|
## Table of Contents
|
|
10
70
|
|
|
11
71
|
1. [Why this exists](#-why-this-exists)
|
|
@@ -77,7 +137,7 @@ The MCP server exposes all Peridot tools over [Model Context Protocol](https://m
|
|
|
77
137
|
|
|
78
138
|
| Variable | Required | Description |
|
|
79
139
|
|---|---|---|
|
|
80
|
-
| `BICONOMY_API_KEY` |
|
|
140
|
+
| `BICONOMY_API_KEY` | No* | Biconomy MEE API key. Required only for cross-chain tools (Arbitrum, Base, Ethereum, Polygon, Optimism, Avalanche). BSC, Monad, and Somnia work without it. |
|
|
81
141
|
| `PERIDOT_API_URL` | No | Override platform API (default: `https://app.peridot.finance`) |
|
|
82
142
|
| `PERIDOT_NETWORK` | No | `mainnet` (default) or `testnet` |
|
|
83
143
|
| `PERIDOT_RPC_BSC` | No | Custom BSC RPC URL |
|