UNPKG

purchase-mcp-server

Version:

Purchase and budget management server handling requisitions, purchase orders, expenses, budgets, and vendor management with ERP access for data extraction

31 lines 937 B
import { prompts } from './prompts.js'; // Export prompt list for MCP (metadata only - no content exposed) export const promptList = prompts.map(prompt => ({ name: prompt.name, description: prompt.description, arguments: prompt.arguments.map(arg => ({ name: arg.name, description: arg.description, required: arg.required || false })) })); // Get specific prompt content export async function getPrompt(name, args) { const prompt = prompts.find(p => p.name === name); if (!prompt) { throw new Error(`Unknown prompt: ${name}. Available prompts: ${prompts.map(p => p.name).join(', ')}`); } let content = prompt.content; return { messages: [ { role: "user", content: { type: "text", text: content } } ] }; } //# sourceMappingURL=index.js.map