We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/greatSumini/puppeteer-swarm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { tabPool } from "./tab-pool.js";
import { TabPoolConfig } from "../types/tab.js";
import { BrowserLaunchConfig } from "../types/browser-state.js";
let cliConfig: BrowserLaunchConfig | null = null;
export function setCliConfig(config: BrowserLaunchConfig): void {
cliConfig = config;
}
export function getCliConfig(): BrowserLaunchConfig {
if (!cliConfig) {
throw new Error('CLI configuration not set');
}
return cliConfig;
}
export async function initializeTabPool(config: Partial<TabPoolConfig>): Promise<void> {
await tabPool.initialize(config);
}
export function getTabPool() {
return tabPool;
}
export async function closeBrowser(): Promise<void> {
await tabPool.close();
}