Skip to main content

Petstore MCP Server (TypeScript)

A template for creating a Model-Context-Protocol (MCP) Server as a sandboxed WebAssembly component, using TypeScript.

Deploy with Helm

helm install hono-swagger-ui --version 0.1.2 oci://ghcr.io/cosmonic-labs/charts/http-trigger -f https://raw.githubusercontent.com/cosmonic-labs/control-demos/refs/heads/main/petstore-mcp/values.http-trigger.yaml

Repository: cosmonic-labs/mcp-server-template-ts
Languages: TypeScript
Interfaces: wasi/http

Running on Kubernetes

You will need a local Kubernetes environment with Cosmonic Control installed according to the Get Started guide.

The MCP server will serve at http://petstore-mcp.localhost.cosmonic.sh/v1/mcp

If you'd like to debug your MCP server, you can start the official MCP model inspector via the following command:

npx @modelcontextprotocol/inspector

Configure the MCP model inspector's connection:

  • Transport Type: Streamable HTTP
  • URL: http://petstore-mcp.localhost.cosmonic.sh/v1/mcp
  • Connection Type: Via Proxy

Development

See development guide in Sandbox MCP.

Learn More