Getting Started
Overview
Where the AI Agent and MCP Server live in the supastarter Next.js codebase.
supastarter splits the workspace into focused apps and packages. This keeps the public site, product app, API, and AI services separate and easy to navigate.
apps/saasis the authenticated product app, including the AI Agent chat UIapps/apiis the API process that owns the embedded agent runtimeapps/mcpis the standalone MCP Server for external clientspackages/agentcontains the agent runtime, tools, prompts, and skillspackages/skillscontains the shared Agent Skills used by both the agent and MCP
Both AI surfaces use the same shared application tools from packages/api/lib/tools. Those tools always run through your existing oRPC procedures, so the same validation and permissions apply.
Where to go next
- AI Agent setup to enable the in-app chat experience
- MCP Server setup to expose application tools to external MCP clients
- App functionality tools to connect the agent to your product