Skip to main content
Glama
automation.ts1.32 kB
/** * kivv Daily Automation Worker * Cron-triggered worker for paper discovery and summarization */ export default { async scheduled(event: ScheduledEvent, env: any, ctx: ExecutionContext): Promise<void> { console.log('kivv automation triggered at', new Date(event.scheduledTime)); // Daily automation logic will be implemented here // 1. Fetch new papers from arXiv // 2. Generate summaries using Claude // 3. Store in D1 database // 4. Update KV cache }, async fetch(request: Request, env: any): Promise<Response> { const url = new URL(request.url); // Health check if (url.pathname === '/health') { return new Response(JSON.stringify({ status: 'ok' }), { headers: { 'Content-Type': 'application/json' }, }); } // Manual trigger endpoint (for testing) if (url.pathname === '/run' && request.method === 'POST') { // Verify admin API key const authHeader = request.headers.get('Authorization'); // TODO: Implement authentication return new Response(JSON.stringify({ message: 'Manual run triggered' }), { headers: { 'Content-Type': 'application/json' }, }); } return new Response('kivv Automation Worker', { status: 200, headers: { 'Content-Type': 'text/plain' }, }); }, };

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/jeffaf/kivv'

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