@barzkit/sdk 0.1.5 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +20 -2
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.1] - 2026-03-02
9
+
10
+ ### Added
11
+
12
+ - `@barzkit/mcp` — MCP Server for Claude Desktop, Cursor, Windsurf, VS Code Copilot (separate package in `plugins/mcp/`)
13
+ - 9 tools: create_wallet, send_transaction, check_balance, swap_tokens, lend_tokens, batch_transactions, freeze_wallet, unfreeze_wallet, fetch_with_payment
14
+ - `createBarzMcpServer()` — create MCP server with all wallet tools
15
+ - Stdio transport for standard MCP client integration
16
+ - MCP Server documentation (`docs/advanced/mcp-server.md`)
17
+
18
+ ## [0.2.0] - 2026-03-02
19
+
20
+ ### Added
21
+
22
+ - `@barzkit/langchain` — LangChain StructuredTool integration (separate package in `plugins/langchain/`)
23
+ - 8 tools: barz_send_transaction, barz_check_balance, barz_swap, barz_lend, barz_batch_transactions, barz_freeze_wallet, barz_unfreeze_wallet, barz_fetch_with_payment
24
+ - `createBarzTools(config)` — one-liner to create all tools from AgentConfig
25
+ - `createBarzToolkit(agent)` — wrap existing BarzAgent in LangChain tools
26
+ - Zod schemas with parameter descriptions for LLM tool calling
27
+ - LangChain tools documentation (`docs/advanced/langchain-tool.md`)
28
+ - `langchain-agent` example
29
+
8
30
  ## [0.1.5] - 2026-03-02
9
31
 
10
32
  ### Added
@@ -113,6 +135,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
113
135
  - `AgentEvent` type definitions for future event hooks
114
136
  - Dual-package build: ESM (`.mjs`) + CJS (`.js`) + DTS (`.d.ts`)
115
137
 
138
+ [0.2.1]: https://github.com/barzkit/sdk/compare/v0.2.0...v0.2.1
139
+ [0.2.0]: https://github.com/barzkit/sdk/compare/v0.1.5...v0.2.0
116
140
  [0.1.5]: https://github.com/barzkit/sdk/compare/v0.1.4...v0.1.5
117
141
  [0.1.4]: https://github.com/barzkit/sdk/compare/v0.1.3...v0.1.4
118
142
  [0.1.3]: https://github.com/barzkit/sdk/compare/v0.1.2...v0.1.3
package/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  <p align="center">
5
5
  <a href="https://www.npmjs.com/package/@barzkit/sdk"><img src="https://img.shields.io/npm/v/@barzkit/sdk.svg" alt="npm version"></a>
6
6
  <a href="https://github.com/barzkit/sdk/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"></a>
7
+ <img src="https://img.shields.io/badge/tests-77%20passed-brightgreen" alt="tests">
7
8
  </p>
8
9
  </p>
9
10
 
@@ -68,8 +69,24 @@ await agent.freeze()
68
69
 
69
70
  **Kill Switch** — Freeze the agent wallet instantly via Guardian Facet.
70
71
 
72
+ **DeFi Actions** — Swap tokens (Uniswap V3) and lend (Aave V3) with atomic approve+execute batches.
73
+
74
+ **x402 Payments** — Machine-to-machine HTTP payments. Auto-pay 402 responses, retry with proof. `fetchWithPayment()`.
75
+
76
+ **Multi-Chain** — Sepolia, Base Sepolia, Base mainnet. Add a new chain in 5 lines.
77
+
71
78
  **24/7 Security Monitoring** — Trust Wallet monitors every Barz account deployed via SDK. Free.
72
79
 
80
+ ## Plugins
81
+
82
+ Use BarzKit with your AI framework of choice:
83
+
84
+ | Plugin | Install | Description |
85
+ |--------|---------|-------------|
86
+ | [`@barzkit/elizaos`](https://www.npmjs.com/package/@barzkit/elizaos) | `npm i @barzkit/elizaos` | [ElizaOS](https://github.com/elizaOS/eliza) plugin — 8 actions, wallet provider, service |
87
+ | [`@barzkit/langchain`](https://www.npmjs.com/package/@barzkit/langchain) | `npm i @barzkit/langchain` | [LangChain](https://github.com/langchain-ai/langchainjs) tools — 8 StructuredTools with zod schemas |
88
+ | [`@barzkit/mcp`](https://www.npmjs.com/package/@barzkit/mcp) | `npx @barzkit/mcp` | [MCP](https://modelcontextprotocol.io) server — 9 tools for Claude Desktop, Cursor, Windsurf |
89
+
73
90
  ## API
74
91
 
75
92
  ```typescript
@@ -160,7 +177,8 @@ See [examples](https://github.com/barzkit/examples) for complete working example
160
177
  - [x] DeFi actions: swap, lend (Uniswap, Aave)
161
178
  - [x] x402 payment handler
162
179
  - [x] ElizaOS plugin
163
- - [ ] LangChain tool
180
+ - [x] LangChain tool
181
+ - [x] MCP Server (Claude Desktop, Cursor, Windsurf)
164
182
  - [ ] On-chain permission enforcement via Diamond Facets
165
183
 
166
184
  ## Contributing
@@ -173,4 +191,4 @@ MIT
173
191
 
174
192
  ---
175
193
 
176
- [Documentation](https://github.com/barzkit/docs) · [Examples](https://github.com/barzkit/examples) · [Trust Wallet Barz](https://github.com/trustwallet/barz)
194
+ [Documentation](https://github.com/barzkit/docs) · [Examples](https://github.com/barzkit/examples) · [Plugins](https://github.com/barzkit/plugins) · [Trust Wallet Barz](https://github.com/trustwallet/barz) · [Pimlico Docs](https://docs.pimlico.io)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barzkit/sdk",
3
- "version": "0.1.5",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Self-custody AI agent wallets with passkeys, gasless transactions & programmable permissions (ERC-4337)",
6
6
  "main": "./dist/index.cjs",