Skip to main content
Glama
by Ritesh-sudo
index.test.js1.2 kB
const test = require('ava') const { vanillaPuppeteer, addExtra } = require('../../test/util') const Plugin = require('.') const { argsToIgnore } = require('.') test('vanilla: uses args to ignore', async t => { const browser = await vanillaPuppeteer.launch({ headless: true }) const page = await browser.newPage() const client = typeof page._client === 'function' ? page._client() : page._client const { arguments: launchArgs } = await client.send( 'Browser.getBrowserCommandLine' ) const ok = argsToIgnore.every(arg => launchArgs.includes(arg)) if (!ok) { console.log({ argsToIgnore, launchArgs }) } t.is(ok, true) }) test('stealth: does not use args to ignore', async t => { const puppeteer = addExtra(vanillaPuppeteer).use(Plugin()) const browser = await puppeteer.launch({ headless: true }) const page = await browser.newPage() const client = typeof page._client === 'function' ? page._client() : page._client const { arguments: launchArgs } = await client.send( 'Browser.getBrowserCommandLine' ) const ok = argsToIgnore.every(arg => !launchArgs.includes(arg)) if (!ok) { console.log({ argsToIgnore, launchArgs }) } t.is(ok, true) })

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/Ritesh-sudo/MCPJobSearch'

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