Skip to content

jmorrell-cloudflare/worker-do-websockets-sse-example

Repository files navigation

WebSockets MCP Math Demo

A reference implementation demonstrating the Model Context Protocol (MCP) using Cloudflare Workers and Durable Objects.

We create an MCP server in a Durable object using DurableMCP and expose a web frontend that can connect call those endpoints.

Overview

This repository provides a reference implementation of MCP over WebSockets. It showcases:

  • Complete MCP client-server architecture
  • Tool discovery and invocation
  • Deployment using Cloudflare Workers

Development

Install dependencies:

pnpm install

Start the development server with:

pnpm run dev

Your application will be available at http://localhost:5173.

Deployment

npx deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published