Public
Like
valtown-mcp-client
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A minimal MCP client for Val Town
- Get your API token from
val.town/settings/api - Add it as an environment variable:
VAL_TOWN
Note: Enable write permissions for Vals if you want to create or edit files.
import valTownMCP from "https://esm.town/v/kamalnrf/valtown-mcp/valtown.ts";
const client = await valTownMCP();
// List available tools
const tools = await client.listTools();
// Call a tool list_val
const vals = await client.callTool("list_vals", {
"limit": 32,
"offset": 0,
"sortBy": "updated",
"sortOrder": "desc",
}),
);
await client.close();