Skip to main content
Glama
audit.ts527 B
import { getDb } from './storage/db.js'; export async function logAudit(tool: string, args: any, result: any, error?: any) { try { const db = await getDb(); await db.run( `INSERT INTO audit_log (tool, args, result, error) VALUES (?, ?, ?, ?)`, tool, JSON.stringify(args), result ? JSON.stringify(result) : null, error ? JSON.stringify(error) : null ); } catch (err) { console.error('Failed to write audit log:', err); } }

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/Mnehmos/mnehmos.ooda.mcp'

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