• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
charmaine

charmaine

mcp-starter

Remix of mattrossman/mcp-starter
Public
Like
mcp-starter
Home
Code
2
README.md
H
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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
/
Code
/
Search
main.ts
https://charmaine--fae547db394248dfb4c2cdd2abf5bbd1.web.val.run
README.md

mcp-starter

Remix this and open main.ts to edit the MCP server and find its HTTP trigger endpoint.

Client Usage

Add to the MCP configuration file for Cursor or your client of choice:

{ "mcpServers": { "my-val": { "command": "npx", "args": [ "mcp-remote", "<YOUR-VAL-ENDPOINT>/mcp" ] } } }

Since the adapter only works with streamable HTTP on Val Town, you'll probably need mcp-remote to connect to it from clients that don't yet support this newer transport.

What is the adapter for?

The MCP TypeScript SDK uses Node-specific APIs that don't play nicely with Deno or edge functions:

  • https://github.com/modelcontextprotocol/typescript-sdk/issues/260
  • https://github.com/modelcontextprotocol/typescript-sdk/pull/349
  • https://github.com/modelcontextprotocol/typescript-sdk/issues/385

Vercel's MCP adapter translates the standard web Request that Val Town gives us into something the SDK can understand, and reduces overall boilerplate.

HTTP
  • main.ts
    charmaine--fa…d1.web.val.run
Code
README.md
H
main.ts
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.