Claude Code
Use the Val Town plugin to read, edit, run, and deploy vals from Claude Code. For Claude web/desktop/Cowork, use the Claude guide.
Install the plugin
Inside a Claude Code session, paste:
/plugin install valtown@claude-plugins-officialAlternatively, run this in your terminal, outside Claude Code:
claude plugin install valtown@claude-plugins-officialChoose either method. Both install the plugin from Claude Code’s official marketplace.
Connect your Val Town account
- In Claude Code, run
/reload-pluginsto load the installed plugin, or restart Claude Code. - Run
/mcpand select the Val Town server. - Follow the sign-in link, sign in to Val Town, and approve access.
Check the connection
Start a new chat or session after installation and send:
Use Val Town to list my vals. Don’t create or change anything.A response from Val Town listing your vals, even an empty list, confirms the connection. If the agent only explains how to list vals, ask it to use the Val Town tools.
Troubleshooting
- The slash command fails in your terminal: slash commands belong inside
Claude Code. Use the
claude plugin installcommand in your terminal. - The plugin is installed but no tools appear: run
/reload-pluginsor restart, then check/mcp. - Tools appear but requests fail: select the server in
/mcpand complete authentication. - The marketplace or plugin is unavailable: check your Claude Code version and organization’s plugin policy. See Claude Code’s plugin documentation.
Alternative: MCP only
The plugin includes MCP and platform skills. If you only want the MCP connection, run this in your terminal:
claude mcp add --transport http --scope user val-town https://api.val.town/v3/mcpThe user scope makes the connection available across your local projects. Start
Claude Code, run /mcp, select val-town, and sign in. Skip this if you
already installed the plugin, to avoid duplicate connections.
Alternative: sync local files with the Val Town CLI
Caution We recommend the plugin, which includes the MCP server and skills, over the CLI.
- Install Claude Code
- Install the Val Town CLI
deno install -grAf jsr:@valtown/vt- Copy-paste our
system prompt
into
CLAUDE.mdat the root of your local directory for vals vt create,vt remix, orvt clonea val*cdinto your val's directory- (Optional)
vt checkout -b <branch>to isolate changes vt watchto sync with Val Townclaudeto start your Claude Coding session
* Running vt create|remix|clone will ask you to add editor files including
AGENTS.md, which Claude doesn't support as of this writing (use CLAUDE.md
instead).
As an example, watch this 4-minute video creating a customer support val.
Last updated