@gala-chain/launchpad-mcp-server 1.7.4 → 1.7.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +2 -2
  3. package/docs/AI-AGENT-PATTERNS.md +0 -555
  4. package/docs/CONSTRAINTS-REFERENCE.md +0 -454
  5. package/docs/PROMPT-TOOL-MAPPING.md +0 -352
  6. package/docs/examples/default-values-pattern.md +0 -240
  7. package/docs/examples/tool-factory-pattern.md +0 -217
  8. package/jest.config.js +0 -94
  9. package/src/__tests__/integration/poolTools.integration.test.ts +0 -185
  10. package/src/constants/mcpToolNames.ts +0 -141
  11. package/src/index.ts +0 -19
  12. package/src/prompts/__tests__/promptStructure.test.ts +0 -114
  13. package/src/prompts/__tests__/registry.test.ts +0 -143
  14. package/src/prompts/analysis.ts +0 -429
  15. package/src/prompts/index.ts +0 -123
  16. package/src/prompts/portfolio.ts +0 -242
  17. package/src/prompts/trading.ts +0 -191
  18. package/src/prompts/utils/workflowTemplates.ts +0 -344
  19. package/src/schemas/common-schemas.ts +0 -392
  20. package/src/scripts/test-all-prompts.ts +0 -184
  21. package/src/server.ts +0 -241
  22. package/src/tools/balance/index.ts +0 -174
  23. package/src/tools/creation/index.ts +0 -182
  24. package/src/tools/index.ts +0 -80
  25. package/src/tools/pools/fetchAllPools.ts +0 -47
  26. package/src/tools/pools/fetchPoolDetails.ts +0 -27
  27. package/src/tools/pools/fetchPoolDetailsForCalculation.ts +0 -22
  28. package/src/tools/pools/fetchPools.ts +0 -47
  29. package/src/tools/pools/index.ts +0 -240
  30. package/src/tools/social/index.ts +0 -64
  31. package/src/tools/trading/index.ts +0 -605
  32. package/src/tools/transfers/index.ts +0 -75
  33. package/src/tools/utils/clearCache.ts +0 -36
  34. package/src/tools/utils/createWallet.ts +0 -19
  35. package/src/tools/utils/explainSdkUsage.ts +0 -765
  36. package/src/tools/utils/getAddress.ts +0 -12
  37. package/src/tools/utils/getCacheInfo.ts +0 -14
  38. package/src/tools/utils/getConfig.ts +0 -11
  39. package/src/tools/utils/getEthereumAddress.ts +0 -12
  40. package/src/tools/utils/getUrlByTokenName.ts +0 -12
  41. package/src/tools/utils/index.ts +0 -25
  42. package/src/tools/utils/isTokenGraduated.ts +0 -16
  43. package/src/types/mcp.ts +0 -72
  44. package/src/utils/__tests__/validation.test.ts +0 -147
  45. package/src/utils/constraints.ts +0 -146
  46. package/src/utils/default-values.ts +0 -208
  47. package/src/utils/error-handler.ts +0 -69
  48. package/src/utils/error-templates.ts +0 -273
  49. package/src/utils/response-formatter.ts +0 -51
  50. package/src/utils/tool-factory.ts +0 -257
  51. package/src/utils/tool-registry.ts +0 -296
  52. package/src/utils/validation.ts +0 -336
  53. 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
- });