@mcp-dockmaster/mcp-cryptowallet-evm 1.0.0 → 1.0.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/.env.example +2 -0
- package/README.md +6 -0
- package/build/handlers/wallet.d.ts +2 -3
- package/build/handlers/wallet.js +58 -159
- package/build/handlers/wallet.js.map +1 -1
- package/build/index.js +0 -0
- package/build/index.js.map +1 -1
- package/build/tools.d.ts +0 -64
- package/build/tools.js +16 -17
- package/build/tools.js.map +1 -1
- package/package.json +1 -1
- package/src/handlers/utils.ts +12 -1
- package/src/handlers/wallet.ts +0 -47
- package/src/tools.ts +26 -26
- package/build/handlers/wallet.types.d.ts +0 -14
- package/build/handlers/wallet.types.js +0 -2
- package/build/handlers/wallet.types.js.map +0 -1
package/src/tools.ts
CHANGED
@@ -135,9 +135,9 @@ export const tools = [
|
|
135
135
|
inputSchema: {
|
136
136
|
type: "object",
|
137
137
|
properties: {
|
138
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" }
|
138
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." }
|
139
139
|
},
|
140
|
-
required: [
|
140
|
+
required: []
|
141
141
|
}
|
142
142
|
},
|
143
143
|
{
|
@@ -146,9 +146,9 @@ export const tools = [
|
|
146
146
|
inputSchema: {
|
147
147
|
type: "object",
|
148
148
|
properties: {
|
149
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" }
|
149
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." }
|
150
150
|
},
|
151
|
-
required: [
|
151
|
+
required: []
|
152
152
|
}
|
153
153
|
},
|
154
154
|
{
|
@@ -157,10 +157,10 @@ export const tools = [
|
|
157
157
|
inputSchema: {
|
158
158
|
type: "object",
|
159
159
|
properties: {
|
160
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
160
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
161
161
|
password: { type: "string", description: "The password to decrypt the wallet if it's encrypted" }
|
162
162
|
},
|
163
|
-
required: [
|
163
|
+
required: []
|
164
164
|
}
|
165
165
|
},
|
166
166
|
// Blockchain Methods
|
@@ -170,11 +170,11 @@ export const tools = [
|
|
170
170
|
inputSchema: {
|
171
171
|
type: "object",
|
172
172
|
properties: {
|
173
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
173
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
174
174
|
provider: { type: "string", description: "Optional JSON RPC provider URL" },
|
175
175
|
blockTag: { type: "string", description: "Optional block tag (latest, pending, etc.)" }
|
176
176
|
},
|
177
|
-
required: ["
|
177
|
+
required: ["provider"]
|
178
178
|
}
|
179
179
|
},
|
180
180
|
{
|
@@ -183,10 +183,10 @@ export const tools = [
|
|
183
183
|
inputSchema: {
|
184
184
|
type: "object",
|
185
185
|
properties: {
|
186
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
186
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
187
187
|
provider: { type: "string", description: "Optional JSON RPC provider URL" }
|
188
188
|
},
|
189
|
-
required: [
|
189
|
+
required: []
|
190
190
|
}
|
191
191
|
},
|
192
192
|
{
|
@@ -195,10 +195,10 @@ export const tools = [
|
|
195
195
|
inputSchema: {
|
196
196
|
type: "object",
|
197
197
|
properties: {
|
198
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
198
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
199
199
|
provider: { type: "string", description: "Optional JSON RPC provider URL" }
|
200
200
|
},
|
201
|
-
required: [
|
201
|
+
required: []
|
202
202
|
}
|
203
203
|
},
|
204
204
|
{
|
@@ -207,11 +207,11 @@ export const tools = [
|
|
207
207
|
inputSchema: {
|
208
208
|
type: "object",
|
209
209
|
properties: {
|
210
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
210
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
211
211
|
provider: { type: "string", description: "Optional JSON RPC provider URL" },
|
212
212
|
blockTag: { type: "string", description: "Optional block tag (latest, pending, etc.)" }
|
213
213
|
},
|
214
|
-
required: [
|
214
|
+
required: []
|
215
215
|
}
|
216
216
|
},
|
217
217
|
{
|
@@ -220,7 +220,7 @@ export const tools = [
|
|
220
220
|
inputSchema: {
|
221
221
|
type: "object",
|
222
222
|
properties: {
|
223
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
223
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
224
224
|
provider: { type: "string", description: "Optional JSON RPC provider URL" },
|
225
225
|
transaction: {
|
226
226
|
type: "object",
|
@@ -237,7 +237,7 @@ export const tools = [
|
|
237
237
|
},
|
238
238
|
blockTag: { type: "string", description: "Optional block tag (latest, pending, etc.)" }
|
239
239
|
},
|
240
|
-
required: ["
|
240
|
+
required: ["transaction"]
|
241
241
|
}
|
242
242
|
},
|
243
243
|
|
@@ -248,7 +248,7 @@ export const tools = [
|
|
248
248
|
inputSchema: {
|
249
249
|
type: "object",
|
250
250
|
properties: {
|
251
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
251
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
252
252
|
provider: { type: "string", description: "Optional JSON RPC provider URL" },
|
253
253
|
transaction: {
|
254
254
|
type: "object",
|
@@ -268,7 +268,7 @@ export const tools = [
|
|
268
268
|
required: ["to"]
|
269
269
|
}
|
270
270
|
},
|
271
|
-
required: ["
|
271
|
+
required: ["transaction"]
|
272
272
|
}
|
273
273
|
},
|
274
274
|
{
|
@@ -277,7 +277,7 @@ export const tools = [
|
|
277
277
|
inputSchema: {
|
278
278
|
type: "object",
|
279
279
|
properties: {
|
280
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
280
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
281
281
|
provider: { type: "string", description: "Optional JSON RPC provider URL" },
|
282
282
|
transaction: {
|
283
283
|
type: "object",
|
@@ -297,7 +297,7 @@ export const tools = [
|
|
297
297
|
required: ["to"]
|
298
298
|
}
|
299
299
|
},
|
300
|
-
required: ["
|
300
|
+
required: ["transaction"]
|
301
301
|
}
|
302
302
|
},
|
303
303
|
{
|
@@ -306,7 +306,7 @@ export const tools = [
|
|
306
306
|
inputSchema: {
|
307
307
|
type: "object",
|
308
308
|
properties: {
|
309
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
309
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
310
310
|
provider: { type: "string", description: "Optional JSON RPC provider URL" },
|
311
311
|
transaction: {
|
312
312
|
type: "object",
|
@@ -326,7 +326,7 @@ export const tools = [
|
|
326
326
|
required: ["to"]
|
327
327
|
}
|
328
328
|
},
|
329
|
-
required: ["
|
329
|
+
required: ["transaction"]
|
330
330
|
}
|
331
331
|
},
|
332
332
|
|
@@ -337,10 +337,10 @@ export const tools = [
|
|
337
337
|
inputSchema: {
|
338
338
|
type: "object",
|
339
339
|
properties: {
|
340
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
340
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
341
341
|
message: { type: "string", description: "The message to sign" }
|
342
342
|
},
|
343
|
-
required: ["
|
343
|
+
required: ["message"]
|
344
344
|
}
|
345
345
|
},
|
346
346
|
{
|
@@ -349,12 +349,12 @@ export const tools = [
|
|
349
349
|
inputSchema: {
|
350
350
|
type: "object",
|
351
351
|
properties: {
|
352
|
-
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON)" },
|
352
|
+
wallet: { type: "string", description: "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set." },
|
353
353
|
domain: { type: "object", description: "The domain data" },
|
354
354
|
types: { type: "object", description: "The type definitions" },
|
355
355
|
value: { type: "object", description: "The value to sign" }
|
356
356
|
},
|
357
|
-
required: ["
|
357
|
+
required: ["domain", "types", "value"]
|
358
358
|
}
|
359
359
|
},
|
360
360
|
{
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export type fromPrivateKeyHandlerInput = {
|
2
|
-
privateKey: string;
|
3
|
-
provider?: string;
|
4
|
-
};
|
5
|
-
export type createMnemonicPhraseHandlerInput = {
|
6
|
-
locale?: string;
|
7
|
-
length?: 12 | 15 | 18 | 21 | 24;
|
8
|
-
};
|
9
|
-
export type fromMnemonicHandlerInput = {
|
10
|
-
mnemonic: string;
|
11
|
-
provider?: string;
|
12
|
-
path?: string;
|
13
|
-
locale?: string;
|
14
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"wallet.types.js","sourceRoot":"","sources":["../../src/handlers/wallet.types.ts"],"names":[],"mappings":""}
|