Skip to main content
Glama
LarouTech

MCP Server TypeScript Boilerplate

by LarouTech
BaseTool.ts450 B
// src/tools/BaseTool.ts - Base class for tools import { Tool } from "@modelcontextprotocol/sdk/types.js"; export abstract class BaseTool { abstract readonly name: string; abstract readonly description: string; abstract readonly inputSchema: any; abstract execute(args: any): Promise<any>; getDefinition(): Tool { return { name: this.name, description: this.description, inputSchema: this.inputSchema, }; } }

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