# Required for chat/agent (OpenAI) OPENAI_API_KEY=your-openai-api-key-here # Chat model for /api/mastra-agent. Default if unset: gpt-5.4-2026-03-05 # OPENAI_MODEL=gpt-5.4-2026-03-05 # Verbose logs for POST /api/mastra-agent (per-request MCP load, etc.) — default off # MASTRA_AGENT_DEBUG=1 # E2B sandbox (optional if you only use pre-connected MCP servers) # Get key: https://e2b.dev/dashboard E2B_API_KEY=e2b_your-key-here # Repo cloned when E2B_TEMPLATE is not set (default: mcp-use-server-template) E2B_REPO_URL=https://github.com/CopilotKit/CopilotKit # Pre-built template ID for faster cold start (~5s). Set after running apps/mcp-use-server build.dev.ts E2B_TEMPLATE= # Optional: default MCP servers when no x-mcp-servers header (API fallback) # JSON array, e.g. [{"type":"http","url":"https://your-mcp.example.com/mcp","serverId":"my-mcp"}] # If unset: built-in default is Excalidraw (https://mcp.excalidraw.com) # DEFAULT_MCP_SERVERS= # Optional: initial sidebar MCP list in the UI (client; must be NEXT_PUBLIC_) # JSON array, e.g. [{"endpoint":"https://your-mcp.example.com/mcp","serverId":"my-mcp"}] # Set to [] for production if you have no hosted MCP; users can add URLs in the UI. # If unset: built-in default is Excalidraw (https://mcp.excalidraw.com, serverId: excalidraw) # NEXT_PUBLIC_DEFAULT_MCP_SERVERS= # ----------------------------------------------------------------------------- # Header CTAs (all optional — sensible CopilotKit / GitHub defaults if unset) # ----------------------------------------------------------------------------- # Primary pill + logo link target (documentation) # NEXT_PUBLIC_HEADER_DOCS_URL=https://docs.copilotkit.ai/ # Primary pill label # NEXT_PUBLIC_HEADER_PRIMARY_CTA_LABEL=CopilotKit docs # Second pill URL (e.g. your repo). Falls back to NEXT_PUBLIC_GITHUB_REPO_URL if unset. # Code default without env: https://github.com/CopilotKit/CopilotKit # NEXT_PUBLIC_HEADER_SECONDARY_CTA_URL=https://github.com/your-org/your-repo # Second pill label # NEXT_PUBLIC_HEADER_SECONDARY_CTA_LABEL=GitHub # Legacy alias for secondary URL only (still supported) # NEXT_PUBLIC_GITHUB_REPO_URL=https://github.com/your-org/your-repo # ----------------------------------------------------------------------------- # Chat starter / example prompts (CopilotKit suggestion chips) # JSON array. "title" = short chip label (visible). "message" = full text sent when clicked (not shown on chip). # If unset: four built-in prompts (tic tac toe, tip calculator, dice roller, Excalidraw test). Override with JSON below if you want different chips. # NEXT_PUBLIC_CHAT_STARTER_PROMPTS=[{"title":"Tic tac toe","message":"Create a tic tac toe game"},{"title":"Tip calculator","message":"Create a single-widget tip calculator..."},{"title":"Dice roller","message":"Create a dice roller widget..."}]