@gala-chain/launchpad-mcp-server 4.0.22-beta.4 → 4.0.22-beta.6
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/MCP_COVERAGE_REPORT.md +164 -0
- package/MCP_TEST_ANALYSIS.md +22 -10
- package/README.md +3 -3
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +3 -3
- package/dist/tools/pools/index.d.ts +3 -2
- package/dist/tools/pools/index.d.ts.map +1 -1
- package/dist/tools/pools/index.js +6 -38
- package/dist/tools/pools/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/prompts/social.d.ts +0 -16
- package/dist/prompts/social.d.ts.map +0 -1
- package/dist/prompts/social.js +0 -87
- package/dist/prompts/social.js.map +0 -1
- package/dist/tools/social/index.d.ts +0 -8
- package/dist/tools/social/index.d.ts.map +0 -1
- package/dist/tools/social/index.js +0 -57
- package/dist/tools/social/index.js.map +0 -1
- package/dist/tools/utils/retrieveFromFaucet.d.ts +0 -9
- package/dist/tools/utils/retrieveFromFaucet.d.ts.map +0 -1
- package/dist/tools/utils/retrieveFromFaucet.js +0 -36
- package/dist/tools/utils/retrieveFromFaucet.js.map +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# MCP Coverage Audit Report
|
|
2
|
+
|
|
3
|
+
**Audit Date:** 2025-12-09
|
|
4
|
+
**SDK Version:** 4.0.22-beta.5
|
|
5
|
+
**MCP Tools:** 132
|
|
6
|
+
**Prompts:** 103
|
|
7
|
+
**explainSdkUsage Topics:** 36
|
|
8
|
+
|
|
9
|
+
## Summary
|
|
10
|
+
|
|
11
|
+
| Category | Total | Covered | Excluded | Missing | Coverage |
|
|
12
|
+
|----------|-------|---------|----------|---------|----------|
|
|
13
|
+
| SDK → MCP Tools | 116 | 114 | 2 | 0 | 98% |
|
|
14
|
+
| MCP Tools → Prompts | 132 | 103+ | 0 | ~29 | 78% |
|
|
15
|
+
| explainSdkUsage | 116 | 100+ | 12 | ~4 | 95% |
|
|
16
|
+
|
|
17
|
+
## SDK Methods → MCP Tools Coverage
|
|
18
|
+
|
|
19
|
+
**116 SDK public async methods, 132 MCP tools**
|
|
20
|
+
|
|
21
|
+
The MCP server provides MORE tools than SDK methods because it includes:
|
|
22
|
+
- Utility tools (getConfig, getVersion, getEnvironment, switchEnvironment)
|
|
23
|
+
- Wallet management (hasWallet, getWallet, setWallet, createWallet, createSolanaWallet)
|
|
24
|
+
- Key derivation (getPublicKeyFromPrivateKey, getEthereumAddressFromPrivateKey)
|
|
25
|
+
- Cache management (getCacheInfo, clearCache)
|
|
26
|
+
- explainSdkUsage (documentation tool)
|
|
27
|
+
- Event watchers (onDexPoolCreation, onLaunchpadTokenCreation)
|
|
28
|
+
|
|
29
|
+
### Excluded Methods (Intentional - Not Appropriate for MCP)
|
|
30
|
+
|
|
31
|
+
| Method | Reason |
|
|
32
|
+
|--------|--------|
|
|
33
|
+
| `fetchAvailableBalance` | Duplicate of fetchGalaBalance |
|
|
34
|
+
| `fetchTokenClassesWithSupply` | Internal GalaChain method |
|
|
35
|
+
|
|
36
|
+
### Name Mapping Differences
|
|
37
|
+
|
|
38
|
+
| SDK Method | MCP Tool |
|
|
39
|
+
|------------|----------|
|
|
40
|
+
| `buy()` | `gala_launchpad_buy_tokens` |
|
|
41
|
+
| `sell()` | `gala_launchpad_sell_tokens` |
|
|
42
|
+
| `isTokenNameAvailable()` | `gala_launchpad_check_token_name` |
|
|
43
|
+
| `isTokenSymbolAvailable()` | `gala_launchpad_check_token_symbol` |
|
|
44
|
+
| `fetchGalaPrice()` | `gala_launchpad_fetch_gala_spot_price` |
|
|
45
|
+
| `fetchTokenPrice()` | `gala_launchpad_fetch_token_spot_price` |
|
|
46
|
+
| `fetchLockedBalance()` | `gala_launchpad_fetch_locked_tokens` |
|
|
47
|
+
| `getSwapLiquidityPosition()` | `gala_launchpad_get_liquidity_position` |
|
|
48
|
+
| `getSwapLiquidityPositionById()` | `gala_launchpad_get_liquidity_position_by_id` |
|
|
49
|
+
| `getSwapUserLiquidityPositions()` | `gala_launchpad_get_user_liquidity_positions` |
|
|
50
|
+
| `getAllSwapUserLiquidityPositions()` | `gala_launchpad_get_all_user_liquidity_positions` |
|
|
51
|
+
| `getSwapEstimateRemoveLiquidity()` | `gala_launchpad_estimate_remove_liquidity` |
|
|
52
|
+
| `collectSwapPositionFees()` | `gala_launchpad_collect_position_fees` |
|
|
53
|
+
| `removeSwapLiquidity()` | `gala_launchpad_remove_liquidity` |
|
|
54
|
+
| `addSwapLiquidityByPrice()` | `gala_launchpad_add_liquidity_by_price` |
|
|
55
|
+
| `addSwapLiquidityByTicks()` | `gala_launchpad_add_liquidity_by_ticks` |
|
|
56
|
+
|
|
57
|
+
## MCP Tools → Prompt Coverage
|
|
58
|
+
|
|
59
|
+
**103 prompts covering workflow scenarios**
|
|
60
|
+
|
|
61
|
+
Prompts are workflow-based, not 1:1 with tools. Each prompt covers a use case that may involve multiple tools.
|
|
62
|
+
|
|
63
|
+
### Tools Without Direct Prompt (Expected)
|
|
64
|
+
|
|
65
|
+
Utility tools don't need workflow prompts - they're self-documenting:
|
|
66
|
+
- `gala_launchpad_get_config`
|
|
67
|
+
- `gala_launchpad_get_version`
|
|
68
|
+
- `gala_launchpad_get_cache_info`
|
|
69
|
+
- `gala_launchpad_clear_cache`
|
|
70
|
+
- `gala_launchpad_cleanup`
|
|
71
|
+
- `gala_launchpad_explain_sdk_usage`
|
|
72
|
+
|
|
73
|
+
Bridge/wrap detail tools covered by main workflow prompts:
|
|
74
|
+
- Individual balance query tools (covered by portfolio/bridge prompts)
|
|
75
|
+
- Individual bridgeable token checks (covered by bridge-tokens prompt)
|
|
76
|
+
- Individual wrappable token checks (covered by wrap-related prompts)
|
|
77
|
+
|
|
78
|
+
## explainSdkUsage Topic Coverage
|
|
79
|
+
|
|
80
|
+
**36 topics covering SDK method documentation**
|
|
81
|
+
|
|
82
|
+
### Topics
|
|
83
|
+
|
|
84
|
+
1. buy-tokens
|
|
85
|
+
2. sell-tokens
|
|
86
|
+
3. pool-graduation
|
|
87
|
+
4. fetch-pools
|
|
88
|
+
5. balances
|
|
89
|
+
6. token-creation
|
|
90
|
+
7. token-details
|
|
91
|
+
8. token-distribution
|
|
92
|
+
9. token-status
|
|
93
|
+
10. multi-wallet
|
|
94
|
+
11. transfers
|
|
95
|
+
12. locks
|
|
96
|
+
13. dex-trading
|
|
97
|
+
14. error-handling
|
|
98
|
+
15. installation
|
|
99
|
+
16. local-calculations
|
|
100
|
+
17. price-history
|
|
101
|
+
18. spot-prices-smart-routing
|
|
102
|
+
19. profile-management
|
|
103
|
+
20. liquidity-positions
|
|
104
|
+
21. advanced-dex-analysis
|
|
105
|
+
22. trading-analytics
|
|
106
|
+
23. utilities-and-helpers
|
|
107
|
+
24. utilities-system
|
|
108
|
+
25. fetch-all-dex-seasons
|
|
109
|
+
26. fetch-current-dex-season
|
|
110
|
+
27. fetch-dex-leaderboard-by-season-id
|
|
111
|
+
28. fetch-dex-aggregated-volume-summary
|
|
112
|
+
29. fetch-dex-pools
|
|
113
|
+
30. event-subscriptions
|
|
114
|
+
31. mcp-to-sdk-mapping
|
|
115
|
+
32. bridge-operations
|
|
116
|
+
33. dex-token-discovery
|
|
117
|
+
34. wrap-unwrap-operations
|
|
118
|
+
35. referral-system
|
|
119
|
+
36. account-management
|
|
120
|
+
|
|
121
|
+
## Slash Command Sync Results
|
|
122
|
+
|
|
123
|
+
| File | Field | Old | New | Status |
|
|
124
|
+
|------|-------|-----|-----|--------|
|
|
125
|
+
| test-mcp-tools.md | Total tools | 128 | 132 | UPDATED |
|
|
126
|
+
| test-mcp-tools.md | balance | 7 | 12 | UPDATED |
|
|
127
|
+
| test-mcp-tools.md | locks | 4 | 3 | UPDATED |
|
|
128
|
+
| test-mcp-tools.md | bridge | 11 | 31 | UPDATED |
|
|
129
|
+
| scour-docs.md | Tool count | 128 | 132 | UPDATED |
|
|
130
|
+
| scour-docs.md | Topics | 33 | 36 | UPDATED |
|
|
131
|
+
|
|
132
|
+
## Tool Categories Summary
|
|
133
|
+
|
|
134
|
+
| Category | Count | Description |
|
|
135
|
+
|----------|-------|-------------|
|
|
136
|
+
| utilities | 19 | config, version, wallet, cache, environment, key derivation |
|
|
137
|
+
| pools | 19 | fetch pools, details, prices, watchers |
|
|
138
|
+
| balance | 12 | GALA balance, token balance, profile, locked tokens, referrals, registerAccount |
|
|
139
|
+
| trading | 13 | buy/sell, calculations, graduation |
|
|
140
|
+
| dex | 29 | swaps, quotes, liquidity, leaderboard, token discovery |
|
|
141
|
+
| creation | 4 | launch token, upload images |
|
|
142
|
+
| transfers | 2 | GALA/token transfers |
|
|
143
|
+
| locks | 3 | lock/unlock/burn tokens |
|
|
144
|
+
| bridge | 31 | cross-chain bridging, wrap/unwrap, bridgeable tokens |
|
|
145
|
+
| **Total** | **132** | |
|
|
146
|
+
|
|
147
|
+
## Recommendations
|
|
148
|
+
|
|
149
|
+
### No Action Required
|
|
150
|
+
- SDK → MCP coverage is excellent (98%+)
|
|
151
|
+
- All critical SDK methods have MCP tool equivalents
|
|
152
|
+
- explainSdkUsage has comprehensive topic coverage
|
|
153
|
+
|
|
154
|
+
### Future Improvements (Low Priority)
|
|
155
|
+
1. Add prompts for new referral tools:
|
|
156
|
+
- `galachain-launchpad:referrals` - View referral stats
|
|
157
|
+
- `galachain-launchpad:register` - Register account for trading
|
|
158
|
+
|
|
159
|
+
2. Consider consolidating similar balance prompts into comprehensive portfolio workflows
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
**Generated:** 2025-12-09T$(date +%H:%M:%S)
|
|
164
|
+
**Tool:** /scour-mcp audit
|
package/MCP_TEST_ANALYSIS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# MCP Tool Test Analysis
|
|
2
2
|
|
|
3
|
-
**Last Updated:** 2025-12-09 (v4.0.22-beta.
|
|
4
|
-
**Total Tools:**
|
|
3
|
+
**Last Updated:** 2025-12-09 (v4.0.22-beta.5)
|
|
4
|
+
**Total Tools:** 132
|
|
5
5
|
**Environment:** STAGE
|
|
6
|
-
**SDK Version:** 4.0.22-beta.
|
|
7
|
-
**MCP Version:** 4.0.22-beta.
|
|
6
|
+
**SDK Version:** 4.0.22-beta.5
|
|
7
|
+
**MCP Version:** 4.0.22-beta.5
|
|
8
8
|
|
|
9
9
|
## Summary
|
|
10
10
|
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
|----------|-------|------|------|------|-----------------|
|
|
13
13
|
| utilities | 19 | 19 | 0 | 0 | 0 |
|
|
14
14
|
| pools | 19 | 19 | 0 | 0 | 0 |
|
|
15
|
-
| balance |
|
|
15
|
+
| balance | 12 | 12 | 0 | 0 | 0 |
|
|
16
16
|
| trading | 13 | 12 | 0 | 1 | 0 |
|
|
17
17
|
| dex | 29 | 29 | 0 | 0 | 0 |
|
|
18
18
|
| creation | 4 | 4 | 0 | 0 | 0 |
|
|
19
19
|
| transfers | 2 | 2 | 0 | 0 | 0 |
|
|
20
20
|
| locks | 3 | 3 | 0 | 0 | 0 |
|
|
21
21
|
| bridge | 31 | 30 | 0 | 0 | 1 |
|
|
22
|
-
| **TOTAL** | **
|
|
22
|
+
| **TOTAL** | **132** | **130** | **0** | **1** | **1** |
|
|
23
23
|
|
|
24
|
-
**Coverage: 100%** (
|
|
25
|
-
**Pass Rate: 100%** (
|
|
24
|
+
**Coverage: 100%** (132/132 tools accounted for)
|
|
25
|
+
**Pass Rate: 100%** (130/130 testable tools passed)
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
|
|
78
78
|
---
|
|
79
79
|
|
|
80
|
-
## BALANCE (
|
|
80
|
+
## BALANCE (12 tools) - 12 PASS
|
|
81
81
|
|
|
82
82
|
| Tool | Status | Notes |
|
|
83
83
|
|------|--------|-------|
|
|
@@ -88,7 +88,11 @@
|
|
|
88
88
|
| `gala_launchpad_fetch_tokens_created` | PASS | Returns tokens created by address |
|
|
89
89
|
| `gala_launchpad_fetch_profile` | PASS | Returns user profile data |
|
|
90
90
|
| `gala_launchpad_update_profile` | PASS | Write operation - updates profile data |
|
|
91
|
-
| `gala_launchpad_fetch_referral_url` | PASS | Returns user's referral URL |
|
|
91
|
+
| `gala_launchpad_fetch_referral_url` | PASS | Returns user's unique referral URL |
|
|
92
|
+
| `gala_launchpad_fetch_referrals` | PASS | Returns paginated list of referred users |
|
|
93
|
+
| `gala_launchpad_fetch_all_referrals` | PASS | Returns all referrals with auto-pagination |
|
|
94
|
+
| `gala_launchpad_fetch_referrals_summary` | PASS | Returns referral count and reward totals (day/month/total) |
|
|
95
|
+
| `gala_launchpad_register_account` | PASS | Registers wallet for trading, returns { exists, walletAlias } |
|
|
92
96
|
|
|
93
97
|
---
|
|
94
98
|
|
|
@@ -249,6 +253,7 @@ DEX pool operations require full token class key format: `GALA|Unit|none|none` (
|
|
|
249
253
|
|
|
250
254
|
| Version | Date | Changes |
|
|
251
255
|
|---------|------|---------|
|
|
256
|
+
| v4.0.22-beta.5 | 2025-12-09 | Added 4 tools: `register_account`, `fetch_referrals`, `fetch_all_referrals`, `fetch_referrals_summary` (132 tools) |
|
|
252
257
|
| v4.0.22-beta.2 | 2025-12-09 | `get_config` returns `gasFee: "1"` |
|
|
253
258
|
| v4.0.22-beta.1 | 2025-12-09 | Batch lock/unlock + burn_tokens (128 tools) |
|
|
254
259
|
| v4.0.20-beta.2 | 2025-12-09 | `bridge_in` from Solana fixed with retry logic |
|
|
@@ -264,6 +269,13 @@ DEX pool operations require full token class key format: `GALA|Unit|none|none` (
|
|
|
264
269
|
|
|
265
270
|
## Recent Test Highlights
|
|
266
271
|
|
|
272
|
+
### v4.0.22-beta.5 (2025-12-09)
|
|
273
|
+
- ✅ `register_account` - registers wallet, returns `{ exists: true, walletAlias: "eth|..." }`
|
|
274
|
+
- ✅ `fetch_referral_url` - returns unique referral URL for sharing
|
|
275
|
+
- ✅ `fetch_referrals` - paginated list of referred users (empty for test wallet)
|
|
276
|
+
- ✅ `fetch_all_referrals` - auto-paginated version
|
|
277
|
+
- ✅ `fetch_referrals_summary` - returns `{ referralCount, rewardTotals: { pastDay, pastMonth, total } }`
|
|
278
|
+
|
|
267
279
|
### v4.0.22-beta.2 (2025-12-09)
|
|
268
280
|
- ✅ `get_config` now returns `gasFee: "1"` (fixed 1 GALA gas fee)
|
|
269
281
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ MCP (Model Context Protocol) server for Gala Launchpad SDK - Enables AI agents t
|
|
|
6
6
|
|
|
7
7
|
## 🚀 Features
|
|
8
8
|
|
|
9
|
-
- **
|
|
9
|
+
- **132 AI-accessible tools** for complete Gala Launchpad integration (includes 19 pool management & event watcher tools, 13 trading operation tools, 12 balance & portfolio tools, 4 token creation tools, 2 transfer tools, 4 lock/unlock/burn tools, 19 utility tools, 29 DEX/GalaSwap tools, 12 bridge tools, 9 wrap/unwrap tools)
|
|
10
10
|
- **85 slash commands** (prompts) for streamlined workflows - 94% tool coverage (every major operation has a corresponding slash command)
|
|
11
11
|
- **Type-safe** - Full TypeScript support with validated inputs
|
|
12
12
|
- **Production-ready** - Built on [@gala-chain/launchpad-sdk ](https://www.npmjs.com/package/@gala-chain/launchpad-sdk)
|
|
@@ -50,9 +50,9 @@ MCP (Model Context Protocol) server for Gala Launchpad SDK - Enables AI agents t
|
|
|
50
50
|
|
|
51
51
|
### Tool Coverage
|
|
52
52
|
|
|
53
|
-
- **
|
|
53
|
+
- **132 total MCP tools** (full coverage of Gala Launchpad features)
|
|
54
54
|
- **85 total prompts** (up from 75 in v1.x)
|
|
55
|
-
- **65% tool→prompt coverage** (85/
|
|
55
|
+
- **65% tool→prompt coverage** (85/132 tools have dedicated prompts)
|
|
56
56
|
- **New focus**: DEX ecosystem integration, real-time monitoring, advanced quote calculations, cross-chain bridging, wrap/unwrap, token locks/burns
|
|
57
57
|
|
|
58
58
|
### Category Breakdown
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* @see src/utils/tool-registry.ts
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
|
-
* Enhanced tool registry with validation (
|
|
10
|
+
* Enhanced tool registry with validation (132 tools total):
|
|
11
11
|
* - Pools: 19 tools (pool operations + 2 watchers: onDexPoolCreation, onLaunchpadTokenCreation)
|
|
12
12
|
* - Trading: 13 tools (buy, sell, calculate amounts, graduation)
|
|
13
13
|
* - DEX/GalaSwap: 29 tools (swap/quote, liquidity, pool discovery, leaderboard, volume, token discovery)
|
|
14
|
-
* - Balance:
|
|
14
|
+
* - Balance: 12 tools (balance queries, locked tokens, profile, referral URL/list/summary, registerAccount)
|
|
15
15
|
* - Creation: 4 tools (token creation, launch, calculateInitialBuy)
|
|
16
16
|
* - Transfers: 2 tools (GALA and token transfers)
|
|
17
17
|
* - Locks: 2 tools (token lock/unlock for staking, escrow)
|
package/dist/tools/index.js
CHANGED
|
@@ -76,11 +76,11 @@ const toolCategories = [
|
|
|
76
76
|
},
|
|
77
77
|
];
|
|
78
78
|
/**
|
|
79
|
-
* Enhanced tool registry with validation (
|
|
79
|
+
* Enhanced tool registry with validation (132 tools total):
|
|
80
80
|
* - Pools: 19 tools (pool operations + 2 watchers: onDexPoolCreation, onLaunchpadTokenCreation)
|
|
81
81
|
* - Trading: 13 tools (buy, sell, calculate amounts, graduation)
|
|
82
82
|
* - DEX/GalaSwap: 29 tools (swap/quote, liquidity, pool discovery, leaderboard, volume, token discovery)
|
|
83
|
-
* - Balance:
|
|
83
|
+
* - Balance: 12 tools (balance queries, locked tokens, profile, referral URL/list/summary, registerAccount)
|
|
84
84
|
* - Creation: 4 tools (token creation, launch, calculateInitialBuy)
|
|
85
85
|
* - Transfers: 2 tools (GALA and token transfers)
|
|
86
86
|
* - Locks: 2 tools (token lock/unlock for staking, escrow)
|
|
@@ -88,7 +88,7 @@ const toolCategories = [
|
|
|
88
88
|
* - Utilities: 19 tools (config, version, environment, wallet, Solana wallet, cache, cleanup, key derivation)
|
|
89
89
|
* - Bridge: 31 tools (cross-chain bridging, bridgeable/wrappable token queries, wrap/unwrap execution, devnet airdrop, tx status)
|
|
90
90
|
*/
|
|
91
|
-
exports.registry = (0, tool_registry_js_1.createToolRegistry)(toolCategories,
|
|
91
|
+
exports.registry = (0, tool_registry_js_1.createToolRegistry)(toolCategories, 132);
|
|
92
92
|
/**
|
|
93
93
|
* Complete tool array (for backward compatibility)
|
|
94
94
|
*/
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* Pool Management Tools
|
|
3
3
|
*/
|
|
4
4
|
import type { MCPTool } from '../../types/mcp.js';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { fetchPoolsTool } from './fetchPools.js';
|
|
6
|
+
import { fetchPoolDetailsTool } from './fetchPoolDetails.js';
|
|
7
|
+
export { fetchPoolsTool, fetchPoolDetailsTool };
|
|
7
8
|
export declare const fetchTokenDistributionTool: MCPTool;
|
|
8
9
|
export declare const fetchTokenBadgesTool: MCPTool;
|
|
9
10
|
export declare const fetchVolumeDataTool: MCPTool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/pools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/pools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AASlD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAiB7D,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAC;AAGhD,eAAO,MAAM,0BAA0B,SAIrC,CAAC;AAGH,eAAO,MAAM,oBAAoB,SAI/B,CAAC;AAGH,eAAO,MAAM,mBAAmB,EAAE,OAkCjC,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,OA4DjC,CAAC;AAGF,eAAO,MAAM,kBAAkB,SAI7B,CAAC;AAGH,eAAO,MAAM,gCAAgC,EAAE,OAgC9C,CAAC;AAGF,eAAO,MAAM,kBAAkB,SAU7B,CAAC;AAGH,eAAO,MAAM,oBAAoB,SAU/B,CAAC;AAGH,eAAO,MAAM,uBAAuB,SAKlC,CAAC;AAGH,eAAO,MAAM,wBAAwB,SAKnC,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,OAAO,EAoB9B,CAAC"}
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.poolTools = exports.resolveTokenClassKeyTool = exports.resolveVaultAddressTool = exports.checkTokenSymbolTool = exports.checkTokenNameTool = exports.fetchLaunchpadTokenSpotPriceTool = exports.fetchGalaPriceTool = exports.fetchTokenPriceTool = exports.fetchVolumeDataTool = exports.fetchTokenBadgesTool = exports.fetchTokenDistributionTool = exports.fetchPoolDetailsTool = exports.fetchPoolsTool = void 0;
|
|
7
|
-
const launchpad_sdk_1 = require("@gala-chain/launchpad-sdk");
|
|
8
7
|
const response_formatter_js_1 = require("../../utils/response-formatter.js");
|
|
9
8
|
const error_handler_js_1 = require("../../utils/error-handler.js");
|
|
10
9
|
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
10
|
+
const fetchPools_js_1 = require("./fetchPools.js");
|
|
11
|
+
Object.defineProperty(exports, "fetchPoolsTool", { enumerable: true, get: function () { return fetchPools_js_1.fetchPoolsTool; } });
|
|
12
|
+
const fetchPoolDetails_js_1 = require("./fetchPoolDetails.js");
|
|
13
|
+
Object.defineProperty(exports, "fetchPoolDetailsTool", { enumerable: true, get: function () { return fetchPoolDetails_js_1.fetchPoolDetailsTool; } });
|
|
11
14
|
const fetchPoolDetailsForCalculation_js_1 = require("./fetchPoolDetailsForCalculation.js");
|
|
12
15
|
const fetchAllPools_js_1 = require("./fetchAllPools.js");
|
|
13
16
|
const fetchPriceHistory_js_1 = require("./fetchPriceHistory.js");
|
|
@@ -17,41 +20,6 @@ const onDexPoolCreation_js_1 = require("./onDexPoolCreation.js");
|
|
|
17
20
|
const onLaunchpadTokenCreation_js_1 = require("./onLaunchpadTokenCreation.js");
|
|
18
21
|
const tool_factory_js_1 = require("../../utils/tool-factory.js");
|
|
19
22
|
const default_values_js_1 = require("../../utils/default-values.js");
|
|
20
|
-
// 1. Fetch Pools
|
|
21
|
-
exports.fetchPoolsTool = {
|
|
22
|
-
name: 'gala_launchpad_fetch_pools',
|
|
23
|
-
description: 'Fetch token pools from Gala Launchpad with filtering and pagination',
|
|
24
|
-
inputSchema: {
|
|
25
|
-
type: 'object',
|
|
26
|
-
properties: {
|
|
27
|
-
type: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
enum: Object.values(launchpad_sdk_1.POOL_TYPES),
|
|
30
|
-
description: 'Type of pools to fetch (default: recent)',
|
|
31
|
-
},
|
|
32
|
-
creatorAddress: {
|
|
33
|
-
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
34
|
-
description: 'Filter by creator address (optional)',
|
|
35
|
-
},
|
|
36
|
-
page: common_schemas_js_1.PAGE_SCHEMA,
|
|
37
|
-
limit: (0, common_schemas_js_1.createLimitSchema)('pool', 20),
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
41
|
-
const result = await sdk.fetchPools({
|
|
42
|
-
type: args.type || 'recent',
|
|
43
|
-
page: args.page || 1,
|
|
44
|
-
limit: args.limit || 20,
|
|
45
|
-
});
|
|
46
|
-
return (0, response_formatter_js_1.formatSuccess)(result);
|
|
47
|
-
}),
|
|
48
|
-
};
|
|
49
|
-
// 2. Fetch Pool Details (73% code reduction via factory pattern)
|
|
50
|
-
exports.fetchPoolDetailsTool = (0, tool_factory_js_1.createSimpleTokenFetchTool)({
|
|
51
|
-
name: 'gala_launchpad_fetch_pool_details',
|
|
52
|
-
description: 'Get detailed pool state from GalaChain bonding curve',
|
|
53
|
-
handler: (sdk, tokenName) => sdk.fetchPoolDetails(tokenName),
|
|
54
|
-
});
|
|
55
23
|
// 3. Fetch Token Distribution (73% code reduction via factory pattern)
|
|
56
24
|
exports.fetchTokenDistributionTool = (0, tool_factory_js_1.createSimpleTokenFetchTool)({
|
|
57
25
|
name: 'gala_launchpad_fetch_token_distribution',
|
|
@@ -239,9 +207,9 @@ exports.resolveTokenClassKeyTool = (0, tool_factory_js_1.createResolutionTool)({
|
|
|
239
207
|
resultKey: 'tokenClassKey',
|
|
240
208
|
});
|
|
241
209
|
exports.poolTools = [
|
|
242
|
-
|
|
210
|
+
fetchPools_js_1.fetchPoolsTool,
|
|
243
211
|
fetchAllPools_js_1.fetchAllPoolsTool,
|
|
244
|
-
|
|
212
|
+
fetchPoolDetails_js_1.fetchPoolDetailsTool,
|
|
245
213
|
fetchPoolDetailsForCalculation_js_1.fetchPoolDetailsForCalculationTool,
|
|
246
214
|
fetchTokenDetails_js_1.fetchTokenDetailsTool,
|
|
247
215
|
exports.fetchTokenDistributionTool,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/pools/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/pools/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AACjE,uEAKyC;AACzC,mDAAiD;AAkBxC,+FAlBA,8BAAc,OAkBA;AAjBvB,+DAA6D;AAiBpC,qGAjBhB,0CAAoB,OAiBgB;AAhB7C,2FAAyF;AACzF,yDAAuD;AACvD,iEAA+D;AAC/D,uEAAqE;AACrE,iEAA+D;AAC/D,iEAA+D;AAC/D,+EAA6E;AAC7E,iEAKqC;AACrC,qEAAoH;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EAAC;IAC3D,IAAI,EAAE,wCAAwC;IAC9C,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,SAAS,CAAC;IACjE,SAAS,EAAE,eAAe;CAC3B,CAAC,CAAC;AAEU,QAAA,SAAS,GAAc;IAClC,8BAAc;IACd,oCAAiB;IACjB,0CAAoB;IACpB,sEAAkC;IAClC,4CAAqB;IACrB,kCAA0B;IAC1B,4BAAoB;IACpB,2BAAmB;IACnB,2BAAmB;IACnB,0BAAkB;IAClB,wCAAgC;IAChC,4CAAqB;IACrB,kDAAwB;IACxB,0BAAkB;IAClB,4BAAoB;IACpB,+BAAuB;IACvB,gCAAwB;IACxB,4CAAqB;IACrB,0DAA4B;CAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gala-chain/launchpad-mcp-server",
|
|
3
|
-
"version": "4.0.22-beta.
|
|
3
|
+
"version": "4.0.22-beta.6",
|
|
4
4
|
"description": "MCP server for Gala Launchpad - 128 tools (pool management, event watchers, GSwap DEX trading, price history, token creation, wallet management, DEX pool discovery, liquidity positions, token locks/burns, locked token queries, composite pool data, cross-chain bridging, wrap/unwrap, key derivation) supporting optional wallet (read-only and full-access modes). Production-grade AI agent integration for Claude Desktop with comprehensive validation and 80%+ test coverage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@gala-chain/api": "^2.4.3",
|
|
75
75
|
"@gala-chain/connect": "^2.4.3",
|
|
76
|
-
"@gala-chain/launchpad-sdk": "4.0.22-beta.
|
|
76
|
+
"@gala-chain/launchpad-sdk": "4.0.22-beta.6",
|
|
77
77
|
"@humanwhocodes/config-array": "^0.13.0",
|
|
78
78
|
"@modelcontextprotocol/sdk": "^0.5.0",
|
|
79
79
|
"axios": "^1.12.2",
|
package/dist/prompts/social.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Social Interaction Prompts
|
|
3
|
-
*
|
|
4
|
-
* Slash commands for comments and social interactions
|
|
5
|
-
*/
|
|
6
|
-
import type { MCPPrompt } from '../types/mcp.js';
|
|
7
|
-
/**
|
|
8
|
-
* Post Comment - Post comment on token
|
|
9
|
-
*/
|
|
10
|
-
export declare const postCommentPrompt: MCPPrompt;
|
|
11
|
-
/**
|
|
12
|
-
* Fetch Comments - Get token comments
|
|
13
|
-
*/
|
|
14
|
-
export declare const fetchCommentsPrompt: MCPPrompt;
|
|
15
|
-
export declare const socialPrompts: MCPPrompt[];
|
|
16
|
-
//# sourceMappingURL=social.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/prompts/social.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA+B/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAqCjC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,EAGpC,CAAC"}
|
package/dist/prompts/social.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Social Interaction Prompts
|
|
4
|
-
*
|
|
5
|
-
* Slash commands for comments and social interactions
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.socialPrompts = exports.fetchCommentsPrompt = exports.postCommentPrompt = void 0;
|
|
9
|
-
const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
|
|
10
|
-
const validation_js_1 = require("../utils/validation.js");
|
|
11
|
-
const handlerHelpers_js_1 = require("./utils/handlerHelpers.js");
|
|
12
|
-
const textTemplates_js_1 = require("./utils/textTemplates.js");
|
|
13
|
-
/**
|
|
14
|
-
* Post Comment - Post comment on token
|
|
15
|
-
*/
|
|
16
|
-
exports.postCommentPrompt = {
|
|
17
|
-
name: 'galachain-launchpad:post-comment',
|
|
18
|
-
description: 'Post a comment on a token pool',
|
|
19
|
-
arguments: [
|
|
20
|
-
{
|
|
21
|
-
name: 'tokenName',
|
|
22
|
-
description: 'Token name (e.g., anime)',
|
|
23
|
-
required: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'message',
|
|
27
|
-
description: 'Comment message (max 500 characters)',
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
handler: (args) => {
|
|
32
|
-
(0, validation_js_1.validateTokenName)(args.tokenName);
|
|
33
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
34
|
-
operation: 'Post comment on token pool.',
|
|
35
|
-
parameters: {
|
|
36
|
-
token: `Token: ${args.tokenName}`,
|
|
37
|
-
message: `Message: ${args.message}`,
|
|
38
|
-
},
|
|
39
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.POST_COMMENT,
|
|
40
|
-
actionDescription: 'post the comment',
|
|
41
|
-
displayFormat: 'Display confirmation of successful comment posting.',
|
|
42
|
-
}));
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Fetch Comments - Get token comments
|
|
47
|
-
*/
|
|
48
|
-
exports.fetchCommentsPrompt = {
|
|
49
|
-
name: 'galachain-launchpad:fetch-comments',
|
|
50
|
-
description: 'Get comments for a token pool',
|
|
51
|
-
arguments: [
|
|
52
|
-
{
|
|
53
|
-
name: 'tokenName',
|
|
54
|
-
description: 'Token name (e.g., anime)',
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'page',
|
|
59
|
-
description: 'Page number (default: 1)',
|
|
60
|
-
required: false,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'limit',
|
|
64
|
-
description: 'Results per page (default: 20)',
|
|
65
|
-
required: false,
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
handler: (args) => {
|
|
69
|
-
(0, validation_js_1.validateTokenName)(args.tokenName);
|
|
70
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
71
|
-
operation: 'Fetch comments for token pool.',
|
|
72
|
-
parameters: {
|
|
73
|
-
token: `Token: ${args.tokenName}`,
|
|
74
|
-
page: `Page: ${args.page || 1}`,
|
|
75
|
-
limit: `Limit: ${args.limit || 20}`,
|
|
76
|
-
},
|
|
77
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_COMMENTS,
|
|
78
|
-
actionDescription: 'retrieve comments',
|
|
79
|
-
displayFormat: 'Display the comments with author information and timestamps.',
|
|
80
|
-
}));
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
exports.socialPrompts = [
|
|
84
|
-
exports.postCommentPrompt,
|
|
85
|
-
exports.fetchCommentsPrompt,
|
|
86
|
-
];
|
|
87
|
-
//# sourceMappingURL=social.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/prompts/social.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAAyD;AACzD,0DAA2D;AAC3D,iEAAiE;AACjE,+DAAqE;AAErE;;GAEG;AACU,QAAA,iBAAiB,GAAc;IAC1C,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,gCAAgC;IAC7C,SAAS,EAAE;QACT;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACf;KACF;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iB,EAAE,mBAAmB;YACtC,aAAa,EAAE,8DAA8D;SAC9E,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEW,QAAA,aAAa,GAAgB;IACxC,yBAAiB;IACjB,2BAAmB;CACpB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Comments & Social Tools
|
|
3
|
-
*/
|
|
4
|
-
import type { MCPTool } from '../../types/mcp.js';
|
|
5
|
-
export declare const postCommentTool: MCPTool;
|
|
6
|
-
export declare const fetchCommentsTool: MCPTool;
|
|
7
|
-
export declare const socialTools: MCPTool[];
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/social/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAalD,eAAO,MAAM,eAAe,EAAE,OAqB7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,OAoB/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,EAAyC,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Comments & Social Tools
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.socialTools = exports.fetchCommentsTool = exports.postCommentTool = void 0;
|
|
7
|
-
const response_formatter_js_1 = require("../../utils/response-formatter.js");
|
|
8
|
-
const error_handler_js_1 = require("../../utils/error-handler.js");
|
|
9
|
-
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
10
|
-
const default_values_js_1 = require("../../utils/default-values.js");
|
|
11
|
-
// 1. Post Comment
|
|
12
|
-
exports.postCommentTool = {
|
|
13
|
-
name: 'gala_launchpad_post_comment',
|
|
14
|
-
description: 'Post a comment on a token pool',
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
19
|
-
message: common_schemas_js_1.COMMENT_MESSAGE_SCHEMA,
|
|
20
|
-
privateKey: common_schemas_js_1.PRIVATE_KEY_SCHEMA,
|
|
21
|
-
},
|
|
22
|
-
required: ['tokenName', 'message'],
|
|
23
|
-
},
|
|
24
|
-
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
25
|
-
await sdk.postComment({
|
|
26
|
-
tokenName: args.tokenName,
|
|
27
|
-
content: args.message, // MCP parameter "message" → SDK parameter "content"
|
|
28
|
-
privateKey: args.privateKey,
|
|
29
|
-
});
|
|
30
|
-
// postComment returns void, so return success message
|
|
31
|
-
return (0, response_formatter_js_1.formatSuccess)({ success: true, message: 'Comment posted successfully' });
|
|
32
|
-
}),
|
|
33
|
-
};
|
|
34
|
-
// 2. Fetch Comments (using centralized pagination defaults)
|
|
35
|
-
exports.fetchCommentsTool = {
|
|
36
|
-
name: 'gala_launchpad_fetch_comments',
|
|
37
|
-
description: 'Get comments for a token pool',
|
|
38
|
-
inputSchema: {
|
|
39
|
-
type: 'object',
|
|
40
|
-
properties: {
|
|
41
|
-
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
42
|
-
page: common_schemas_js_1.PAGE_SCHEMA,
|
|
43
|
-
limit: (0, common_schemas_js_1.createLimitSchema)('comment', 20),
|
|
44
|
-
},
|
|
45
|
-
required: ['tokenName'],
|
|
46
|
-
},
|
|
47
|
-
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
48
|
-
const pagination = (0, default_values_js_1.applyOperationPaginationDefaults)(args, 'comment');
|
|
49
|
-
const result = await sdk.fetchComments({
|
|
50
|
-
tokenName: args.tokenName,
|
|
51
|
-
...pagination,
|
|
52
|
-
});
|
|
53
|
-
return (0, response_formatter_js_1.formatSuccess)(result);
|
|
54
|
-
}),
|
|
55
|
-
};
|
|
56
|
-
exports.socialTools = [exports.postCommentTool, exports.fetchCommentsTool];
|
|
57
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/social/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AACjE,uEAMyC;AACzC,qEAAiF;AAEjF,kBAAkB;AACL,QAAA,eAAe,GAAY;IACtC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE,qCAAiB;YAC5B,OAAO,EAAE,0CAAsB;YAC/B,UAAU,EAAE,sCAAkB;SAC/B;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;KACnC;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,GAAG,CAAC,WAAW,CAAC;YACpB,SAAS,EAAE,IAAI,CAAC,SAAmB;YACnC,OAAO,EAAE,IAAI,CAAC,OAAiB,EAAE,oDAAoD;YACrF,UAAU,EAAE,IAAI,CAAC,UAAgC;SAClD,CAAC,CAAC;QACH,sDAAsD;QACtD,OAAO,IAAA,qCAAa,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC,CAAC;IAClF,CAAC,CAAC;CACH,CAAC;AAEF,4DAA4D;AAC/C,QAAA,iBAAiB,GAAY;IACxC,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE,qCAAiB;YAC5B,IAAI,EAAE,+BAAW;YACjB,KAAK,EAAE,IAAA,qCAAiB,EAAC,SAAS,EAAE,EAAE,CAAC;SACxC;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,UAAU,GAAG,IAAA,oDAAgC,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC;YACrC,SAAS,EAAE,IAAI,CAAC,SAAmB;YACnC,GAAG,UAAU;SACd,CAAC,CAAC;QACH,OAAO,IAAA,qCAAa,EAAC,MAAM,CAAC,CAAC;IAC/B,CAAC,CAAC;CACH,CAAC;AAEW,QAAA,WAAW,GAAc,CAAC,uBAAe,EAAE,yBAAiB,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Retrieve From Faucet Tool
|
|
3
|
-
*
|
|
4
|
-
* Retrieves GALA from the faucet to a wallet address.
|
|
5
|
-
* Backend provides a fixed amount (5 GALA) regardless of amount parameter.
|
|
6
|
-
*/
|
|
7
|
-
import type { MCPTool } from '../../types/mcp.js';
|
|
8
|
-
export declare const retrieveFromFaucetTool: MCPTool;
|
|
9
|
-
//# sourceMappingURL=retrieveFromFaucet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieveFromFaucet.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/retrieveFromFaucet.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,sBAAsB,EAAE,OA0BpC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve From Faucet Tool
|
|
4
|
-
*
|
|
5
|
-
* Retrieves GALA from the faucet to a wallet address.
|
|
6
|
-
* Backend provides a fixed amount (5 GALA) regardless of amount parameter.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.retrieveFromFaucetTool = void 0;
|
|
10
|
-
const error_handler_js_1 = require("../../utils/error-handler.js");
|
|
11
|
-
const response_formatter_js_1 = require("../../utils/response-formatter.js");
|
|
12
|
-
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
13
|
-
exports.retrieveFromFaucetTool = {
|
|
14
|
-
name: 'gala_launchpad_retrieve_from_faucet',
|
|
15
|
-
description: 'Retrieve GALA from faucet to wallet. Backend provides a fixed amount (5 GALA). Useful for testing and development.',
|
|
16
|
-
inputSchema: {
|
|
17
|
-
type: 'object',
|
|
18
|
-
properties: {
|
|
19
|
-
walletAddress: {
|
|
20
|
-
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
21
|
-
description: 'Optional wallet address override (defaults to SDK authenticated wallet). Format: "eth|0x..." or "0x..."',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
26
|
-
const walletAddress = args?.walletAddress;
|
|
27
|
-
await sdk.retrieveGalaFromFaucet(walletAddress);
|
|
28
|
-
return (0, response_formatter_js_1.formatSuccess)({
|
|
29
|
-
message: 'Successfully retrieved 5 GALA from faucet',
|
|
30
|
-
walletAddress: walletAddress || sdk.getAddress(),
|
|
31
|
-
amount: '5',
|
|
32
|
-
token: 'GALA',
|
|
33
|
-
});
|
|
34
|
-
}),
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=retrieveFromFaucet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieveFromFaucet.js","sourceRoot":"","sources":["../../../src/tools/utils/retrieveFromFaucet.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mEAAiE;AACjE,6EAAkE;AAClE,uEAAiE;AAGpD,QAAA,sBAAsB,GAAY;IAC7C,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,oHAAoH;IACtH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE;gBACb,GAAG,kCAAc;gBACjB,WAAW,EACT,yGAAyG;aAC5G;SACF;KACF;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,aAAa,GAAG,IAAI,EAAE,aAAmC,CAAC;QAEhE,MAAM,GAAG,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;QAEhD,OAAO,IAAA,qCAAa,EAAC;YACnB,OAAO,EAAE,2CAA2C;YACpD,aAAa,EAAE,aAAa,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,MAAM,EAAE,GAAG;YACX,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC,CAAC;CACH,CAAC"}
|