Core runtime contract for education apps. Follow this page and stay Hub-implementation independent.
URL contract
Edu opens your app as:
Production
https://edu.daven.ai/api/v1/mcp-proxy
Local
http://localhost:3001/api/v1/mcp-proxy
Never put MCP / Daven API keys in the browser or frontend env. Only the Hub server holds keys.
Send the session on every request. Prefer both:
Some GETs also accept ?session=. Prefer headers.
iframe sandbox
Hub iframe is roughly:
Reference
Sihwa Studio:
src/lib/daven-config.ts — parse session / proxy
src/lib/daven.ts — inject headers + fetch
→ Reference app