@aibtc/mcp-server 1.42.0 → 1.42.2
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/dist/services/x402.service.d.ts +30 -1
- package/dist/services/x402.service.d.ts.map +1 -1
- package/dist/services/x402.service.js +95 -13
- package/dist/services/x402.service.js.map +1 -1
- package/dist/tools/endpoint.tools.d.ts.map +1 -1
- package/dist/tools/endpoint.tools.js +30 -26
- package/dist/tools/endpoint.tools.js.map +1 -1
- package/dist/tools/pillar.tools.d.ts.map +1 -1
- package/dist/tools/pillar.tools.js +32 -38
- package/dist/tools/pillar.tools.js.map +1 -1
- package/dist/tools/skill-mappings.d.ts.map +1 -1
- package/dist/tools/skill-mappings.js +55 -0
- package/dist/tools/skill-mappings.js.map +1 -1
- package/dist/tools/styx.tools.d.ts.map +1 -1
- package/dist/tools/styx.tools.js +2 -4
- package/dist/tools/styx.tools.js.map +1 -1
- package/dist/transactions/rune-transfer-builder.d.ts.map +1 -1
- package/dist/transactions/rune-transfer-builder.js +1 -3
- package/dist/transactions/rune-transfer-builder.js.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/skill/SKILL.md +1 -1
- package/dist/utils/validation.d.ts +0 -67
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -74
- package/dist/utils/validation.js.map +0 -1
package/skill/SKILL.md
CHANGED
|
@@ -4,7 +4,7 @@ description: Bitcoin L1 wallet for agents - check balances, send BTC, manage UTX
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: aibtcdev
|
|
7
|
-
version: 1.42.
|
|
7
|
+
version: 1.42.2 # x-release-please-version
|
|
8
8
|
npm: "@aibtc/mcp-server"
|
|
9
9
|
github: https://github.com/aibtcdev/aibtc-mcp-server
|
|
10
10
|
---
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Validate a Stacks address
|
|
4
|
-
*/
|
|
5
|
-
export declare function isValidStacksAddress(address: string): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Validate a contract ID
|
|
8
|
-
*/
|
|
9
|
-
export declare function isValidContractId(contractId: string): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Validate a transaction ID
|
|
12
|
-
*/
|
|
13
|
-
export declare function isValidTxId(txid: string): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Zod schema for Stacks address
|
|
16
|
-
*/
|
|
17
|
-
export declare const stacksAddressSchema: z.ZodString;
|
|
18
|
-
/**
|
|
19
|
-
* Zod schema for contract ID
|
|
20
|
-
*/
|
|
21
|
-
export declare const contractIdSchema: z.ZodString;
|
|
22
|
-
/**
|
|
23
|
-
* Zod schema for transaction ID
|
|
24
|
-
*/
|
|
25
|
-
export declare const txIdSchema: z.ZodString;
|
|
26
|
-
/**
|
|
27
|
-
* Zod schema for STX amount (micro-STX as string)
|
|
28
|
-
*/
|
|
29
|
-
export declare const stxAmountSchema: z.ZodString;
|
|
30
|
-
/**
|
|
31
|
-
* Zod schema for network
|
|
32
|
-
*/
|
|
33
|
-
export declare const networkSchema: z.ZodEnum<{
|
|
34
|
-
mainnet: "mainnet";
|
|
35
|
-
testnet: "testnet";
|
|
36
|
-
}>;
|
|
37
|
-
/**
|
|
38
|
-
* Zod schema for HTTP method
|
|
39
|
-
*/
|
|
40
|
-
export declare const httpMethodSchema: z.ZodEnum<{
|
|
41
|
-
POST: "POST";
|
|
42
|
-
GET: "GET";
|
|
43
|
-
PUT: "PUT";
|
|
44
|
-
DELETE: "DELETE";
|
|
45
|
-
}>;
|
|
46
|
-
/**
|
|
47
|
-
* Zod schema for post condition mode
|
|
48
|
-
*/
|
|
49
|
-
export declare const postConditionModeSchema: z.ZodEnum<{
|
|
50
|
-
allow: "allow";
|
|
51
|
-
deny: "deny";
|
|
52
|
-
}>;
|
|
53
|
-
/**
|
|
54
|
-
* Common input schemas for tools
|
|
55
|
-
*/
|
|
56
|
-
export declare const commonSchemas: {
|
|
57
|
-
address: z.ZodString;
|
|
58
|
-
optionalAddress: z.ZodOptional<z.ZodString>;
|
|
59
|
-
contractId: z.ZodString;
|
|
60
|
-
txid: z.ZodString;
|
|
61
|
-
amount: z.ZodString;
|
|
62
|
-
tokenAmount: z.ZodString;
|
|
63
|
-
memo: z.ZodOptional<z.ZodString>;
|
|
64
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
65
|
-
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,aAG/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAG5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,aAGtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,aAG3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;;EAAiC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;EAA2C,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;EAA4B,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;CAUzB,CAAC"}
|
package/dist/utils/validation.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Stacks address validation regex
|
|
4
|
-
*/
|
|
5
|
-
const STACKS_ADDRESS_REGEX = /^S[PMT][A-Z0-9]{38,}$/;
|
|
6
|
-
/**
|
|
7
|
-
* Contract ID validation regex (address.contract-name)
|
|
8
|
-
*/
|
|
9
|
-
const CONTRACT_ID_REGEX = /^S[PMT][A-Z0-9]{38,}\.[a-zA-Z][a-zA-Z0-9-]*$/;
|
|
10
|
-
/**
|
|
11
|
-
* Transaction ID validation regex (64 hex chars)
|
|
12
|
-
*/
|
|
13
|
-
const TXID_REGEX = /^(0x)?[a-fA-F0-9]{64}$/;
|
|
14
|
-
/**
|
|
15
|
-
* Validate a Stacks address
|
|
16
|
-
*/
|
|
17
|
-
export function isValidStacksAddress(address) {
|
|
18
|
-
return STACKS_ADDRESS_REGEX.test(address);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Validate a contract ID
|
|
22
|
-
*/
|
|
23
|
-
export function isValidContractId(contractId) {
|
|
24
|
-
return CONTRACT_ID_REGEX.test(contractId);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Validate a transaction ID
|
|
28
|
-
*/
|
|
29
|
-
export function isValidTxId(txid) {
|
|
30
|
-
return TXID_REGEX.test(txid);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Zod schema for Stacks address
|
|
34
|
-
*/
|
|
35
|
-
export const stacksAddressSchema = z.string().refine((val) => isValidStacksAddress(val), { message: "Invalid Stacks address. Must start with SP (mainnet) or ST (testnet)" });
|
|
36
|
-
/**
|
|
37
|
-
* Zod schema for contract ID
|
|
38
|
-
*/
|
|
39
|
-
export const contractIdSchema = z.string().refine((val) => isValidContractId(val), { message: "Invalid contract ID. Must be in format: address.contract-name" });
|
|
40
|
-
/**
|
|
41
|
-
* Zod schema for transaction ID
|
|
42
|
-
*/
|
|
43
|
-
export const txIdSchema = z.string().refine((val) => isValidTxId(val), { message: "Invalid transaction ID. Must be 64 hex characters" });
|
|
44
|
-
/**
|
|
45
|
-
* Zod schema for STX amount (micro-STX as string)
|
|
46
|
-
*/
|
|
47
|
-
export const stxAmountSchema = z.string().refine((val) => /^\d+$/.test(val), { message: "Amount must be a positive integer string (micro-STX)" });
|
|
48
|
-
/**
|
|
49
|
-
* Zod schema for network
|
|
50
|
-
*/
|
|
51
|
-
export const networkSchema = z.enum(["mainnet", "testnet"]);
|
|
52
|
-
/**
|
|
53
|
-
* Zod schema for HTTP method
|
|
54
|
-
*/
|
|
55
|
-
export const httpMethodSchema = z.enum(["GET", "POST", "PUT", "DELETE"]);
|
|
56
|
-
/**
|
|
57
|
-
* Zod schema for post condition mode
|
|
58
|
-
*/
|
|
59
|
-
export const postConditionModeSchema = z.enum(["allow", "deny"]);
|
|
60
|
-
/**
|
|
61
|
-
* Common input schemas for tools
|
|
62
|
-
*/
|
|
63
|
-
export const commonSchemas = {
|
|
64
|
-
address: z.string().describe("Stacks address (starts with SP or ST)"),
|
|
65
|
-
optionalAddress: z.string().optional().describe("Optional Stacks address"),
|
|
66
|
-
contractId: z.string().describe("Contract ID in format: address.contract-name"),
|
|
67
|
-
txid: z.string().describe("Transaction ID (64 character hex string)"),
|
|
68
|
-
amount: z.string().describe("Amount in micro-STX (1 STX = 1,000,000 micro-STX)"),
|
|
69
|
-
tokenAmount: z.string().describe("Token amount in smallest unit"),
|
|
70
|
-
memo: z.string().optional().describe("Optional memo message"),
|
|
71
|
-
limit: z.number().optional().default(20).describe("Maximum number of results"),
|
|
72
|
-
offset: z.number().optional().default(0).describe("Offset for pagination"),
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=validation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":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