Skip to main content
Glama

MCP Trader Server

by Af7007
test-json-fix.js1.34 kB
// Script para testar todas as ferramentas MCP com dados críticos import fetch from 'node-fetch'; const MCP_URL = 'http://localhost:3000/tools/call'; const tests = [ { tool: 'get_market_data', parameters: { symbol: 'BTCUSDc' } }, { tool: 'get_mlp_signal', parameters: { symbol: 'BTCUSDc' } }, { tool: 'get_trade_history', parameters: { limit: 3 } }, { tool: 'get_bot_status', parameters: {} } ]; async function runTests() { console.log('🧪 Testando MCP Trader Server...\n'); for (const test of tests) { console.log(`📋 Testando ferramenta: ${test.tool}`); console.log(`📝 Parâmetros:`, test.parameters); try { const response = await fetch(MCP_URL, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(test) }); const result = await response.json(); console.log('✅ Resultado:'); console.log(result.content ? result.content[0].text : JSON.stringify(result, null, 2)); } catch (error) { console.log('❌ Erro:', error.message); } console.log('─'.repeat(60)); } } runTests();

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Af7007/mcp-trader'

If you have feedback or need assistance with the MCP directory API, please join our Discord server