Skip to main content
Glama

Dingo MCP Server

by MigoXLab
index.ts1.68 kB
import { contextBridge, ipcRenderer } from 'electron'; // Custom APIs for renderer const api = { readDirectory: (dirPath: string): Promise<string[]> => ipcRenderer.invoke('read-directory', dirPath), selectDirectory: (): Promise<string | undefined> => ipcRenderer.invoke('select-directory'), readFile: (filePath: string): Promise<string> => ipcRenderer.invoke('read-file', filePath), readJsonFile: (filePath: string): Promise<any> => ipcRenderer.invoke('read-json-file', filePath), readDirectoryDingo: (dirPath: string): Promise<string[]> => ipcRenderer.invoke('read-directory-dingo', dirPath), readJsonlFiles: ( dirPath: string, primaryName: string, secondaryNameList: string[] ): Promise<any[]> => ipcRenderer.invoke( 'read-jsonl-files', dirPath, primaryName, secondaryNameList ), getInputPath: (): Promise<string | null> => ipcRenderer.invoke('get-input-path'), openExternal: (url: string) => ipcRenderer.invoke('open-external', url), }; // Use `contextBridge` APIs to expose Electron APIs to // renderer only if context isolation is enabled, otherwise // just add to the DOM global. console.log('process.contextIsolated', process.contextIsolated); if (process.contextIsolated) { try { contextBridge.exposeInMainWorld('electron', api); contextBridge.exposeInMainWorld('electronAPI', api); } catch (error) { console.error(error); } } else { // @ts-ignore (define in dts) window.electron = api; // @ts-ignore (define in dts) window.electronAPI = api; }

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/MigoXLab/dingo'

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