Skip to main content
Glama

TreePod Financial MCP Agent

by janetsep
test-server.js1.8 kB
#!/usr/bin/env node import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; console.error('🔍 TreePod Test Server - Iniciando...'); const server = new Server( { name: 'treepod-test', version: '1.0.0', }, { capabilities: { tools: {}, }, } ); // Herramienta de prueba simple server.setRequestHandler('tools/list', async () => { console.error('📋 Listando herramientas de prueba...'); return { tools: [ { name: 'test_connection', description: 'Prueba la conexión con el servidor MCP', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Mensaje de prueba' } } } } ] }; }); server.setRequestHandler('tools/call', async (request) => { console.error('🔧 Ejecutando herramienta:', request.params.name); if (request.params.name === 'test_connection') { return { content: [{ type: 'text', text: `✅ CONEXIÓN EXITOSA\n\nServidor TreePod MCP funcionando correctamente.\nMensaje recibido: ${request.params.arguments?.message || 'Sin mensaje'}\n\nEl servidor está listo para usar las herramientas financieras.` }] }; } return { content: [{ type: 'text', text: '❌ Herramienta no encontrada' }] }; }); async function main() { const transport = new StdioServerTransport(); console.error('🚀 Conectando transporte...'); await server.connect(transport); console.error('✅ Servidor de prueba MCP iniciado correctamente'); } main().catch((error) => { console.error('❌ Error fatal:', error); process.exit(1); });

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/janetsep/treepod-financial-mcp'

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