LiveStormMCP
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.
Viewing readonly version of main branch: v216View latest version
This project creates a Model Context Protocol (MCP) server that wraps the Livestorm API, exposing:
- GET endpoints as Resources
- POST, PUT, DELETE endpoints as Tools
- The server fetches and parses the Livestorm API's OpenAPI definition
- It dynamically creates MCP Resources and Tools based on the API endpoints
- When a client requests a Resource or Tool, the server proxies the request to the Livestorm API
- Authentication is handled by passing through the Authorization header
The Livestorm API requires authentication via an API token. This token should be passed to the MCP server in the Authorization header, which will then be forwarded to the Livestorm API.
See the Livestorm API documentation for more details on authentication.
When defining the MCP server in your LLM client applications use the following snippet:
{ "mcpServers": { "livestorm-api": { "type": "streamable-http", "url": "https://supagroova--7fab7ae4322911f080e9569c3dd06744.web.val.run/mcp", "note": "For Streamable HTTP connections, add this URL directly in Client" } } }
index.ts
: Main entry point with HTTP triggerlivestorm.ts
: Functions to fetch and parse the OpenAPI definitionmcp.ts
: MCP server setup and configuration