Skip to main content
Glama
base.service.ts726 B
/** * Base service class for XHS MCP Server services */ import { Config } from './types'; import { BrowserManager } from '../core/browser/browser.manager'; /** * Base service class that provides common functionality for all services */ export abstract class BaseService { protected readonly config: Config; protected readonly browserManager: BrowserManager; constructor(config: Config) { this.config = config; this.browserManager = new BrowserManager(config); } /** * Get the browser manager instance */ protected getBrowserManager(): BrowserManager { return this.browserManager; } /** * Get the configuration */ protected getConfig(): Config { return this.config; } }

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/Algovate/xhs-mcp'

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