Skip to main content
Glama

Algorand MCP

by GoPlausible
index.ts1.26 kB
import { Tool, ErrorCode, McpError } from '@modelcontextprotocol/sdk/types.js'; import { walletTools, handleWalletTools } from './wallet.js'; import { marketTools, handleMarketTools } from './market.js'; import { systemTools, handleSystemTools } from './system.js'; // Export all Ultrade tools export const ultradeTools: Tool[] = [ ...walletTools, ...marketTools, ...systemTools ]; // Handle all Ultrade tools export async function handleUltradeTools(name: string, args: any): Promise<any> { try { const combinedArgs = { name, ...args }; // Wallet tools if (name.startsWith('api_ultrade_wallet_')) { return handleWalletTools(combinedArgs); } // Market tools if (name.startsWith('api_ultrade_market_')) { return handleMarketTools(combinedArgs); } // System tools if (name.startsWith('api_ultrade_system_')) { return handleSystemTools(combinedArgs); } throw new McpError( ErrorCode.MethodNotFound, `Unknown tool: ${name}` ); } catch (error) { if (error instanceof McpError) { throw error; } throw new McpError( ErrorCode.InternalError, `Failed to handle Ultrade tool: ${error instanceof Error ? error.message : String(error)}` ); } }

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/GoPlausible/algorand-mcp'

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