Skip to main content
Glama
LarouTech

MCP Server TypeScript Boilerplate

by LarouTech
BaseResource.ts441 B
// src/resources/BaseResource.ts - Base class for resources import { Resource } from "@modelcontextprotocol/sdk/types.js"; export abstract class BaseResource { abstract readonly uri: string; abstract readonly name: string; abstract readonly description: string; abstract read(): Promise<any>; getDefinition(): Resource { return { uri: this.uri, name: this.name, description: this.description, }; } }

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