Skip to main content
Glama
newerton

Investidor10 MCP Server

Investidor10ToolsController.ts944 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { Investidor10Service } from '../../application/services/Investidor10Service.js'; export class Investidor10ToolsController { constructor( private server: McpServer, private service: Investidor10Service, ) { this.registerTools(); } private registerTools() { this.registerGetStockToolHandler(); } private registerGetStockToolHandler(): void { this.server.tool( 'get-acoes', 'Buscar informações básicas de ações', { stocks: z.array(z.string()).describe('Array of stock symbols'), }, async ({ stocks }) => { const infos = await this.service.getStocksByHTML(stocks); return { content: [ { type: 'text', text: JSON.stringify(infos, null, 2), }, ], }; }, ); } }

Implementation Reference

Latest Blog Posts

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/newerton/mcp-investidor10'

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