入门指南
在中设置以下env变量 .env.local 文件:
OPENAI_API_KEY=Fnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AZURE_RESOURCE_NAME=openai-xxxxxxxxxxxxxxxxxxxx
# This one is optional and defaults to http://localhost:9000/mcp
MCP_SERVER_URL=http://localhost:8000/mcp安装依赖项:
npm i然后,运行开发服务器:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev打开 http://localhost:3000 使用浏览器查看结果。
