@potswap_io/mcp 0.1.0 → 0.3.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/README.md +132 -91
- package/dist/agentTools.d.ts +44 -0
- package/dist/agentTools.js +179 -0
- package/dist/api.d.ts +21 -0
- package/dist/api.js +7 -3
- package/dist/config.d.ts +14 -1
- package/dist/config.js +14 -1
- package/dist/history.d.ts +72 -0
- package/dist/history.js +53 -0
- package/dist/index.js +23 -5
- package/dist/pnl.d.ts +16 -0
- package/dist/pnl.js +45 -0
- package/dist/runtime.d.ts +15 -0
- package/dist/runtime.js +39 -0
- package/dist/server.d.ts +13 -2
- package/dist/server.js +18 -84
- package/dist/shared/fee.d.ts +24 -0
- package/dist/shared/fee.js +42 -0
- package/dist/strategies/engine.d.ts +43 -0
- package/dist/strategies/engine.js +117 -0
- package/dist/strategies/lock.d.ts +7 -0
- package/dist/strategies/lock.js +30 -0
- package/dist/strategies/scheduler.d.ts +39 -0
- package/dist/strategies/scheduler.js +242 -0
- package/dist/strategies/store.d.ts +26 -0
- package/dist/strategies/store.js +53 -0
- package/dist/strategies/tools.d.ts +10 -0
- package/dist/strategies/tools.js +162 -0
- package/dist/strategies/types.d.ts +78 -0
- package/dist/strategies/types.js +2 -0
- package/dist/trade.d.ts +86 -0
- package/dist/trade.js +86 -0
- package/dist/transfer.d.ts +49 -0
- package/dist/transfer.js +86 -0
- package/dist/wallet.d.ts +13 -1
- package/dist/wallet.js +41 -12
- package/package.json +59 -55
package/package.json
CHANGED
|
@@ -1,55 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@potswap_io/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Potswap MCP server: best-route Solana swaps for AI agents, non-custodial, earns POT.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"bin": {
|
|
8
|
-
"potswap-mcp": "dist/index.js"
|
|
9
|
-
},
|
|
10
|
-
"main": "dist/server.js",
|
|
11
|
-
"types": "dist/server.d.ts",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist",
|
|
14
|
-
"README.md",
|
|
15
|
-
"LICENSE"
|
|
16
|
-
],
|
|
17
|
-
"engines": {
|
|
18
|
-
"node": ">=20"
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsc -p tsconfig.json",
|
|
22
|
-
"dev": "tsx src/index.ts",
|
|
23
|
-
"test": "vitest run",
|
|
24
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
25
|
-
"sync-shared": "node scripts/sync-shared.mjs",
|
|
26
|
-
"prepublishOnly": "npm run sync-shared && npm run build"
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "https://github.com/
|
|
31
|
-
},
|
|
32
|
-
"homepage": "https://www.potswap.io",
|
|
33
|
-
"keywords": [
|
|
34
|
-
"mcp",
|
|
35
|
-
"solana",
|
|
36
|
-
"swap",
|
|
37
|
-
"jupiter",
|
|
38
|
-
"ai-agent",
|
|
39
|
-
"potswap",
|
|
40
|
-
"model-context-protocol"
|
|
41
|
-
],
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
44
|
-
"@solana/
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@potswap_io/mcp",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Potswap MCP server: best-route Solana swaps, DCA / rebalance / take-profit strategies for AI agents, non-custodial, earns POT.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"potswap-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"main": "dist/server.js",
|
|
11
|
+
"types": "dist/server.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=20"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc -p tsconfig.json",
|
|
22
|
+
"dev": "tsx src/index.ts",
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
25
|
+
"sync-shared": "node scripts/sync-shared.mjs",
|
|
26
|
+
"prepublishOnly": "npm run sync-shared && npm run build"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/potswap-io/mcp.git"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://www.potswap.io",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"mcp",
|
|
35
|
+
"solana",
|
|
36
|
+
"swap",
|
|
37
|
+
"jupiter",
|
|
38
|
+
"ai-agent",
|
|
39
|
+
"potswap",
|
|
40
|
+
"model-context-protocol"
|
|
41
|
+
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
44
|
+
"@solana/spl-token": "^0.4.15",
|
|
45
|
+
"@solana/web3.js": "^1.99.0",
|
|
46
|
+
"bs58": "^6.0.0",
|
|
47
|
+
"zod": "^4.6.7"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^26.6.5",
|
|
51
|
+
"tsx": "^4.23.15",
|
|
52
|
+
"typescript": "^7.0.2",
|
|
53
|
+
"vite": "^8.3.5",
|
|
54
|
+
"vitest": "^5.0.5"
|
|
55
|
+
},
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/potswap-io/mcp/issues"
|
|
58
|
+
}
|
|
59
|
+
}
|