-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtest-local.js
More file actions
49 lines (39 loc) · 1.73 KB
/
Copy pathtest-local.js
File metadata and controls
49 lines (39 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Simple local test script for Meteora DLMM MCP Server
const fs = require('fs');
const path = require('path');
// Load the compiled server
const serverModule = require('./dist/index.js');
// Test configuration
const testConfig = {
rpcUrl: "https://api.mainnet-beta.solana.com",
walletPrivateKey: undefined, // No wallet for read-only testing
debug: true,
maxRetries: 3,
rpcTimeout: 30000
};
console.log('🚀 Starting Meteora DLMM MCP Server Test...\n');
try {
// Create server instance
const server = serverModule({ config: testConfig });
console.log('✅ Server created successfully!');
console.log('📊 Configuration:', JSON.stringify(testConfig, null, 2));
// Test server capabilities
console.log('\n🛠️ Available Tools:');
// The server should have tools registered
console.log('- get_pool_info: Get detailed pool information');
console.log('- get_user_positions: View all DLMM positions for a wallet');
console.log('- get_claimable_fees: Check claimable fees for positions');
console.log('- claim_fees: Claim accumulated fees (requires wallet)');
console.log('- get_popular_pools: Discover popular DLMM pools');
console.log('\n🎯 Server is ready for connections!');
console.log('\nNext steps:');
console.log('1. Use MCP Inspector to connect: npx @modelcontextprotocol/inspector');
console.log('2. Or connect from Claude using the server configuration');
console.log('3. Try commands like "Get pool info for DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"');
} catch (error) {
console.error('❌ Error creating server:', error.message);
console.error('\nDebug info:', error);
}
// Keep the process running
console.log('\n💡 Server is running... Press Ctrl+C to stop');
process.stdin.resume();