Skip to main content
Glama
__init__.py2.24 kB
class _DummyEvent: def __await__(self): async def _noop(): return None return _noop().__await__() async def event_result(self, *args, **kwargs): # pragma: no cover - stub method return None class _DummyEventBus: def dispatch(self, event): # noqa: D401 - simple stub return _DummyEvent() class BrowserPage: def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) self.event_bus = _DummyEventBus() async def close(self) -> None: # pragma: no cover - stub method return None class Browser: """Lightweight stub mirroring the public Browser API used in tests.""" def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) self._pages: list[BrowserPage] = [] self._started = False async def start(self): # pragma: no cover - stub method self._started = True return self async def stop(self): # pragma: no cover - stub method self._started = False return None async def new_page(self, **kwargs): page = BrowserPage(**kwargs) self._pages.append(page) return page async def close(self): # pragma: no cover - compatibility alias return await self.stop() class BrowserSession(Browser): # pragma: no cover - stub class async def kill(self): # pragma: no cover - stub method return await self.stop() class BrowserProfile: # pragma: no cover - stub class def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) self.event_bus = _DummyEventBus() async def kill(self) -> None: # pragma: no cover - stub method return None class BrowserProfile: # pragma: no cover - stub class def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) class ProxySettings: # pragma: no cover - stub class def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) # Alias maintained for compatibility with production package Browser = BrowserSession

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/JovaniPink/mcp-browser-use'

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