Run a Dev Server & MCP
Use a git repo and dev server to create a hot reload environment.
Dev servers allow you to create a realtime preview of changes to a website. Currently dev servers work best with NextJS sites.
To get started, you'll need to create a Freestyle git repo. It's recommended that you use our NextJS template as the source of the repo for the best performance.
The easiest way to create a dev server from this repo is to use our react components in NextJS.
You'll also need to create a server action to handle the request. This action will create a dev server for the repo if one isn't already running or return the status if one is already running.
You can clone the repo locally and try pushing to it. You should see the dev server update in realtime. Note this will only work if you made the repo public, otherwise, you'll need to create git credentials to access the repo. See the Git Documentation for more information.
For production use in App Builders, we suggest using isomorphic-git to manage git from serverless JavaScript environments.
Model Context Protocol (MCP)
MCP is a protocol for allowing AI agents to discover and use tools. Dev servers automatically expose a set of tools for interacting with the file system and other core operations such as installing npm modules, running commands, and testing code. You can get the url for this server in the dev server response.