Val Town

town.val由 val.town 发布官方发布者v1.0.0更新于 Oct 24, 2026

Deploy serverless TypeScript on Val Town: HTTP vals, cron, SQLite, email, OAuth.

已验证Streamable HTTP可网页运行云端与基础设施开发者工具

概览

AI 生成的概览

Val Town 托管的 MCP 服务器,让助手在 Val Town 上构建和部署无服务器 TypeScript,包括 HTTP val、定时任务、SQLite、邮件和 OAuth。

可以做什么
  • 在 Val Town 上部署和管理无服务器 TypeScript,包括 HTTP val 与定时任务
  • 使用 Val Town 的 SQLite 存储、发送邮件和处理 OAuth 流程
  • 借助随附的平台技能了解 HTTP val、定时任务、SQLite、邮件、OAuth、前端和 API 集成
  • 通过托管的远程端点连接,并在浏览器中完成 OAuth 登录
适用场景
适合希望让 AI 编程助手直接构建、部署或维护 Val Town 项目(小型 TypeScript HTTP 端点、定时任务或集成)的场景。对已经在使用 Val Town 的 Claude Code、Codex 和 Cursor 用户尤其合适。
运行要求
需要 Val Town 托管的远程 MCP 端点,未声明本地包或环境变量。必须使用 OAuth 认证,首次调用工具时助手会在浏览器中完成 OAuth 流程。README 还介绍了安装插件的方式,为 Claude Code、Codex 或 Cursor 添加平台技能。
安装前请注意
安装后助手会获得经 OAuth 授权的 Val Town 账户连接,可在该账户下代为操作。服务器涉及部署、定时任务、SQLite、邮件和 OAuth,因此可能出现创建、修改或发送数据的操作,使用前应确认助手的行为。README 的安装步骤会向编程助手添加第三方插件市场。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Val Town,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/town.val%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "val-town": {
      "type": "http",
      "url": "https://api.val.town/v3/mcp"
    }
  }
}

README

Agent plugins for Val Town

Installs the Val Town MCP server and Skills for Claude Code, Codex, and Cursor.

Skills are markdown files with platform guidance for building on Val Town. Used by Val Town's own tools (Townie, the MCP server) and by AI coding agents. Skills include HTTP vals, crons, SQLite, email, OAuth, frontend, and API integrations.

Install

Installing the plugin makes platform skills available to your agent and registers the hosted Val Town MCP server (https://api.val.town/v3/mcp). On first use of an MCP tool, the agent runs the OAuth flow in your browser.

  1. Claude Code
  2. Codex
  3. Cursor

Claude Code

Install the Val Town plugin by running:

claude plugin install valtown@claude-plugins-official

Codex

codex CLI

First, run:

codex plugin marketplace add val-town/plugins

Then fire up codex and run:

/plugins

Search for Val Town, hit install, and it'll take you through the OAuth path.

Codex desktop app
  1. Click "Plugins" in the sidebar
  2. In the dropdown that says "Built by OpenAI" click "Add more +"
  3. Copy-paste https://github.com/val-town/plugins and select "Add marketplace"

Cursor

In Cursor, run:

/add-plugin valtown

Or in Cursor Settings, copy-paste https://github.com/val-town/plugins in the search box and select "Add to Cursor."

Contributing

Authoring skills

Skills live in plugin/skills/<name>/SKILL.md with YAML frontmatter:

markdown
---name: http-endpointsdescription: Use when building an HTTP val — a web endpoint, API route, webhook...triggers: [http, endpoint, webhook, api, request, response]---
# HTTP Endpoints
...guide body...
  • name (required) — must match the directory name; lowercase, hyphens, ≤64 chars.
  • description (required) — written as "Use when…"; this is how Claude decides to load the skill. ≤1024 chars.
  • triggers (optional) — keyword hints that boost searchSkills ranking; ignored by Claude Code's native loader.

Keep content audience-neutral: only platform knowledge true for every consumer. No product-flow or chat-only advice.

Then build:

npm installnpm run build   # generate src/generated/skills.ts, then tscnpm test        # build + smoke tests

npm run generate validates every skill against both our schema and Claude Code's frontmatter constraints — a skill that wouldn't load in Claude Code fails the build.

Relationship to the Val Town monorepo

This package is the source of truth for skill content. The Val Town app and MCP server consume it as a dependency rather than holding their own copy. See docs/SKILLS_PLUGIN.md in the main repo for the full design.

Versioning

This repository uses Changesets for publishing. See their documentation for more information.

  • For each change that should trigger a new version, you should run npx @changesets/cli and fill out the interactive prompts to describe the changes. This will generate a new changeset in the .changesets directory.
  • Each change in that directory will prompt the release.yml GitHub action to create a new release PR.
  • Merging a release PR will automatically publish a new version of this module.

Configuration

Claude Code

The official Claude plugin marketplace pulls from .plugins/marketplace.json.

Codex

Codex reads the native marketplace at .agents/plugins/marketplace.json (and falls back to the Claude .claude-plugin/marketplace.json for compatibility).

Cursor

Cursor reads .cursor-plugin/marketplace.json and the per-plugin plugin/.cursor-plugin/plugin.json.

来源:README.md,提交 555ff74

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分