@kasarlabs/okx-mcp 0.1.0
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/LICENSE +21 -0
- package/README.md +27 -0
- package/bin/okx-mcp.js +2 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +48 -0
- package/build/index.js.map +1 -0
- package/build/lib/abis/okxAbi.d.ts +22 -0
- package/build/lib/abis/okxAbi.js +85 -0
- package/build/lib/abis/okxAbi.js.map +1 -0
- package/build/lib/constant/contract.d.ts +3 -0
- package/build/lib/constant/contract.js +4 -0
- package/build/lib/constant/contract.js.map +1 -0
- package/build/lib/dependances/types.d.ts +2 -0
- package/build/lib/dependances/types.js +45 -0
- package/build/lib/dependances/types.js.map +1 -0
- package/build/lib/types/accounts.d.ts +57 -0
- package/build/lib/types/accounts.js +2 -0
- package/build/lib/types/accounts.js.map +1 -0
- package/build/lib/utils/AccountManager.d.ts +9 -0
- package/build/lib/utils/AccountManager.js +76 -0
- package/build/lib/utils/AccountManager.js.map +1 -0
- package/build/schemas/schema.d.ts +14 -0
- package/build/schemas/schema.js +9 -0
- package/build/schemas/schema.js.map +1 -0
- package/build/tools/createAccount.d.ts +15 -0
- package/build/tools/createAccount.js +22 -0
- package/build/tools/createAccount.js.map +1 -0
- package/build/tools/deployAccount.d.ts +16 -0
- package/build/tools/deployAccount.js +22 -0
- package/build/tools/deployAccount.js.map +1 -0
- package/package.json +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Kasar Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Snak - OKX Plugin
|
|
2
|
+
|
|
3
|
+
The OKX Plugin provides tools for creating and deploying OKX wallet accounts on the Starknet blockchain.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
This plugin adds the following tools:
|
|
8
|
+
|
|
9
|
+
- **create_new_okx_account**: Create a new OKX account and return the privateKey, publicKey, and contractAddress.
|
|
10
|
+
- **deploy_existing_okx_account**: Deploy an existing OKX Account and return the privateKey, publicKey, and contractAddress.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
The OKX Plugin is used internally by the Starknet Agent and doesn't need to be called directly. When the agent is initialized, it automatically registers these tools, making them available for use.
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
When asking the agent to perform OKX-related tasks, it will use the appropriate tool from this plugin:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
"Create a new OKX wallet for me" // Uses create_new_okx_account
|
|
22
|
+
"Deploy my existing OKX account" // Uses deploy_existing_okx_account
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Development
|
|
26
|
+
|
|
27
|
+
To extend this plugin, add new tools in the `src/tools` directory and register them in the `registerTools` function in `src/tools/index.ts`.
|
package/bin/okx-mcp.js
ADDED
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
|
+
import { registerToolsWithServer, getOnchainRead, } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
import dotenv from 'dotenv';
|
|
6
|
+
import { accountDetailsSchema } from './schemas/schema.js';
|
|
7
|
+
import { DeployOKXAccount } from './tools/deployAccount.js';
|
|
8
|
+
import { CreateOKXAccount } from './tools/createAccount.js';
|
|
9
|
+
dotenv.config();
|
|
10
|
+
const server = new McpServer({
|
|
11
|
+
name: 'starknet-okx-mcp',
|
|
12
|
+
version: '0.0.1',
|
|
13
|
+
});
|
|
14
|
+
const registerTools = (OkxToolRegistry) => {
|
|
15
|
+
OkxToolRegistry.push({
|
|
16
|
+
name: 'create_new_okx_account',
|
|
17
|
+
description: 'Create a new OKX account and return the privateKey/publicKey/contractAddress',
|
|
18
|
+
execute: async () => {
|
|
19
|
+
const response = await CreateOKXAccount();
|
|
20
|
+
response;
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
OkxToolRegistry.push({
|
|
24
|
+
name: 'deploy_existing_okx_account',
|
|
25
|
+
description: 'Deploy an existing OKX Account return the privateKey/publicKey/contractAddress',
|
|
26
|
+
schema: accountDetailsSchema,
|
|
27
|
+
execute: async (params) => {
|
|
28
|
+
const onchainRead = getOnchainRead();
|
|
29
|
+
return await DeployOKXAccount(onchainRead, params);
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export const RegisterToolInServer = async () => {
|
|
34
|
+
const tools = [];
|
|
35
|
+
registerTools(tools);
|
|
36
|
+
await registerToolsWithServer(server, tools);
|
|
37
|
+
};
|
|
38
|
+
async function main() {
|
|
39
|
+
const transport = new StdioServerTransport();
|
|
40
|
+
await RegisterToolInServer();
|
|
41
|
+
await server.connect(transport);
|
|
42
|
+
console.error('Starknet OKX MCP Server running on stdio');
|
|
43
|
+
}
|
|
44
|
+
main().catch((error) => {
|
|
45
|
+
console.error('Fatal error in main():', error);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAEL,uBAAuB,EACvB,cAAc,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IAC3B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,eAA0B,EAAE,EAAE;IACnD,eAAe,CAAC,IAAI,CAAC;QACnB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,8EAA8E;QAChF,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,MAAM,QAAQ,GAAG,MAAM,gBAAgB,EAAE,CAAC;YAC1C,QAA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12
|
+
stateMutability?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
inputs: never[];
|
|
15
|
+
name: string;
|
|
16
|
+
outputs: {
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
}[];
|
|
20
|
+
stateMutability: string;
|
|
21
|
+
type: string;
|
|
22
|
+
})[];
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const OKX_ACCOUNT_ABI = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [
|
|
4
|
+
{
|
|
5
|
+
name: 'implementation',
|
|
6
|
+
type: 'felt',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: 'selector',
|
|
10
|
+
type: 'felt',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: 'calldata_len',
|
|
14
|
+
type: 'felt',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'calldata',
|
|
18
|
+
type: 'felt*',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
name: 'constructor',
|
|
22
|
+
outputs: [],
|
|
23
|
+
type: 'constructor',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
inputs: [
|
|
27
|
+
{
|
|
28
|
+
name: 'selector',
|
|
29
|
+
type: 'felt',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'calldata_size',
|
|
33
|
+
type: 'felt',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'calldata',
|
|
37
|
+
type: 'felt*',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
name: '__default__',
|
|
41
|
+
outputs: [
|
|
42
|
+
{
|
|
43
|
+
name: 'retdata_size',
|
|
44
|
+
type: 'felt',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'retdata',
|
|
48
|
+
type: 'felt*',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
type: 'function',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [
|
|
55
|
+
{
|
|
56
|
+
name: 'selector',
|
|
57
|
+
type: 'felt',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'calldata_size',
|
|
61
|
+
type: 'felt',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'calldata',
|
|
65
|
+
type: 'felt*',
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
name: '__l1_default__',
|
|
69
|
+
outputs: [],
|
|
70
|
+
type: 'l1_handler',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: 'get_implementation',
|
|
75
|
+
outputs: [
|
|
76
|
+
{
|
|
77
|
+
name: 'implementation',
|
|
78
|
+
type: 'felt',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
stateMutability: 'view',
|
|
82
|
+
type: 'function',
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
//# sourceMappingURL=okxAbi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"okxAbi.js","sourceRoot":"","sources":["../../../src/lib/abis/okxAbi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;QACE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,YAAY;KACnB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,MAAM;aACb;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../src/lib/constant/contract.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GACxB,oEAAoE,CAAC;AAEvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AACtC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import winston from 'winston';
|
|
2
|
+
const levels = {
|
|
3
|
+
error: 0,
|
|
4
|
+
warn: 1,
|
|
5
|
+
info: 2,
|
|
6
|
+
http: 3,
|
|
7
|
+
debug: 4,
|
|
8
|
+
};
|
|
9
|
+
const colors = {
|
|
10
|
+
error: 'red',
|
|
11
|
+
warn: 'yellow',
|
|
12
|
+
info: 'green',
|
|
13
|
+
http: 'magenta',
|
|
14
|
+
debug: 'blue',
|
|
15
|
+
};
|
|
16
|
+
winston.addColors(colors);
|
|
17
|
+
const level = () => {
|
|
18
|
+
if (process.env.LOG_LEVEL) {
|
|
19
|
+
return process.env.LOG_LEVEL.toLowerCase();
|
|
20
|
+
}
|
|
21
|
+
const env = process.env.NODE_ENV || 'production';
|
|
22
|
+
return env === 'development' ? 'debug' : 'info';
|
|
23
|
+
};
|
|
24
|
+
const format = winston.format.combine(winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), winston.format.colorize({ all: true }), winston.format.printf((info) => `${info.timestamp} ${info.level}: ${info.message}`));
|
|
25
|
+
let transports;
|
|
26
|
+
try {
|
|
27
|
+
transports = [
|
|
28
|
+
new winston.transports.Console(),
|
|
29
|
+
new winston.transports.File({
|
|
30
|
+
filename: 'logs/error.log',
|
|
31
|
+
level: 'error',
|
|
32
|
+
}),
|
|
33
|
+
new winston.transports.File({ filename: 'logs/combined.log' }),
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
transports = [new winston.transports.Console()];
|
|
38
|
+
}
|
|
39
|
+
export const logger = winston.createLogger({
|
|
40
|
+
level: level(),
|
|
41
|
+
levels,
|
|
42
|
+
format,
|
|
43
|
+
transports,
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/lib/dependances/types.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,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O,KAAK,EAAE,CAAC;IACf,UAAU,GAAG,CAAC,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IACzC,KAAK,EAAE,KAAK,EAAE;IACd,MAAM;IACN,MAAM;IACN,UAAU;CACX,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ProviderInterface } from 'starknet';
|
|
2
|
+
export interface AccountDetails {
|
|
3
|
+
contractAddress: string;
|
|
4
|
+
publicKey: string;
|
|
5
|
+
privateKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TransactionResult {
|
|
8
|
+
status: 'success' | 'failure';
|
|
9
|
+
transactionHash?: string;
|
|
10
|
+
contractAddress?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BaseUtilityClass {
|
|
14
|
+
provider: ProviderInterface;
|
|
15
|
+
}
|
|
16
|
+
export interface ContractDeployResult {
|
|
17
|
+
transactionHash: string;
|
|
18
|
+
contractAddress: string | string[];
|
|
19
|
+
}
|
|
20
|
+
export interface TokenAmount {
|
|
21
|
+
amount: string;
|
|
22
|
+
decimals: number;
|
|
23
|
+
}
|
|
24
|
+
export type TypedData = {
|
|
25
|
+
types: {
|
|
26
|
+
StarkNetDomain?: TypeElement[];
|
|
27
|
+
[additionalProperties: string]: TypeElement[] | undefined;
|
|
28
|
+
};
|
|
29
|
+
primaryType: string;
|
|
30
|
+
domain: StarkNetDomain;
|
|
31
|
+
message: Record<string, unknown>;
|
|
32
|
+
};
|
|
33
|
+
export type TypeElement = {
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
export type StarkNetDomain = {
|
|
38
|
+
name: string;
|
|
39
|
+
version: string;
|
|
40
|
+
chainId: string | number;
|
|
41
|
+
};
|
|
42
|
+
export type WeierstrassSignatureType = {
|
|
43
|
+
r: string;
|
|
44
|
+
s: string;
|
|
45
|
+
recoveryParam?: number | null;
|
|
46
|
+
};
|
|
47
|
+
export interface AccountResponse {
|
|
48
|
+
status: 'success' | 'failure';
|
|
49
|
+
wallet: string;
|
|
50
|
+
publicKey?: string;
|
|
51
|
+
privateKey?: string;
|
|
52
|
+
contractAddress?: string;
|
|
53
|
+
error?: string;
|
|
54
|
+
message?: string;
|
|
55
|
+
deployFee?: string;
|
|
56
|
+
transaction_type?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/lib/types/accounts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AccountDetails, BaseUtilityClass, TransactionResult } from '../types/accounts.js';
|
|
2
|
+
export declare class AccountManager implements BaseUtilityClass {
|
|
3
|
+
provider: any;
|
|
4
|
+
constructor(provider: any);
|
|
5
|
+
createAccount(accountClassHash: string): Promise<AccountDetails>;
|
|
6
|
+
deployAccount(accountClassHash: string, accountDetails: AccountDetails): Promise<TransactionResult>;
|
|
7
|
+
estimateAccountDeployFee(accountClassHash: string, accountDetails: AccountDetails): Promise<import("starknet").EstimateFee>;
|
|
8
|
+
}
|
|
9
|
+
export declare const wrapAccountCreationResponse: (response: string) => string;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Account, CallData, stark, hash, ec } from 'starknet';
|
|
2
|
+
export class AccountManager {
|
|
3
|
+
constructor(provider) {
|
|
4
|
+
this.provider = provider;
|
|
5
|
+
}
|
|
6
|
+
async createAccount(accountClassHash) {
|
|
7
|
+
try {
|
|
8
|
+
const privateKey = stark.randomAddress();
|
|
9
|
+
const publicKey = ec.starkCurve.getStarkKey(privateKey);
|
|
10
|
+
const constructorCallData = CallData.compile({ publicKey });
|
|
11
|
+
const contractAddress = hash.calculateContractAddressFromHash(publicKey, accountClassHash, constructorCallData, 0);
|
|
12
|
+
return {
|
|
13
|
+
contractAddress,
|
|
14
|
+
privateKey,
|
|
15
|
+
publicKey,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
throw new Error(`Failed to create account: ${error.message}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async deployAccount(accountClassHash, accountDetails) {
|
|
23
|
+
try {
|
|
24
|
+
const account = new Account(this.provider, accountDetails.contractAddress, accountDetails.privateKey);
|
|
25
|
+
const constructorCallData = CallData.compile({
|
|
26
|
+
publicKey: accountDetails.publicKey,
|
|
27
|
+
});
|
|
28
|
+
const { transaction_hash, contract_address } = await account.deployAccount({
|
|
29
|
+
classHash: accountClassHash,
|
|
30
|
+
constructorCalldata: constructorCallData,
|
|
31
|
+
addressSalt: accountDetails.publicKey,
|
|
32
|
+
});
|
|
33
|
+
await this.provider.waitForTransaction(transaction_hash);
|
|
34
|
+
return {
|
|
35
|
+
status: 'success',
|
|
36
|
+
transactionHash: transaction_hash,
|
|
37
|
+
contractAddress: contract_address,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
throw new Error(`Failed to create account: ${error.message}`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
async estimateAccountDeployFee(accountClassHash, accountDetails) {
|
|
45
|
+
try {
|
|
46
|
+
const account = new Account(this.provider, accountDetails.contractAddress, accountDetails.privateKey);
|
|
47
|
+
const constructorCallData = CallData.compile({
|
|
48
|
+
publicKey: accountDetails.publicKey,
|
|
49
|
+
});
|
|
50
|
+
return await account.estimateAccountDeployFee({
|
|
51
|
+
classHash: accountClassHash,
|
|
52
|
+
constructorCalldata: constructorCallData,
|
|
53
|
+
addressSalt: accountDetails.publicKey,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
throw new Error(`Failed to estimate deploy fee: ${error.message}`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export const wrapAccountCreationResponse = (response) => {
|
|
62
|
+
try {
|
|
63
|
+
const data = JSON.parse(response);
|
|
64
|
+
if (data.status === 'success') {
|
|
65
|
+
return JSON.stringify({
|
|
66
|
+
...data,
|
|
67
|
+
message: `Your ${data.wallet} account has been successfully created at ${data.contractAddress}\nPublic key: ${data.publicKey}\nPrivate key: ${data.privateKey}`,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return response;
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
return response;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=AccountManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountManager.js","sourceRoot":"","sources":["../../../src/lib/utils/AccountManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAa9D,MAAM,OAAO,cAAc;IACzB,YAAmB,QAAa;QAAb,aAAQ,GAAR,QAAQ,CAAK;IAAG,CAAC;IASpC,KAAK,CAAC,aAAa,CAAC,gBAAwB;QAC1C,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;YACzC,MAAM,SAAS,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YAExD,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;YAC5D,MAAM,eAAe,GAAG,IAAI,CAAC,gCAAgC,CAC3D,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,CAAC,CACF,CAAC;YAEF,OAAO;gBACL,eAAe;gBACf,UAAU;gBACV,SAAS;aACV,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,6BAA6B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAChE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E,mBAAmB;gBACxC,WAAW,EAAE,cAAc,CAAC,SAAS;aACtC,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,kCAAkC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF;AAQD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,QAAgB,EAAE,EAAE;IAC9D,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAoB,CAAC;QACrD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,IAAI,CAAC,SAAS,CAAC;gBACpB,GAAG,IAAI;gBACP,OAAO,EAAE,QAAQ,IAAI,CAAC,MAAM,6CAA6C,IAAI,CAAC,eAAe,iBAAiB,IAAI,CAAC,SAAS,kBAAkB,IAAI,CAAC,UAAU,EAAE;aAChK,CAAC,CAAC;QACL,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const accountDetailsSchema: z.ZodObject<{
|
|
3
|
+
contractAddress: z.ZodString;
|
|
4
|
+
publicKey: z.ZodString;
|
|
5
|
+
privateKey: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
contractAddress: string;
|
|
8
|
+
publicKey: string;
|
|
9
|
+
privateKey: string;
|
|
10
|
+
}, {
|
|
11
|
+
contractAddress: string;
|
|
12
|
+
publicKey: string;
|
|
13
|
+
privateKey: string;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const accountDetailsSchema = z.object({
|
|
3
|
+
contractAddress: z
|
|
4
|
+
.string()
|
|
5
|
+
.describe("The starknet address of the account's contract"),
|
|
6
|
+
publicKey: z.string().describe('The public key of the okx account'),
|
|
7
|
+
privateKey: z.string().describe('The private key of the okx account'),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schemas/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACnE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CACtE,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const CreateOKXAccount: () => Promise<{
|
|
2
|
+
status: string;
|
|
3
|
+
wallet: string;
|
|
4
|
+
publicKey: string;
|
|
5
|
+
privateKey: string;
|
|
6
|
+
contractAddress: string;
|
|
7
|
+
error?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
status: string;
|
|
10
|
+
error: string;
|
|
11
|
+
wallet?: undefined;
|
|
12
|
+
publicKey?: undefined;
|
|
13
|
+
privateKey?: undefined;
|
|
14
|
+
contractAddress?: undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OKX_CLASSHASH } from '../lib/constant/contract.js';
|
|
2
|
+
import { AccountManager } from '../lib/utils/AccountManager.js';
|
|
3
|
+
export const CreateOKXAccount = async () => {
|
|
4
|
+
try {
|
|
5
|
+
const accountManager = new AccountManager(undefined);
|
|
6
|
+
const accountDetails = await accountManager.createAccount(OKX_CLASSHASH);
|
|
7
|
+
return {
|
|
8
|
+
status: 'success',
|
|
9
|
+
wallet: 'OKX',
|
|
10
|
+
publicKey: accountDetails.publicKey,
|
|
11
|
+
privateKey: accountDetails.privateKey,
|
|
12
|
+
contractAddress: accountDetails.contractAddress,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
return {
|
|
17
|
+
status: 'failure',
|
|
18
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=createAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAccount.js","sourceRoot":"","sources":["../../src/tools/createAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAShE,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;IACzC,IAAI,CAAC;QACH,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,SAAS,CAAC,CAAC;QACrD,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QAEzE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,KAAK;YACb,SAAS,EAAE,cAAc,CAAC,SAAS;YACnC,UAAU,EAAE,cAAc,CAAC,UAAU;YACrC,eAAe,EAAE,cAAc,CAAC,eAAe;SAChD,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;SAChE,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { accountDetailsSchema } from '../schemas/schema.js';
|
|
3
|
+
import { onchainRead } from '@kasarlabs/ask-starknet-core';
|
|
4
|
+
export declare const DeployOKXAccount: (env: onchainRead, params: z.infer<typeof accountDetailsSchema>) => Promise<{
|
|
5
|
+
status: string;
|
|
6
|
+
wallet: string;
|
|
7
|
+
transaction_hash: string | undefined;
|
|
8
|
+
contract_address: string | undefined;
|
|
9
|
+
error?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
status: string;
|
|
12
|
+
error: string;
|
|
13
|
+
wallet?: undefined;
|
|
14
|
+
transaction_hash?: undefined;
|
|
15
|
+
contract_address?: undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OKX_CLASSHASH } from '../lib/constant/contract.js';
|
|
2
|
+
import { AccountManager } from '../lib/utils/AccountManager.js';
|
|
3
|
+
export const DeployOKXAccount = async (env, params) => {
|
|
4
|
+
try {
|
|
5
|
+
const provider = env.provider;
|
|
6
|
+
const accountManager = new AccountManager(provider);
|
|
7
|
+
const tx = await accountManager.deployAccount(OKX_CLASSHASH, params);
|
|
8
|
+
return {
|
|
9
|
+
status: 'success',
|
|
10
|
+
wallet: 'OKX',
|
|
11
|
+
transaction_hash: tx.transactionHash,
|
|
12
|
+
contract_address: tx.contractAddress,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
return {
|
|
17
|
+
status: 'failure',
|
|
18
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=deployAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployAccount.js","sourceRoot":"","sources":["../../src/tools/deployAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAchE,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,GAAgB,EAChB,MAA4C,EAC5C,EAAE;IACF,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAE9B,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ,CAAC,CAAC;QACpD,MAAM,EAAE,GAAG,MAAM,cAAc,CAAC,aAAa,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAErE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,KAAK;YACb,gBAAgB,EAAE,EAAE,CAAC,eAAe;YACpC,gBAAgB,EAAE,EAAE,CAAC,eAAe;SACrC,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;SAChE,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kasarlabs/okx-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"okx-mcp": "./bin/okx-mcp.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc && chmod 755 build/index.js",
|
|
11
|
+
"clean": "rm -rf build",
|
|
12
|
+
"clean:all": "rm -rf build node_modules",
|
|
13
|
+
"start": "node build/index.js"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"build"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@kasarlabs/ask-starknet-core": "0.1.0",
|
|
20
|
+
"@langchain/core": "^0.3.75",
|
|
21
|
+
"@modelcontextprotocol/sdk": "^1.11.2",
|
|
22
|
+
"dotenv": "^16.4.7",
|
|
23
|
+
"starknet": "^7.6.4",
|
|
24
|
+
"winston": "^3.17.0",
|
|
25
|
+
"zod": "^3.24.2"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^22.13.10",
|
|
29
|
+
"typescript": "^5.8.2"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"mcp",
|
|
33
|
+
"starknet",
|
|
34
|
+
"okx"
|
|
35
|
+
],
|
|
36
|
+
"author": "kasarlabs",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"description": "MCP server for OKX wallet account creation and deployment on Starknet",
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"gitHead": "2239ec60f8e369abd318807cecd22fe97c0ab917"
|
|
43
|
+
}
|