import { MCPClient } from 'mcp-use'
const client = new MCPClient({
mcpServers: {
// Your server definitions here
}
})
await client.createAllSessions()
const result = await session.getPrompt('plan_vacation', {
destination: 'Japan',
duration: '2 weeks',
budget: '$5000',
interests: ['culture', 'food', 'nature']
})
console.log(`Prompt description: ${result.description}`)
for (const message of result.messages) {
console.log(`Role: ${message.role}`)
console.log(`Content: ${message.content.text}`)
}
await client.closeAllSessions()