import type { Server } from '@modelcontextprotocol/sdk/server/index.js'
import type { ApiClient } from '../api-client.js'
import type { McpToolResponse } from '../types.js'
export abstract class BaseHandler {
protected server: Server
protected apiClient: ApiClient
constructor(server: Server, apiClient: ApiClient) {
this.server = server
this.apiClient = apiClient
}
protected abstract handle(args: any): Promise<McpToolResponse>
}
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/sanderkooger/mcp-server-ragdocs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server