import { server } from "../McpServer.js"; import { accounts, loadClassificationPrompt, loadActionPrompt, } from "../loaders/prompt-config-loaders.js"; // --------------------------------------------------------------------------- // Prompt: Classify Emails (Phase 1) // --------------------------------------------------------------------------- server.registerPrompt( "classify-emails", { description: "Phase 1: Organize, prioritize, and summarize incoming recruiter emails.", }, () => { const phase1 = loadClassificationPrompt(); return { messages: [ { role: "user" as const, content: { type: "text" as const, text: `ACCOUNT: Use account = "work" for ALL tool calls in this session.\n\n` + (phase1 || "Review my new emails and classify them by job application category.") }, }, ], }; } ); // --------------------------------------------------------------------------- // Prompt: Take Action on Emails (Phase 2) // --------------------------------------------------------------------------- server.registerPrompt( "take-action-on-emails", { description: "Phase 2: Log Category B recruiters to spreadsheet and create calendar events.", }, () => { const phase2 = loadActionPrompt(); return { messages: [ { role: "user" as const, content: { type: "text" as const, text: `ACCOUNT: Use account = "work" for ALL tool calls in this session.\n\n` + (phase2 || "Process remaining action items for flagged recruiters.") }, }, ], }; } );