A Nitro v3 demo app for defining a ViteHub Agent that uses:
- Nuxt's MCP server as executable MCP tools.
- Nuxt's public
llms.txtas a ViteHub Workspace Source. - Telegram chat and voice messages.
- Daily agent message rate limiting.
- Usage telemetry.
- Durable workflow execution by default.
The agent definition lives in server/agents/nuxt/agent.ts, with colocated prompt instructions in server/agents/nuxt/instructions.md.
pnpm install
cp .env.example .env.local
pnpm devRun the app in one terminal:
pnpm devThen run a local Nuxt Agent chat with the dev context:
pnpm nuxt:dev --prompt "What is useAsyncData?"Telegram is configured outside the app. The bot webhook should point at the generated ViteHub Chat Webhook Route:
POST /api/_vitehub/agents/nuxt/webhooks/telegram