Skip to main content
Glama

RAG Documentation MCP Server

by jumasheff
base-tool.ts615 B
import { ToolDefinition, McpToolResponse } from '../types.js'; export abstract class BaseTool { abstract get definition(): ToolDefinition; abstract execute(args: unknown): Promise<McpToolResponse>; protected formatResponse(data: unknown): McpToolResponse { return { content: [ { type: 'text', text: JSON.stringify(data, null, 2), }, ], }; } protected handleError(error: any): McpToolResponse { return { content: [ { type: 'text', text: `Error: ${error}`, }, ], isError: true, }; } }

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/jumasheff/mcp-ragdoc-fork'

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