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
base.service.ts•727 B
/**
* Base service class for XHS MCP Server services
*/
import { Config } from './types.js';
import { BrowserManager } from '../browser/browser.manager.js';
/**
* 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;
}
}