- Install the Val Town CLI and log in
- Open Cursor
Creating and editing vals
Section titled “Creating and editing vals”The most reliable way to write vals in Cursor is with vt watch, which will automatically sync your changes to Val Town as you save files.
vt create,vt remix, orvt clonea val. Select “Yes” to add editor files*cdinto your val’s directoryvt checkout -b <branch>to isolate changes (optional)vt watchto sync with Val Town
* Running vt create|remix|clone will prompt you to add editor files, including AGENTS.md with our system prompt, which Cursor should recognize.
- Go to Cursor Settings > Tools & Models > New MCP server.
- Create an API token in the Val Town console.
- Add the following to
mpc.json, replaceAPI_TOKEN_HERE:{"mcpServers": {"val-town": {"url": "https://api.val.town/v3/mcp","headers": {"Authorization": "Bearer API_TOKEN_HERE"}}}}