@gala-chain/launchpad-mcp-server 1.22.3 → 1.23.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/CHANGELOG.md +161 -0
- package/README.md +83 -8
- package/dist/constants/mcpToolNames.d.ts +69 -11
- package/dist/constants/mcpToolNames.d.ts.map +1 -1
- package/dist/constants/mcpToolNames.js +47 -9
- package/dist/constants/mcpToolNames.js.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/prompts/balances.d.ts +24 -0
- package/dist/prompts/balances.d.ts.map +1 -0
- package/dist/prompts/balances.js +191 -0
- package/dist/prompts/balances.js.map +1 -0
- package/dist/prompts/creation-utils.d.ts +20 -0
- package/dist/prompts/creation-utils.d.ts.map +1 -0
- package/dist/prompts/creation-utils.js +115 -0
- package/dist/prompts/creation-utils.js.map +1 -0
- package/dist/prompts/index.d.ts +9 -2
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +23 -2
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/pools.d.ts +64 -0
- package/dist/prompts/pools.d.ts.map +1 -0
- package/dist/prompts/pools.js +548 -0
- package/dist/prompts/pools.js.map +1 -0
- package/dist/prompts/social.d.ts +16 -0
- package/dist/prompts/social.d.ts.map +1 -0
- package/dist/prompts/social.js +97 -0
- package/dist/prompts/social.js.map +1 -0
- package/dist/prompts/trading-calculations.d.ts +52 -0
- package/dist/prompts/trading-calculations.d.ts.map +1 -0
- package/dist/prompts/trading-calculations.js +479 -0
- package/dist/prompts/trading-calculations.js.map +1 -0
- package/dist/prompts/transfers.d.ts +16 -0
- package/dist/prompts/transfers.d.ts.map +1 -0
- package/dist/prompts/transfers.js +100 -0
- package/dist/prompts/transfers.js.map +1 -0
- package/dist/prompts/utility-tools.d.ts +56 -0
- package/dist/prompts/utility-tools.d.ts.map +1 -0
- package/dist/prompts/utility-tools.js +338 -0
- package/dist/prompts/utility-tools.js.map +1 -0
- package/dist/prompts/utility.d.ts +8 -0
- package/dist/prompts/utility.d.ts.map +1 -1
- package/dist/prompts/utility.js +49 -2
- package/dist/prompts/utility.js.map +1 -1
- package/dist/server.d.ts +17 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +81 -3
- package/dist/server.js.map +1 -1
- package/dist/tools/index.d.ts +9 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +10 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/utils/getConfig.d.ts +2 -0
- package/dist/tools/utils/getConfig.d.ts.map +1 -1
- package/dist/tools/utils/getConfig.js +12 -3
- package/dist/tools/utils/getConfig.js.map +1 -1
- package/dist/tools/utils/getEnvironment.d.ts +8 -0
- package/dist/tools/utils/getEnvironment.d.ts.map +1 -0
- package/dist/tools/utils/getEnvironment.js +19 -0
- package/dist/tools/utils/getEnvironment.js.map +1 -0
- package/dist/tools/utils/index.d.ts.map +1 -1
- package/dist/tools/utils/index.js +4 -0
- package/dist/tools/utils/index.js.map +1 -1
- package/dist/tools/utils/switchEnvironment.d.ts +8 -0
- package/dist/tools/utils/switchEnvironment.d.ts.map +1 -0
- package/dist/tools/utils/switchEnvironment.js +30 -0
- package/dist/tools/utils/switchEnvironment.js.map +1 -0
- package/dist/types/mcp.d.ts +1 -1
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/utils/tool-factory.d.ts +30 -0
- package/dist/utils/tool-factory.d.ts.map +1 -1
- package/dist/utils/tool-factory.js +31 -0
- package/dist/utils/tool-factory.js.map +1 -1
- package/docs/AI-AGENT-PATTERNS.md +555 -0
- package/docs/CONSTRAINTS-REFERENCE.md +454 -0
- package/docs/PROMPT-TOOL-MAPPING.md +352 -0
- package/docs/examples/default-values-pattern.md +240 -0
- package/docs/examples/tool-factory-pattern.md +217 -0
- package/jest.config.js +94 -0
- package/package.json +1 -1
- package/src/__tests__/integration/fetchTokenDetails.integration.test.ts +258 -0
- package/src/__tests__/integration/poolTools.integration.test.ts +185 -0
- package/src/__tests__/server.test.ts +256 -0
- package/src/constants/mcpToolNames.ts +181 -0
- package/src/index.ts +19 -0
- package/src/prompts/__tests__/promptStructure.test.ts +137 -0
- package/src/prompts/__tests__/registry.test.ts +359 -0
- package/src/prompts/analysis.ts +429 -0
- package/src/prompts/balances.ts +198 -0
- package/src/prompts/create-token.ts +123 -0
- package/src/prompts/creation-utils.ts +118 -0
- package/src/prompts/dex-trading.ts +86 -0
- package/src/prompts/discover-tokens.ts +86 -0
- package/src/prompts/index.ts +175 -0
- package/src/prompts/liquidity-positions.ts +270 -0
- package/src/prompts/pools.ts +571 -0
- package/src/prompts/portfolio.ts +242 -0
- package/src/prompts/social.ts +100 -0
- package/src/prompts/trading-calculations.ts +499 -0
- package/src/prompts/trading.ts +191 -0
- package/src/prompts/transfers.ts +103 -0
- package/src/prompts/utility-tools.ts +349 -0
- package/src/prompts/utility.ts +92 -0
- package/src/prompts/utils/workflowTemplates.ts +511 -0
- package/src/schemas/common-schemas.ts +393 -0
- package/src/scripts/test-all-prompts.ts +184 -0
- package/src/server.ts +367 -0
- package/src/tools/__tests__/dex-tools.test.ts +562 -0
- package/src/tools/__tests__/liquidity-positions.test.ts +673 -0
- package/src/tools/balance/index.ts +174 -0
- package/src/tools/creation/index.ts +182 -0
- package/src/tools/dex/index.ts +226 -0
- package/src/tools/dex/liquidity-positions.ts +547 -0
- package/src/tools/index.ts +94 -0
- package/src/tools/pools/fetchAllPools.ts +47 -0
- package/src/tools/pools/fetchAllPriceHistory.ts +119 -0
- package/src/tools/pools/fetchPoolDetails.ts +27 -0
- package/src/tools/pools/fetchPoolDetailsForCalculation.ts +22 -0
- package/src/tools/pools/fetchPools.ts +47 -0
- package/src/tools/pools/fetchPriceHistory.ts +124 -0
- package/src/tools/pools/fetchTokenDetails.ts +77 -0
- package/src/tools/pools/index.ts +284 -0
- package/src/tools/social/index.ts +64 -0
- package/src/tools/trading/index.ts +605 -0
- package/src/tools/transfers/index.ts +75 -0
- package/src/tools/utils/clearCache.ts +36 -0
- package/src/tools/utils/createWallet.ts +19 -0
- package/src/tools/utils/explainSdkUsage.ts +1446 -0
- package/src/tools/utils/getAddress.ts +12 -0
- package/src/tools/utils/getCacheInfo.ts +14 -0
- package/src/tools/utils/getConfig.ts +21 -0
- package/src/tools/utils/getEnvironment.ts +17 -0
- package/src/tools/utils/getEthereumAddress.ts +12 -0
- package/src/tools/utils/getUrlByTokenName.ts +12 -0
- package/src/tools/utils/getVersion.ts +25 -0
- package/src/tools/utils/getWallet.ts +25 -0
- package/src/tools/utils/hasWallet.ts +15 -0
- package/src/tools/utils/index.ts +37 -0
- package/src/tools/utils/isTokenGraduated.ts +16 -0
- package/src/tools/utils/setWallet.ts +41 -0
- package/src/tools/utils/switchEnvironment.ts +28 -0
- package/src/types/mcp.ts +72 -0
- package/src/utils/__tests__/validation.test.ts +147 -0
- package/src/utils/constraints.ts +155 -0
- package/src/utils/default-values.ts +208 -0
- package/src/utils/error-handler.ts +69 -0
- package/src/utils/error-templates.ts +273 -0
- package/src/utils/response-formatter.ts +51 -0
- package/src/utils/tool-factory.ts +303 -0
- package/src/utils/tool-registry.ts +296 -0
- package/src/utils/validation.ts +371 -0
- package/tests/wallet-management-integration.test.ts +284 -0
- package/tsconfig.json +23 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,166 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2bab95b: feat: Add 50 new slash commands to achieve complete 1:1 MCP tool-to-command mapping
|
|
8
|
+
|
|
9
|
+
Complete implementation of user requirement: "every MCP tool should have a corresponding slash
|
|
10
|
+
command."
|
|
11
|
+
|
|
12
|
+
## Changes
|
|
13
|
+
|
|
14
|
+
### New Slash Commands (50 total)
|
|
15
|
+
|
|
16
|
+
**Pool Management (15 commands):**
|
|
17
|
+
- fetch-pools, fetch-all-pools, fetch-pool-details, fetch-pool-details-for-calculation
|
|
18
|
+
- fetch-token-details, fetch-token-distribution, fetch-token-badges, fetch-volume-data
|
|
19
|
+
- fetch-gala-spot-price, fetch-token-spot-price, fetch-launchpad-token-spot-price
|
|
20
|
+
- fetch-price-history, fetch-all-price-history
|
|
21
|
+
- check-token-name, check-token-symbol, resolve-vault-address, resolve-token-class-key
|
|
22
|
+
|
|
23
|
+
**Trading Calculations (11 commands):**
|
|
24
|
+
- calculate-buy-amount, calculate-sell-amount, fetch-trades, calculate-initial-buy
|
|
25
|
+
- get-bundler-transaction-result, calculate-graduation-cost
|
|
26
|
+
- calculate-buy-amount-local, calculate-buy-amount-external
|
|
27
|
+
- calculate-sell-amount-local, calculate-sell-amount-external
|
|
28
|
+
- is-token-graduated
|
|
29
|
+
|
|
30
|
+
**Balance & Portfolio (4 commands):**
|
|
31
|
+
- fetch-gala-balance, fetch-token-balance, fetch-tokens-created, update-profile
|
|
32
|
+
|
|
33
|
+
**Creation Utilities (3 commands):**
|
|
34
|
+
- upload-profile-image, upload-token-image, fetch-launch-token-fee
|
|
35
|
+
|
|
36
|
+
**Social & Comments (2 commands):**
|
|
37
|
+
- post-comment, fetch-comments
|
|
38
|
+
|
|
39
|
+
**Token Transfers (2 commands):**
|
|
40
|
+
- transfer-gala, transfer-token
|
|
41
|
+
|
|
42
|
+
**Utility & System (12 commands):**
|
|
43
|
+
- create-wallet, get-address, get-ethereum-address, get-config
|
|
44
|
+
- get-url-by-token-name, explain-sdk-usage, get-cache-info, clear-cache
|
|
45
|
+
- has-wallet, get-wallet, set-wallet, get-environment
|
|
46
|
+
|
|
47
|
+
### Tool Constants
|
|
48
|
+
|
|
49
|
+
**Updated `src/constants/mcpToolNames.ts`:**
|
|
50
|
+
- Added 14 new tool constants to POOL_TOOLS (moved FETCH_TOKEN_DETAILS, FETCH_PRICE_HISTORY,
|
|
51
|
+
FETCH_ALL_PRICE_HISTORY, and resolved vault/token class key tools)
|
|
52
|
+
- Expanded UTILITY_TOOLS from 6 to 14 tools (added cache management, wallet management,
|
|
53
|
+
environment/version tools)
|
|
54
|
+
- Updated comments to reflect "72 tools across 8 categories"
|
|
55
|
+
|
|
56
|
+
### New Prompt Files
|
|
57
|
+
|
|
58
|
+
Created 7 new prompt files with comprehensive handler functions:
|
|
59
|
+
- `src/prompts/pools.ts` - Pool management commands
|
|
60
|
+
- `src/prompts/trading-calculations.ts` - Trading calculation commands
|
|
61
|
+
- `src/prompts/balances.ts` - Balance query commands
|
|
62
|
+
- `src/prompts/creation-utils.ts` - Creation utility commands
|
|
63
|
+
- `src/prompts/social.ts` - Social/comments commands
|
|
64
|
+
- `src/prompts/transfers.ts` - Token transfer commands
|
|
65
|
+
- `src/prompts/utility-tools.ts` - Utility and system commands
|
|
66
|
+
|
|
67
|
+
### Documentation Updates
|
|
68
|
+
|
|
69
|
+
**Updated `packages/mcp-server/README.md`:**
|
|
70
|
+
- Updated tool count from 70 to 72 across all sections
|
|
71
|
+
- Updated slash command count from 23 to 72 (was only 18 original commands + 24 new ones = 42
|
|
72
|
+
documented, now 72 total)
|
|
73
|
+
- Added comprehensive documentation for all 48 new slash commands organized by category
|
|
74
|
+
- Added emphasis on "1:1 tool-to-command mapping" - core design philosophy
|
|
75
|
+
- Complete tool listings now include all utility tools (cache, wallet, environment management)
|
|
76
|
+
|
|
77
|
+
### Architecture Achievement
|
|
78
|
+
|
|
79
|
+
The implementation completes the core design goal: **Every MCP tool now has exactly one
|
|
80
|
+
corresponding slash command**, enabling users to interact with all backend functionality through
|
|
81
|
+
the familiar slash command interface.
|
|
82
|
+
|
|
83
|
+
**Tool-to-Command Mapping:**
|
|
84
|
+
- 72 MCP tools → 72 slash commands (perfect 1:1 ratio)
|
|
85
|
+
- 9 tool categories → 9 command category sections in documentation
|
|
86
|
+
- Consistent naming patterns for easy discovery (tool names match command names)
|
|
87
|
+
|
|
88
|
+
### Code Organization Improvements
|
|
89
|
+
|
|
90
|
+
**Updated MCP_TOOLS spread operator order in `src/constants/mcpToolNames.ts`:**
|
|
91
|
+
- Reordered to place UTILITY_TOOLS before DEX_TOOLS and LIQUIDITY_TOOLS
|
|
92
|
+
- New order: POOL → TRADING → BALANCE → CREATION → SOCIAL → TRANSFER → UTILITY → DEX → LIQUIDITY
|
|
93
|
+
- Improves code consistency and follows logical category ordering
|
|
94
|
+
|
|
95
|
+
### Validation Improvements
|
|
96
|
+
|
|
97
|
+
Fixed validation function calls in all new prompt files to use correct function signatures:
|
|
98
|
+
- `validateTokenName(name, fieldName)` - Added fieldName parameter
|
|
99
|
+
- `validateAddress(address, fieldName)` - Added fieldName parameter
|
|
100
|
+
- `validateNumericAmount(amount, fieldName)` - Added required fieldName parameter
|
|
101
|
+
- Improved error messages when validation fails
|
|
102
|
+
|
|
103
|
+
### Test Coverage
|
|
104
|
+
|
|
105
|
+
All tests passing:
|
|
106
|
+
- TypeScript compilation: 0 errors
|
|
107
|
+
- Jest test suite: 1401 tests across 30 test suites
|
|
108
|
+
- ESLint: 0 linting issues
|
|
109
|
+
- Registry tests: Validates all 72 prompts are registered and discoverable
|
|
110
|
+
|
|
111
|
+
## Why This Matters
|
|
112
|
+
|
|
113
|
+
User's explicit requirement: _"why would a functionality be worth of a 'tool' that the mcp can
|
|
114
|
+
use, but not a / command I can use? It just seems like slashes should be mainly for exposing mcp
|
|
115
|
+
tools for quick consumption"_
|
|
116
|
+
|
|
117
|
+
This implementation fulfills that philosophy by ensuring complete parity between available tools
|
|
118
|
+
and available commands. Users never encounter a capability they can't access from the slash
|
|
119
|
+
command interface.
|
|
120
|
+
|
|
121
|
+
## 1.22.4
|
|
122
|
+
|
|
123
|
+
### Patch Changes
|
|
124
|
+
|
|
125
|
+
- 096a518: feat: add environment switching tools, prompts, and comprehensive test coverage for MCP
|
|
126
|
+
server
|
|
127
|
+
|
|
128
|
+
**New Tools:**
|
|
129
|
+
- Added gala_launchpad_get_environment tool to query current environment (production, development,
|
|
130
|
+
or testing)
|
|
131
|
+
- Added gala_launchpad_switch_environment tool to dynamically switch environments while preserving
|
|
132
|
+
wallet configuration
|
|
133
|
+
|
|
134
|
+
**New Prompts:**
|
|
135
|
+
- Added /galachain-launchpad:switch-environment slash command for guided environment switching
|
|
136
|
+
workflow
|
|
137
|
+
|
|
138
|
+
**Enhancements:**
|
|
139
|
+
- Enhanced gala_launchpad_get_config to include mcpServerEnvironment field showing current
|
|
140
|
+
environment state
|
|
141
|
+
- Implemented server-level tool support via new createServerLevelTool factory function
|
|
142
|
+
- Updated MCP tool handler signature to accept optional server parameter (backward compatible)
|
|
143
|
+
- Modified LaunchpadMCPServer to track currentEnvironment and currentPrivateKey state
|
|
144
|
+
- Added switchEnvironment() and getEnvironment() methods to LaunchpadMCPServer class with
|
|
145
|
+
fail-safe error handling
|
|
146
|
+
|
|
147
|
+
**Bug Fixes:**
|
|
148
|
+
- Fixed version mismatch in server.ts: now uses dynamically injected MCP_SERVER_VERSION instead of
|
|
149
|
+
hardcoded value
|
|
150
|
+
- Fixed error handling in switchEnvironment(): now creates new SDK before destroying old one to
|
|
151
|
+
prevent broken state on failure
|
|
152
|
+
|
|
153
|
+
**Tests:**
|
|
154
|
+
- Added 23 comprehensive server contract tests covering environment switching, state management,
|
|
155
|
+
error handling, and type safety
|
|
156
|
+
- Updated prompt registry tests to reflect 24 prompts (was 23)
|
|
157
|
+
- All 278 MCP server unit tests passing (was 255), total suite 1401+ tests
|
|
158
|
+
|
|
159
|
+
**Documentation:**
|
|
160
|
+
- Updated tool registry documentation: 72 tools total (pools: 17, trading: 13, dex: 13, balance:
|
|
161
|
+
6, creation: 4, social: 2, transfers: 2, utils: 15)
|
|
162
|
+
- Updated CLAUDE.md with comprehensive environment switching documentation
|
|
163
|
+
|
|
3
164
|
## 1.22.3
|
|
4
165
|
|
|
5
166
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ MCP (Model Context Protocol) server for Gala Launchpad SDK - Enables AI agents t
|
|
|
4
4
|
|
|
5
5
|
## 🚀 Features
|
|
6
6
|
|
|
7
|
-
- **
|
|
8
|
-
- **
|
|
7
|
+
- **72 AI-accessible tools** for complete Gala Launchpad integration (includes 18 pool management tools, 13 trading operation tools, 6 balance & portfolio tools, 5 token creation tools, 2 transfer tools, 2 social/comment tools, 14 utility tools, 5 GSwap DEX trading tools, 8 liquidity position tools)
|
|
8
|
+
- **72 slash commands** (prompts) for 1:1 mapping to all MCP tools - every tool has a corresponding slash command
|
|
9
9
|
- **Type-safe** - Full TypeScript support with validated inputs
|
|
10
10
|
- **Production-ready** - Built on [@gala-chain/launchpad-sdk ](https://www.npmjs.com/package/@gala-chain/launchpad-sdk)
|
|
11
11
|
- **Easy setup** - Works with Claude Desktop and other MCP clients
|
|
@@ -98,7 +98,7 @@ Use the wallet management tools to upgrade or switch wallets at runtime:
|
|
|
98
98
|
- `gala_launchpad_set_wallet` - Upgrade from read-only to full-access mode
|
|
99
99
|
- `gala_launchpad_get_wallet` - Retrieve wallet information
|
|
100
100
|
|
|
101
|
-
## 🛠️ Available Tools (
|
|
101
|
+
## 🛠️ Available Tools (72 Total)
|
|
102
102
|
|
|
103
103
|
### Pool Management (17 tools)
|
|
104
104
|
- `gala_launchpad_fetch_pools` - Fetch token pools with filtering
|
|
@@ -413,12 +413,20 @@ Ask Claude:
|
|
|
413
413
|
- `gala_launchpad_transfer_gala` - Transfer GALA tokens
|
|
414
414
|
- `gala_launchpad_transfer_token` - Transfer launchpad tokens
|
|
415
415
|
|
|
416
|
-
### Utility Tools (
|
|
416
|
+
### Utility Tools (14 tools)
|
|
417
417
|
- `gala_launchpad_create_wallet` - Create new GalaChain wallet
|
|
418
418
|
- `gala_launchpad_get_address` - Get user's GalaChain address
|
|
419
419
|
- `gala_launchpad_get_ethereum_address` - Get user's Ethereum address
|
|
420
420
|
- `gala_launchpad_get_config` - Get current SDK configuration
|
|
421
421
|
- `gala_launchpad_get_url_by_token_name` - Generate frontend URL for a token
|
|
422
|
+
- `gala_launchpad_explain_sdk_usage` - Get SDK code examples for specific topics
|
|
423
|
+
- `gala_launchpad_get_cache_info` - Get token metadata cache statistics
|
|
424
|
+
- `gala_launchpad_clear_cache` - Clear token metadata cache
|
|
425
|
+
- `gala_launchpad_has_wallet` - Check if wallet is configured
|
|
426
|
+
- `gala_launchpad_get_wallet` - Get currently configured wallet instance
|
|
427
|
+
- `gala_launchpad_set_wallet` - Configure wallet for signing operations
|
|
428
|
+
- `gala_launchpad_get_environment` - Get current MCP server environment
|
|
429
|
+
- `gala_launchpad_switch_environment` - Switch MCP server environment
|
|
422
430
|
- `gala_launchpad_get_version` - Get SDK and MCP server version information
|
|
423
431
|
|
|
424
432
|
## 💡 Example Usage
|
|
@@ -435,9 +443,9 @@ Ask Claude (or your AI assistant):
|
|
|
435
443
|
|
|
436
444
|
> "Show me all tokens I'm holding"
|
|
437
445
|
|
|
438
|
-
## ⚡ Slash Commands (Prompts)
|
|
446
|
+
## ⚡ Slash Commands (Prompts) - 1:1 Tool Mapping
|
|
439
447
|
|
|
440
|
-
The MCP server exposes **
|
|
448
|
+
The MCP server exposes **72 slash commands** (prompts) for complete 1:1 mapping to all MCP tools - every tool has a corresponding slash command for quick access. These appear as `/galachain-launchpad:<<method>>` in Claude Desktop.
|
|
441
449
|
|
|
442
450
|
### Trading Commands (4 commands)
|
|
443
451
|
|
|
@@ -493,7 +501,7 @@ The MCP server exposes **18 slash commands** that provide quick access to common
|
|
|
493
501
|
- **Arguments**: None
|
|
494
502
|
- Displays profile info, wallet addresses, activity metrics, and current balance
|
|
495
503
|
|
|
496
|
-
### Analysis Commands (
|
|
504
|
+
### Analysis Commands (6 commands)
|
|
497
505
|
|
|
498
506
|
**`/galachain-launchpad:compare-tokens`**
|
|
499
507
|
- Side-by-side comparison of two tokens
|
|
@@ -544,7 +552,74 @@ The MCP server exposes **18 slash commands** that provide quick access to common
|
|
|
544
552
|
- **Example**: `/galachain-launchpad:discover-tokens type=near-graduation minProgress=90 limit=10`
|
|
545
553
|
- Helps find investment opportunities with filtering and analysis
|
|
546
554
|
|
|
547
|
-
###
|
|
555
|
+
### Pool Management Commands (13 commands)
|
|
556
|
+
|
|
557
|
+
**`/galachain-launchpad:fetch-pools`** - Fetch token pools with filtering
|
|
558
|
+
**`/galachain-launchpad:fetch-pool-details-for-calculation`** - Get optimized pool details for local calculations
|
|
559
|
+
**`/galachain-launchpad:fetch-token-details`** - Fetch comprehensive token metadata
|
|
560
|
+
**`/galachain-launchpad:fetch-token-distribution`** - Get holder distribution and supply metrics
|
|
561
|
+
**`/galachain-launchpad:fetch-token-badges`** - Get achievement badges for volume and engagement
|
|
562
|
+
**`/galachain-launchpad:fetch-volume-data`** - Get OHLCV (candlestick) data for charting
|
|
563
|
+
**`/galachain-launchpad:fetch-gala-spot-price`** - Fetch current GALA USD spot price
|
|
564
|
+
**`/galachain-launchpad:fetch-price-history`** - Fetch historical price snapshots with pagination
|
|
565
|
+
**`/galachain-launchpad:fetch-all-price-history`** - Fetch all historical price data (auto-paginated)
|
|
566
|
+
**`/galachain-launchpad:check-token-name`** - Check if token name is available
|
|
567
|
+
**`/galachain-launchpad:check-token-symbol`** - Check if token symbol is available
|
|
568
|
+
**`/galachain-launchpad:resolve-vault-address`** - Get GalaChain vault address for a token
|
|
569
|
+
**`/galachain-launchpad:resolve-token-class-key`** - Get GalaChain TokenClassKey for a token
|
|
570
|
+
|
|
571
|
+
### Trading Calculation Commands (11 commands)
|
|
572
|
+
|
|
573
|
+
**`/galachain-launchpad:calculate-buy-amount`** - Calculate token amounts for buying
|
|
574
|
+
**`/galachain-launchpad:calculate-sell-amount`** - Calculate GALA amounts for selling
|
|
575
|
+
**`/galachain-launchpad:fetch-trades`** - Query trading history with optional filters
|
|
576
|
+
**`/galachain-launchpad:calculate-initial-buy`** - Calculate pre-buy amounts during token creation
|
|
577
|
+
**`/galachain-launchpad:get-bundler-transaction-result`** - Check bundler transaction status by ID
|
|
578
|
+
**`/galachain-launchpad:calculate-graduation-cost`** - Calculate cost to graduate a token pool
|
|
579
|
+
**`/galachain-launchpad:calculate-buy-amount-local`** - Calculate buy amount using LOCAL bonding curve (instant)
|
|
580
|
+
**`/galachain-launchpad:calculate-buy-amount-external`** - Calculate buy amount using EXTERNAL GalaChain call
|
|
581
|
+
**`/galachain-launchpad:calculate-sell-amount-local`** - Calculate sell amount using LOCAL bonding curve
|
|
582
|
+
**`/galachain-launchpad:calculate-sell-amount-external`** - Calculate sell amount using EXTERNAL GalaChain call
|
|
583
|
+
**`/galachain-launchpad:is-token-graduated`** - Check if token has completed bonding curve and graduated to DEX
|
|
584
|
+
|
|
585
|
+
### Balance & Portfolio Commands (4 commands)
|
|
586
|
+
|
|
587
|
+
**`/galachain-launchpad:fetch-gala-balance`** - Get your GALA balance
|
|
588
|
+
**`/galachain-launchpad:fetch-token-balance`** - Get balance for a specific token
|
|
589
|
+
**`/galachain-launchpad:fetch-tokens-created`** - List tokens you've created with status
|
|
590
|
+
**`/galachain-launchpad:update-profile`** - Update your user profile information
|
|
591
|
+
|
|
592
|
+
### Creation Utility Commands (2 commands)
|
|
593
|
+
|
|
594
|
+
**`/galachain-launchpad:upload-profile-image`** - Upload profile image from filesystem
|
|
595
|
+
**`/galachain-launchpad:fetch-launch-token-fee`** - Get current GALA fee required to launch a token
|
|
596
|
+
|
|
597
|
+
### Social & Comments Commands (2 commands)
|
|
598
|
+
|
|
599
|
+
**`/galachain-launchpad:post-comment`** - Post a comment on a token pool
|
|
600
|
+
**`/galachain-launchpad:fetch-comments`** - Get comments for a token pool
|
|
601
|
+
|
|
602
|
+
### Transfer Commands (2 commands)
|
|
603
|
+
|
|
604
|
+
**`/galachain-launchpad:transfer-gala`** - Transfer GALA tokens to another wallet
|
|
605
|
+
**`/galachain-launchpad:transfer-token`** - Transfer launchpad tokens to another wallet
|
|
606
|
+
|
|
607
|
+
### Utility & System Commands (12 commands)
|
|
608
|
+
|
|
609
|
+
**`/galachain-launchpad:create-wallet`** - Generate a new wallet with random private key
|
|
610
|
+
**`/galachain-launchpad:get-address`** - Get the GalaChain format address of authenticated wallet
|
|
611
|
+
**`/galachain-launchpad:get-ethereum-address`** - Get the standard Ethereum address format of authenticated wallet
|
|
612
|
+
**`/galachain-launchpad:get-config`** - View current SDK and MCP server configuration
|
|
613
|
+
**`/galachain-launchpad:get-url-by-token-name`** - Get the launchpad frontend URL for a token
|
|
614
|
+
**`/galachain-launchpad:explain-sdk-usage`** - Get detailed SDK usage examples for a topic
|
|
615
|
+
**`/galachain-launchpad:get-cache-info`** - Get token metadata cache statistics
|
|
616
|
+
**`/galachain-launchpad:clear-cache`** - Clear token metadata cache
|
|
617
|
+
**`/galachain-launchpad:has-wallet`** - Check if a wallet is configured in the MCP server
|
|
618
|
+
**`/galachain-launchpad:get-wallet`** - Get the currently configured wallet instance
|
|
619
|
+
**`/galachain-launchpad:set-wallet`** - Configure a wallet for signing operations
|
|
620
|
+
**`/galachain-launchpad:get-environment`** - Get the current MCP server environment
|
|
621
|
+
|
|
622
|
+
### Version Command (1 command)
|
|
548
623
|
|
|
549
624
|
**`/galachain-launchpad:version`**
|
|
550
625
|
- Display SDK and MCP server version information
|
|
@@ -5,28 +5,32 @@
|
|
|
5
5
|
* Use these constants instead of hardcoded strings to prevent typos
|
|
6
6
|
* and enable IDE autocomplete.
|
|
7
7
|
*
|
|
8
|
-
* Total:
|
|
8
|
+
* Total: 72 tools across 9 categories
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
|
-
* Pool Management & Pricing Tools (
|
|
11
|
+
* Pool Management & Pricing Tools (17 tools)
|
|
12
12
|
*/
|
|
13
13
|
export declare const POOL_TOOLS: {
|
|
14
14
|
readonly FETCH_POOLS: "gala_launchpad_fetch_pools";
|
|
15
15
|
readonly FETCH_ALL_POOLS: "gala_launchpad_fetch_all_pools";
|
|
16
16
|
readonly FETCH_POOL_DETAILS: "gala_launchpad_fetch_pool_details";
|
|
17
17
|
readonly FETCH_POOL_DETAILS_FOR_CALCULATION: "gala_launchpad_fetch_pool_details_for_calculation";
|
|
18
|
+
readonly FETCH_TOKEN_DETAILS: "gala_launchpad_fetch_token_details";
|
|
18
19
|
readonly FETCH_TOKEN_DISTRIBUTION: "gala_launchpad_fetch_token_distribution";
|
|
19
20
|
readonly FETCH_TOKEN_BADGES: "gala_launchpad_fetch_token_badges";
|
|
20
21
|
readonly FETCH_VOLUME_DATA: "gala_launchpad_fetch_volume_data";
|
|
21
22
|
readonly FETCH_GALA_SPOT_PRICE: "gala_launchpad_fetch_gala_spot_price";
|
|
22
23
|
readonly FETCH_TOKEN_SPOT_PRICE: "gala_launchpad_fetch_token_spot_price";
|
|
23
24
|
readonly FETCH_LAUNCHPAD_TOKEN_SPOT_PRICE: "gala_launchpad_fetch_launchpad_token_spot_price";
|
|
25
|
+
readonly FETCH_PRICE_HISTORY: "gala_launchpad_fetch_price_history";
|
|
26
|
+
readonly FETCH_ALL_PRICE_HISTORY: "gala_launchpad_fetch_all_price_history";
|
|
24
27
|
readonly CHECK_TOKEN_NAME: "gala_launchpad_check_token_name";
|
|
25
28
|
readonly CHECK_TOKEN_SYMBOL: "gala_launchpad_check_token_symbol";
|
|
26
|
-
readonly
|
|
29
|
+
readonly RESOLVE_VAULT_ADDRESS: "gala_launchpad_resolve_vault_address";
|
|
30
|
+
readonly RESOLVE_TOKEN_CLASS_KEY: "gala_launchpad_resolve_token_class_key";
|
|
27
31
|
};
|
|
28
32
|
/**
|
|
29
|
-
* Trading Operations Tools (
|
|
33
|
+
* Trading Operations Tools (13 tools)
|
|
30
34
|
*/
|
|
31
35
|
export declare const TRADING_TOOLS: {
|
|
32
36
|
readonly CALCULATE_BUY_AMOUNT: "gala_launchpad_calculate_buy_amount";
|
|
@@ -41,6 +45,7 @@ export declare const TRADING_TOOLS: {
|
|
|
41
45
|
readonly GRADUATE_TOKEN: "gala_launchpad_graduate_token";
|
|
42
46
|
readonly FETCH_TRADES: "gala_launchpad_fetch_trades";
|
|
43
47
|
readonly GET_BUNDLER_TRANSACTION_RESULT: "gala_launchpad_get_bundler_transaction_result";
|
|
48
|
+
readonly IS_TOKEN_GRADUATED: "gala_launchpad_is_token_graduated";
|
|
44
49
|
};
|
|
45
50
|
/**
|
|
46
51
|
* Balance & Portfolio Tools (6 tools)
|
|
@@ -54,7 +59,7 @@ export declare const BALANCE_TOOLS: {
|
|
|
54
59
|
readonly UPDATE_PROFILE: "gala_launchpad_update_profile";
|
|
55
60
|
};
|
|
56
61
|
/**
|
|
57
|
-
* Token Creation Tools (
|
|
62
|
+
* Token Creation Tools (5 tools)
|
|
58
63
|
*/
|
|
59
64
|
export declare const CREATION_TOOLS: {
|
|
60
65
|
readonly LAUNCH_TOKEN: "gala_launchpad_launch_token";
|
|
@@ -78,7 +83,7 @@ export declare const TRANSFER_TOOLS: {
|
|
|
78
83
|
readonly TRANSFER_TOKEN: "gala_launchpad_transfer_token";
|
|
79
84
|
};
|
|
80
85
|
/**
|
|
81
|
-
* Utility Tools (
|
|
86
|
+
* Utility Tools (14 tools)
|
|
82
87
|
*/
|
|
83
88
|
export declare const UTILITY_TOOLS: {
|
|
84
89
|
readonly CREATE_WALLET: "gala_launchpad_create_wallet";
|
|
@@ -86,9 +91,38 @@ export declare const UTILITY_TOOLS: {
|
|
|
86
91
|
readonly GET_ETHEREUM_ADDRESS: "gala_launchpad_get_ethereum_address";
|
|
87
92
|
readonly GET_CONFIG: "gala_launchpad_get_config";
|
|
88
93
|
readonly GET_URL_BY_TOKEN_NAME: "gala_launchpad_get_url_by_token_name";
|
|
89
|
-
readonly RESOLVE_TOKEN_CLASS_KEY: "gala_launchpad_resolve_token_class_key";
|
|
90
|
-
readonly RESOLVE_VAULT_ADDRESS: "gala_launchpad_resolve_vault_address";
|
|
91
94
|
readonly EXPLAIN_SDK_USAGE: "gala_launchpad_explain_sdk_usage";
|
|
95
|
+
readonly GET_CACHE_INFO: "gala_launchpad_get_cache_info";
|
|
96
|
+
readonly CLEAR_CACHE: "gala_launchpad_clear_cache";
|
|
97
|
+
readonly HAS_WALLET: "gala_launchpad_has_wallet";
|
|
98
|
+
readonly GET_WALLET: "gala_launchpad_get_wallet";
|
|
99
|
+
readonly SET_WALLET: "gala_launchpad_set_wallet";
|
|
100
|
+
readonly GET_ENVIRONMENT: "gala_launchpad_get_environment";
|
|
101
|
+
readonly SWITCH_ENVIRONMENT: "gala_launchpad_switch_environment";
|
|
102
|
+
readonly GET_VERSION: "gala_launchpad_get_version";
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* DEX Trading Tools (5 tools)
|
|
106
|
+
*/
|
|
107
|
+
export declare const DEX_TOOLS: {
|
|
108
|
+
readonly GET_SWAP_QUOTE_EXACT_INPUT: "gala_launchpad_get_swap_quote_exact_input";
|
|
109
|
+
readonly GET_SWAP_QUOTE_EXACT_OUTPUT: "gala_launchpad_get_swap_quote_exact_output";
|
|
110
|
+
readonly EXECUTE_SWAP: "gala_launchpad_execute_swap";
|
|
111
|
+
readonly GET_SWAP_USER_ASSETS: "gala_launchpad_get_swap_user_assets";
|
|
112
|
+
readonly GET_SWAP_POOL_INFO: "gala_launchpad_get_swap_pool_info";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Liquidity Position Management Tools (8 tools)
|
|
116
|
+
*/
|
|
117
|
+
export declare const LIQUIDITY_TOOLS: {
|
|
118
|
+
readonly GET_USER_LIQUIDITY_POSITIONS: "gala_launchpad_get_user_liquidity_positions";
|
|
119
|
+
readonly GET_LIQUIDITY_POSITION_BY_ID: "gala_launchpad_get_liquidity_position_by_id";
|
|
120
|
+
readonly GET_LIQUIDITY_POSITION: "gala_launchpad_get_liquidity_position";
|
|
121
|
+
readonly ESTIMATE_REMOVE_LIQUIDITY: "gala_launchpad_estimate_remove_liquidity";
|
|
122
|
+
readonly ADD_LIQUIDITY_BY_PRICE: "gala_launchpad_add_liquidity_by_price";
|
|
123
|
+
readonly ADD_LIQUIDITY_BY_TICKS: "gala_launchpad_add_liquidity_by_ticks";
|
|
124
|
+
readonly REMOVE_LIQUIDITY: "gala_launchpad_remove_liquidity";
|
|
125
|
+
readonly COLLECT_POSITION_FEES: "gala_launchpad_collect_position_fees";
|
|
92
126
|
};
|
|
93
127
|
/**
|
|
94
128
|
* All MCP Tools - Flat structure for easy access
|
|
@@ -97,14 +131,33 @@ export declare const UTILITY_TOOLS: {
|
|
|
97
131
|
* or use this flat object for backwards compatibility.
|
|
98
132
|
*/
|
|
99
133
|
export declare const MCP_TOOLS: {
|
|
134
|
+
readonly GET_USER_LIQUIDITY_POSITIONS: "gala_launchpad_get_user_liquidity_positions";
|
|
135
|
+
readonly GET_LIQUIDITY_POSITION_BY_ID: "gala_launchpad_get_liquidity_position_by_id";
|
|
136
|
+
readonly GET_LIQUIDITY_POSITION: "gala_launchpad_get_liquidity_position";
|
|
137
|
+
readonly ESTIMATE_REMOVE_LIQUIDITY: "gala_launchpad_estimate_remove_liquidity";
|
|
138
|
+
readonly ADD_LIQUIDITY_BY_PRICE: "gala_launchpad_add_liquidity_by_price";
|
|
139
|
+
readonly ADD_LIQUIDITY_BY_TICKS: "gala_launchpad_add_liquidity_by_ticks";
|
|
140
|
+
readonly REMOVE_LIQUIDITY: "gala_launchpad_remove_liquidity";
|
|
141
|
+
readonly COLLECT_POSITION_FEES: "gala_launchpad_collect_position_fees";
|
|
142
|
+
readonly GET_SWAP_QUOTE_EXACT_INPUT: "gala_launchpad_get_swap_quote_exact_input";
|
|
143
|
+
readonly GET_SWAP_QUOTE_EXACT_OUTPUT: "gala_launchpad_get_swap_quote_exact_output";
|
|
144
|
+
readonly EXECUTE_SWAP: "gala_launchpad_execute_swap";
|
|
145
|
+
readonly GET_SWAP_USER_ASSETS: "gala_launchpad_get_swap_user_assets";
|
|
146
|
+
readonly GET_SWAP_POOL_INFO: "gala_launchpad_get_swap_pool_info";
|
|
100
147
|
readonly CREATE_WALLET: "gala_launchpad_create_wallet";
|
|
101
148
|
readonly GET_ADDRESS: "gala_launchpad_get_address";
|
|
102
149
|
readonly GET_ETHEREUM_ADDRESS: "gala_launchpad_get_ethereum_address";
|
|
103
150
|
readonly GET_CONFIG: "gala_launchpad_get_config";
|
|
104
151
|
readonly GET_URL_BY_TOKEN_NAME: "gala_launchpad_get_url_by_token_name";
|
|
105
|
-
readonly RESOLVE_TOKEN_CLASS_KEY: "gala_launchpad_resolve_token_class_key";
|
|
106
|
-
readonly RESOLVE_VAULT_ADDRESS: "gala_launchpad_resolve_vault_address";
|
|
107
152
|
readonly EXPLAIN_SDK_USAGE: "gala_launchpad_explain_sdk_usage";
|
|
153
|
+
readonly GET_CACHE_INFO: "gala_launchpad_get_cache_info";
|
|
154
|
+
readonly CLEAR_CACHE: "gala_launchpad_clear_cache";
|
|
155
|
+
readonly HAS_WALLET: "gala_launchpad_has_wallet";
|
|
156
|
+
readonly GET_WALLET: "gala_launchpad_get_wallet";
|
|
157
|
+
readonly SET_WALLET: "gala_launchpad_set_wallet";
|
|
158
|
+
readonly GET_ENVIRONMENT: "gala_launchpad_get_environment";
|
|
159
|
+
readonly SWITCH_ENVIRONMENT: "gala_launchpad_switch_environment";
|
|
160
|
+
readonly GET_VERSION: "gala_launchpad_get_version";
|
|
108
161
|
readonly TRANSFER_GALA: "gala_launchpad_transfer_gala";
|
|
109
162
|
readonly TRANSFER_TOKEN: "gala_launchpad_transfer_token";
|
|
110
163
|
readonly POST_COMMENT: "gala_launchpad_post_comment";
|
|
@@ -132,19 +185,24 @@ export declare const MCP_TOOLS: {
|
|
|
132
185
|
readonly GRADUATE_TOKEN: "gala_launchpad_graduate_token";
|
|
133
186
|
readonly FETCH_TRADES: "gala_launchpad_fetch_trades";
|
|
134
187
|
readonly GET_BUNDLER_TRANSACTION_RESULT: "gala_launchpad_get_bundler_transaction_result";
|
|
188
|
+
readonly IS_TOKEN_GRADUATED: "gala_launchpad_is_token_graduated";
|
|
135
189
|
readonly FETCH_POOLS: "gala_launchpad_fetch_pools";
|
|
136
190
|
readonly FETCH_ALL_POOLS: "gala_launchpad_fetch_all_pools";
|
|
137
191
|
readonly FETCH_POOL_DETAILS: "gala_launchpad_fetch_pool_details";
|
|
138
192
|
readonly FETCH_POOL_DETAILS_FOR_CALCULATION: "gala_launchpad_fetch_pool_details_for_calculation";
|
|
193
|
+
readonly FETCH_TOKEN_DETAILS: "gala_launchpad_fetch_token_details";
|
|
139
194
|
readonly FETCH_TOKEN_DISTRIBUTION: "gala_launchpad_fetch_token_distribution";
|
|
140
195
|
readonly FETCH_TOKEN_BADGES: "gala_launchpad_fetch_token_badges";
|
|
141
196
|
readonly FETCH_VOLUME_DATA: "gala_launchpad_fetch_volume_data";
|
|
142
197
|
readonly FETCH_GALA_SPOT_PRICE: "gala_launchpad_fetch_gala_spot_price";
|
|
143
198
|
readonly FETCH_TOKEN_SPOT_PRICE: "gala_launchpad_fetch_token_spot_price";
|
|
144
199
|
readonly FETCH_LAUNCHPAD_TOKEN_SPOT_PRICE: "gala_launchpad_fetch_launchpad_token_spot_price";
|
|
200
|
+
readonly FETCH_PRICE_HISTORY: "gala_launchpad_fetch_price_history";
|
|
201
|
+
readonly FETCH_ALL_PRICE_HISTORY: "gala_launchpad_fetch_all_price_history";
|
|
145
202
|
readonly CHECK_TOKEN_NAME: "gala_launchpad_check_token_name";
|
|
146
203
|
readonly CHECK_TOKEN_SYMBOL: "gala_launchpad_check_token_symbol";
|
|
147
|
-
readonly
|
|
204
|
+
readonly RESOLVE_VAULT_ADDRESS: "gala_launchpad_resolve_vault_address";
|
|
205
|
+
readonly RESOLVE_TOKEN_CLASS_KEY: "gala_launchpad_resolve_token_class_key";
|
|
148
206
|
};
|
|
149
207
|
/**
|
|
150
208
|
* Type helper for tool names
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpToolNames.d.ts","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"mcpToolNames.d.ts","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;CAkBb,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAchB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAehB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;CASlB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBZ,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAErE;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAE1C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,WAAW,CAEjE"}
|
|
@@ -6,32 +6,36 @@
|
|
|
6
6
|
* Use these constants instead of hardcoded strings to prevent typos
|
|
7
7
|
* and enable IDE autocomplete.
|
|
8
8
|
*
|
|
9
|
-
* Total:
|
|
9
|
+
* Total: 72 tools across 9 categories
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MCP_TOOLS = exports.UTILITY_TOOLS = exports.TRANSFER_TOOLS = exports.SOCIAL_TOOLS = exports.CREATION_TOOLS = exports.BALANCE_TOOLS = exports.TRADING_TOOLS = exports.POOL_TOOLS = void 0;
|
|
12
|
+
exports.MCP_TOOLS = exports.LIQUIDITY_TOOLS = exports.DEX_TOOLS = exports.UTILITY_TOOLS = exports.TRANSFER_TOOLS = exports.SOCIAL_TOOLS = exports.CREATION_TOOLS = exports.BALANCE_TOOLS = exports.TRADING_TOOLS = exports.POOL_TOOLS = void 0;
|
|
13
13
|
exports.getAllToolNames = getAllToolNames;
|
|
14
14
|
exports.isValidToolName = isValidToolName;
|
|
15
15
|
/**
|
|
16
|
-
* Pool Management & Pricing Tools (
|
|
16
|
+
* Pool Management & Pricing Tools (17 tools)
|
|
17
17
|
*/
|
|
18
18
|
exports.POOL_TOOLS = {
|
|
19
19
|
FETCH_POOLS: 'gala_launchpad_fetch_pools',
|
|
20
20
|
FETCH_ALL_POOLS: 'gala_launchpad_fetch_all_pools',
|
|
21
21
|
FETCH_POOL_DETAILS: 'gala_launchpad_fetch_pool_details',
|
|
22
22
|
FETCH_POOL_DETAILS_FOR_CALCULATION: 'gala_launchpad_fetch_pool_details_for_calculation',
|
|
23
|
+
FETCH_TOKEN_DETAILS: 'gala_launchpad_fetch_token_details',
|
|
23
24
|
FETCH_TOKEN_DISTRIBUTION: 'gala_launchpad_fetch_token_distribution',
|
|
24
25
|
FETCH_TOKEN_BADGES: 'gala_launchpad_fetch_token_badges',
|
|
25
26
|
FETCH_VOLUME_DATA: 'gala_launchpad_fetch_volume_data',
|
|
26
27
|
FETCH_GALA_SPOT_PRICE: 'gala_launchpad_fetch_gala_spot_price',
|
|
27
28
|
FETCH_TOKEN_SPOT_PRICE: 'gala_launchpad_fetch_token_spot_price',
|
|
28
29
|
FETCH_LAUNCHPAD_TOKEN_SPOT_PRICE: 'gala_launchpad_fetch_launchpad_token_spot_price',
|
|
30
|
+
FETCH_PRICE_HISTORY: 'gala_launchpad_fetch_price_history',
|
|
31
|
+
FETCH_ALL_PRICE_HISTORY: 'gala_launchpad_fetch_all_price_history',
|
|
29
32
|
CHECK_TOKEN_NAME: 'gala_launchpad_check_token_name',
|
|
30
33
|
CHECK_TOKEN_SYMBOL: 'gala_launchpad_check_token_symbol',
|
|
31
|
-
|
|
34
|
+
RESOLVE_VAULT_ADDRESS: 'gala_launchpad_resolve_vault_address',
|
|
35
|
+
RESOLVE_TOKEN_CLASS_KEY: 'gala_launchpad_resolve_token_class_key',
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
|
-
* Trading Operations Tools (
|
|
38
|
+
* Trading Operations Tools (13 tools)
|
|
35
39
|
*/
|
|
36
40
|
exports.TRADING_TOOLS = {
|
|
37
41
|
CALCULATE_BUY_AMOUNT: 'gala_launchpad_calculate_buy_amount',
|
|
@@ -46,6 +50,7 @@ exports.TRADING_TOOLS = {
|
|
|
46
50
|
GRADUATE_TOKEN: 'gala_launchpad_graduate_token',
|
|
47
51
|
FETCH_TRADES: 'gala_launchpad_fetch_trades',
|
|
48
52
|
GET_BUNDLER_TRANSACTION_RESULT: 'gala_launchpad_get_bundler_transaction_result',
|
|
53
|
+
IS_TOKEN_GRADUATED: 'gala_launchpad_is_token_graduated',
|
|
49
54
|
};
|
|
50
55
|
/**
|
|
51
56
|
* Balance & Portfolio Tools (6 tools)
|
|
@@ -59,7 +64,7 @@ exports.BALANCE_TOOLS = {
|
|
|
59
64
|
UPDATE_PROFILE: 'gala_launchpad_update_profile',
|
|
60
65
|
};
|
|
61
66
|
/**
|
|
62
|
-
* Token Creation Tools (
|
|
67
|
+
* Token Creation Tools (5 tools)
|
|
63
68
|
*/
|
|
64
69
|
exports.CREATION_TOOLS = {
|
|
65
70
|
LAUNCH_TOKEN: 'gala_launchpad_launch_token',
|
|
@@ -83,7 +88,7 @@ exports.TRANSFER_TOOLS = {
|
|
|
83
88
|
TRANSFER_TOKEN: 'gala_launchpad_transfer_token',
|
|
84
89
|
};
|
|
85
90
|
/**
|
|
86
|
-
* Utility Tools (
|
|
91
|
+
* Utility Tools (14 tools)
|
|
87
92
|
*/
|
|
88
93
|
exports.UTILITY_TOOLS = {
|
|
89
94
|
CREATE_WALLET: 'gala_launchpad_create_wallet',
|
|
@@ -91,9 +96,38 @@ exports.UTILITY_TOOLS = {
|
|
|
91
96
|
GET_ETHEREUM_ADDRESS: 'gala_launchpad_get_ethereum_address',
|
|
92
97
|
GET_CONFIG: 'gala_launchpad_get_config',
|
|
93
98
|
GET_URL_BY_TOKEN_NAME: 'gala_launchpad_get_url_by_token_name',
|
|
94
|
-
RESOLVE_TOKEN_CLASS_KEY: 'gala_launchpad_resolve_token_class_key',
|
|
95
|
-
RESOLVE_VAULT_ADDRESS: 'gala_launchpad_resolve_vault_address',
|
|
96
99
|
EXPLAIN_SDK_USAGE: 'gala_launchpad_explain_sdk_usage',
|
|
100
|
+
GET_CACHE_INFO: 'gala_launchpad_get_cache_info',
|
|
101
|
+
CLEAR_CACHE: 'gala_launchpad_clear_cache',
|
|
102
|
+
HAS_WALLET: 'gala_launchpad_has_wallet',
|
|
103
|
+
GET_WALLET: 'gala_launchpad_get_wallet',
|
|
104
|
+
SET_WALLET: 'gala_launchpad_set_wallet',
|
|
105
|
+
GET_ENVIRONMENT: 'gala_launchpad_get_environment',
|
|
106
|
+
SWITCH_ENVIRONMENT: 'gala_launchpad_switch_environment',
|
|
107
|
+
GET_VERSION: 'gala_launchpad_get_version',
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* DEX Trading Tools (5 tools)
|
|
111
|
+
*/
|
|
112
|
+
exports.DEX_TOOLS = {
|
|
113
|
+
GET_SWAP_QUOTE_EXACT_INPUT: 'gala_launchpad_get_swap_quote_exact_input',
|
|
114
|
+
GET_SWAP_QUOTE_EXACT_OUTPUT: 'gala_launchpad_get_swap_quote_exact_output',
|
|
115
|
+
EXECUTE_SWAP: 'gala_launchpad_execute_swap',
|
|
116
|
+
GET_SWAP_USER_ASSETS: 'gala_launchpad_get_swap_user_assets',
|
|
117
|
+
GET_SWAP_POOL_INFO: 'gala_launchpad_get_swap_pool_info',
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Liquidity Position Management Tools (8 tools)
|
|
121
|
+
*/
|
|
122
|
+
exports.LIQUIDITY_TOOLS = {
|
|
123
|
+
GET_USER_LIQUIDITY_POSITIONS: 'gala_launchpad_get_user_liquidity_positions',
|
|
124
|
+
GET_LIQUIDITY_POSITION_BY_ID: 'gala_launchpad_get_liquidity_position_by_id',
|
|
125
|
+
GET_LIQUIDITY_POSITION: 'gala_launchpad_get_liquidity_position',
|
|
126
|
+
ESTIMATE_REMOVE_LIQUIDITY: 'gala_launchpad_estimate_remove_liquidity',
|
|
127
|
+
ADD_LIQUIDITY_BY_PRICE: 'gala_launchpad_add_liquidity_by_price',
|
|
128
|
+
ADD_LIQUIDITY_BY_TICKS: 'gala_launchpad_add_liquidity_by_ticks',
|
|
129
|
+
REMOVE_LIQUIDITY: 'gala_launchpad_remove_liquidity',
|
|
130
|
+
COLLECT_POSITION_FEES: 'gala_launchpad_collect_position_fees',
|
|
97
131
|
};
|
|
98
132
|
/**
|
|
99
133
|
* All MCP Tools - Flat structure for easy access
|
|
@@ -116,6 +150,10 @@ exports.MCP_TOOLS = {
|
|
|
116
150
|
...exports.TRANSFER_TOOLS,
|
|
117
151
|
// Utilities
|
|
118
152
|
...exports.UTILITY_TOOLS,
|
|
153
|
+
// DEX Trading
|
|
154
|
+
...exports.DEX_TOOLS,
|
|
155
|
+
// Liquidity Positions
|
|
156
|
+
...exports.LIQUIDITY_TOOLS,
|
|
119
157
|
};
|
|
120
158
|
/**
|
|
121
159
|
* Get all tool names as an array
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpToolNames.js","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;
|
|
1
|
+
{"version":3,"file":"mcpToolNames.js","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Balance & Portfolio Prompts
|
|
3
|
+
*
|
|
4
|
+
* Slash commands for balance queries and portfolio management
|
|
5
|
+
*/
|
|
6
|
+
import type { MCPPrompt } from '../types/mcp.js';
|
|
7
|
+
/**
|
|
8
|
+
* Fetch GALA Balance - GALA balance query
|
|
9
|
+
*/
|
|
10
|
+
export declare const fetchGalaBalancePrompt: MCPPrompt;
|
|
11
|
+
/**
|
|
12
|
+
* Fetch Token Balance - Single token balance (optimized)
|
|
13
|
+
*/
|
|
14
|
+
export declare const fetchTokenBalancePrompt: MCPPrompt;
|
|
15
|
+
/**
|
|
16
|
+
* Fetch Tokens Created - Created tokens query
|
|
17
|
+
*/
|
|
18
|
+
export declare const fetchTokensCreatedPrompt: MCPPrompt;
|
|
19
|
+
/**
|
|
20
|
+
* Update Profile - Profile modification
|
|
21
|
+
*/
|
|
22
|
+
export declare const updateProfilePrompt: MCPPrompt;
|
|
23
|
+
export declare const balancePrompts: MCPPrompt[];
|
|
24
|
+
//# sourceMappingURL=balances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balances.d.ts","sourceRoot":"","sources":["../../src/prompts/balances.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,SA+BpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAmCrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAqDtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,SA2CjC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,EAKrC,CAAC"}
|