Skip to main content
Glama
index.ts631 B
import { electronAPI } from "@electron-toolkit/preload"; import { contextBridge } from "electron"; // Custom APIs for renderer const api = {}; // Use `contextBridge` APIs to expose Electron APIs to // renderer only if context isolation is enabled, otherwise // just add to the DOM global. if (process.contextIsolated) { try { contextBridge.exposeInMainWorld("electron", electronAPI); contextBridge.exposeInMainWorld("api", api); } catch (error) { console.error(error); } } else { // @ts-expect-error (define in dts) window.electron = electronAPI; // @ts-expect-error (define in dts) window.api = api; }

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/thamaji/yak-mcp'

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