Skip to main content
Glama
pansin
by pansin
cli.ts882 B
#!/usr/bin/env node /** * @license * Copyright 2023 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ import {CLI, Browser} from '@puppeteer/browsers'; import {PUPPETEER_REVISIONS} from 'puppeteer-core/internal/revisions.js'; import puppeteer from '../puppeteer.js'; // TODO: deprecate downloadPath in favour of cacheDirectory. const cacheDir = puppeteer.configuration.downloadPath ?? puppeteer.configuration.cacheDirectory!; void new CLI({ cachePath: cacheDir, scriptName: 'puppeteer', prefixCommand: { cmd: 'browsers', description: 'Manage browsers of this Puppeteer installation', }, allowCachePathOverride: false, pinnedBrowsers: { [Browser.CHROME]: PUPPETEER_REVISIONS.chrome, [Browser.FIREFOX]: PUPPETEER_REVISIONS.firefox, [Browser.CHROMEHEADLESSSHELL]: PUPPETEER_REVISIONS['chrome-headless-shell'], }, }).run(process.argv);

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/pansin/browserMCP'

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