Skip to main content
Glama
logs.ts919 B
import { alovaInstance } from './alova/client' import type { LogEntry, LogHistoryParams, LogLevelsResponse, PaginatedResponse } from './types' /** * Get paginated log history */ export const getLogHistory = (params: LogHistoryParams) => { return alovaInstance.Get<PaginatedResponse<LogEntry>>('/api/logs/history', { name: 'getLogHistory', params, }) } /** * Get available log levels */ export const getLogLevels = () => { return alovaInstance.Get<LogLevelsResponse>('/api/logs/levels', { name: 'getLogLevels', }) } /** * Create SSE method for real-time logs using Alova */ export const getRealtimeLogs = (level?: string, search?: string) => { const params: Record<string, string> = {} if (level) { params.level = level } if (search) { params.search = search } return alovaInstance.Get<LogEntry>('/api/logs/realtime', { name: 'getRealtimeLogs', params, }) }

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/itcook/graphiti-mcp-pro'

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