in genai-function-calling/vercel-ai/mcp.js [89:95]
async function mcpClientMain(runAgent, tools) {
if (process.argv.includes(SERVER_ARG)) {
await mcpServerMain(tools);
} else {
await runAgentWithMCPClient(runAgent);
}
}