@gala-chain/launchpad-mcp-server 1.13.2 → 1.13.3

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/generated/version.d.ts +1 -1
  3. package/dist/generated/version.js +1 -1
  4. package/package.json +2 -2
  5. package/docs/AI-AGENT-PATTERNS.md +0 -555
  6. package/docs/CONSTRAINTS-REFERENCE.md +0 -454
  7. package/docs/PROMPT-TOOL-MAPPING.md +0 -352
  8. package/docs/examples/default-values-pattern.md +0 -240
  9. package/docs/examples/tool-factory-pattern.md +0 -217
  10. package/jest.config.js +0 -94
  11. package/src/__tests__/integration/poolTools.integration.test.ts +0 -185
  12. package/src/constants/mcpToolNames.ts +0 -141
  13. package/src/index.ts +0 -19
  14. package/src/prompts/__tests__/promptStructure.test.ts +0 -114
  15. package/src/prompts/__tests__/registry.test.ts +0 -143
  16. package/src/prompts/analysis.ts +0 -429
  17. package/src/prompts/index.ts +0 -127
  18. package/src/prompts/portfolio.ts +0 -242
  19. package/src/prompts/trading.ts +0 -191
  20. package/src/prompts/utility.ts +0 -43
  21. package/src/prompts/utils/workflowTemplates.ts +0 -344
  22. package/src/schemas/common-schemas.ts +0 -392
  23. package/src/scripts/test-all-prompts.ts +0 -184
  24. package/src/server.ts +0 -247
  25. package/src/tools/balance/index.ts +0 -174
  26. package/src/tools/creation/index.ts +0 -182
  27. package/src/tools/index.ts +0 -80
  28. package/src/tools/pools/fetchAllPools.ts +0 -47
  29. package/src/tools/pools/fetchAllPriceHistory.ts +0 -103
  30. package/src/tools/pools/fetchAllPrices.ts +0 -39
  31. package/src/tools/pools/fetchPoolDetails.ts +0 -27
  32. package/src/tools/pools/fetchPoolDetailsForCalculation.ts +0 -22
  33. package/src/tools/pools/fetchPools.ts +0 -47
  34. package/src/tools/pools/fetchPriceHistory.ts +0 -108
  35. package/src/tools/pools/fetchPrices.ts +0 -52
  36. package/src/tools/pools/index.ts +0 -248
  37. package/src/tools/social/index.ts +0 -64
  38. package/src/tools/trading/index.ts +0 -605
  39. package/src/tools/transfers/index.ts +0 -75
  40. package/src/tools/utils/clearCache.ts +0 -36
  41. package/src/tools/utils/createWallet.ts +0 -19
  42. package/src/tools/utils/explainSdkUsage.ts +0 -853
  43. package/src/tools/utils/getAddress.ts +0 -12
  44. package/src/tools/utils/getCacheInfo.ts +0 -14
  45. package/src/tools/utils/getConfig.ts +0 -11
  46. package/src/tools/utils/getEthereumAddress.ts +0 -12
  47. package/src/tools/utils/getUrlByTokenName.ts +0 -12
  48. package/src/tools/utils/getVersion.ts +0 -25
  49. package/src/tools/utils/index.ts +0 -27
  50. package/src/tools/utils/isTokenGraduated.ts +0 -16
  51. package/src/types/mcp.ts +0 -72
  52. package/src/utils/__tests__/validation.test.ts +0 -147
  53. package/src/utils/constraints.ts +0 -146
  54. package/src/utils/default-values.ts +0 -208
  55. package/src/utils/error-handler.ts +0 -69
  56. package/src/utils/error-templates.ts +0 -273
  57. package/src/utils/response-formatter.ts +0 -51
  58. package/src/utils/tool-factory.ts +0 -257
  59. package/src/utils/tool-registry.ts +0 -296
  60. package/src/utils/validation.ts +0 -336
  61. package/tsconfig.json +0 -23
@@ -1,36 +0,0 @@
1
- /**
2
- * Clear Cache Tool
3
- *
4
- * Clears token metadata cache (all tokens or specific token).
5
- * Useful for testing or forcing fresh fetches of token data.
6
- */
7
-
8
- import { withErrorHandling } from '../../utils/error-handler.js';
9
- import { formatSuccess } from '../../utils/response-formatter.js';
10
- import { TOKEN_NAME_SCHEMA } from '../../schemas/common-schemas.js';
11
- import type { MCPTool } from '../../types/mcp.js';
12
-
13
- export const clearCacheTool: MCPTool = {
14
- name: 'gala_launchpad_clear_cache',
15
- description: 'Clear token metadata cache. Can clear a specific token or the entire cache. The cache automatically warms from fetchPools calls.',
16
- inputSchema: {
17
- type: 'object',
18
- properties: {
19
- tokenName: {
20
- ...TOKEN_NAME_SCHEMA,
21
- description: 'Optional token name to clear (clears all if not provided)',
22
- },
23
- },
24
- },
25
- handler: withErrorHandling(async (sdk, args) => {
26
- const tokenName = args?.tokenName;
27
- sdk.clearCache(tokenName);
28
-
29
- return formatSuccess({
30
- message: tokenName
31
- ? `Cache cleared for token: ${tokenName}`
32
- : 'Cache cleared for all tokens',
33
- tokenName: tokenName || null,
34
- });
35
- }),
36
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * Create Wallet Tool (45% code reduction via factory pattern)
3
- */
4
-
5
- import { createWallet } from '@gala-chain/launchpad-sdk';
6
- import { createNoParamTool } from '../../utils/tool-factory.js';
7
-
8
- export const createWalletTool = createNoParamTool({
9
- name: 'gala_launchpad_create_wallet',
10
- description: 'Create a new wallet with a random private key. Returns wallet address and private key.',
11
- handler: () => {
12
- const wallet = createWallet();
13
- return {
14
- address: wallet.address,
15
- privateKey: wallet.privateKey,
16
- galaAddress: wallet.galaAddress,
17
- };
18
- },
19
- });