Skip to main content
Glama
LarouTech

MCP Server TypeScript Boilerplate

by LarouTech
EchoTool.ts600 B
// src/tools/EchoTool.ts - Example tool import { BaseTool } from "./BaseTool"; export class EchoTool extends BaseTool { readonly name = "echo"; readonly description = "Echo back the input message"; readonly inputSchema = { type: "object", properties: { message: { type: "string", description: "Message to echo back", }, }, required: ["message"], }; async execute(args: { message: string }): Promise<any> { return { content: [ { type: "text", text: `Echo: ${args.message}`, }, ], }; } }

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/LarouTech/mcp-server-boilerplate'

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