typescript-mcp
Build MCP servers with TypeScript on Cloudflare Workers, preventing 20 documented production issues.
- Supports tools, resources, prompts, tasks, and three authentication patterns (API keys, OAuth, Zero Trust) with built-in Cloudflare service integrations (D1, KV, R2, Vectorize)
- Requires fresh
McpServerinstance per HTTP request andStreamableHTTPServerTransportfor production; SSE transport is deprecated - Prevents critical issues including server instance reuse breaking concurrent sessions, unclosed transport memory leaks, export syntax errors, CORS misconfigurations, and task validation failures
- Tasks enable long-running operations with polling; sampling with tools enables server-side agentic behavior using standard MCP primitives
TypeScript MCP on Cloudflare Workers
Last Updated: 2026-01-21 Versions: @modelcontextprotocol/sdk@1.25.3, hono@4.11.3, zod@4.3.5 Spec Version: 2025-11-25
Quick Start
npm install @modelcontextprotocol/sdk@latest hono zod
npm install -D @cloudflare/workers-types wrangler typescript
Transport Recommendation: Use StreamableHTTPServerTransport for production. SSE transport is deprecated and maintained for backwards compatibility only. Streamable HTTP provides better error recovery, bidirectional communication, and simplified deployment.
Basic MCP Server:
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Ktanstack-query
|
2.5Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9K