• Townie
    AI
  • Blog
  • Docs
  • Pricing
Log inSign up
dinavinter

dinavinter

mcp

Unlisted
Like
mcp
Home
Code
4
README.md
H
handler.tsx
mcp-server.ts
H
mcp.ts
Branches
1
Pull requests
Remixes
History
Environment variables
18
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/17/2025
Viewing readonly version of main branch: v31
View latest version
README.md

MCP Server Manager

This is an HTTP handler that serves as an MCP (Model Control Protocol) server with tools to create and manage other MCP server vals.

Features

  • Create new MCP server vals using a template
  • Update existing MCP server vals
  • Get the MCP server template code

Tools

1. create_mcp_val

Creates a new MCP server val with the provided name and description.

Parameters:

  • name: Name of the val to create
  • description: Description of the val

2. update_mcp_val

Updates an existing MCP server val with new code.

Parameters:

  • id: ID of the val to update
  • code: New code for the val

3. get_mcp_template

Returns the MCP server template code.

Setup Requirements

This val requires the following environment variables:

  • VAL_TOWN_API_KEY: Your Val Town API key for creating and updating vals
  • REDIS_URL: Redis URL for the MCP server (used by @vercel/mcp-adapter)

Usage

This val is designed to be used as an MCP server endpoint that can be connected to by AI assistants that support the MCP protocol. The assistant can then use the provided tools to create and manage MCP server vals.

Template

The template used for new MCP server vals includes a basic "echo" tool that demonstrates the MCP handler functionality.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.