mcp-ts-template 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +3 -3
  2. package/dist/index.js +1812 -1519
  3. package/dist/worker.js +1475 -1200
  4. package/package.json +30 -28
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <h1>mcp-ts-template</h1>
3
3
  <p><b>The definitive, production-grade template for building powerful and scalable Model Context Protocol (MCP) servers with TypeScript, featuring built-in observability (OpenTelemetry), declarative tooling, robust error handling, and a modular, DI-driven architecture.</b></p>
4
4
 
5
- [![Version](https://img.shields.io/badge/Version-2.1.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![MCP Spec](https://img.shields.io/badge/MCP%20Spec-2025--06--18-8A2BE2.svg?style=flat-square)](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-06-18/changelog.mdx) [![Model Context Protocol](https://img.shields.io/badge/MCP%20SDK-^1.18.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Status](https://img.shields.io/badge/Status-Stable-brightgreen.svg?style=flat-square)](https://github.com/cyanheads/mcp-ts-template/issues) [![TypeScript](https://img.shields.io/badge/TypeScript-^5.9-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.2.21-blueviolet.svg?style=flat-square)](https://bun.sh/) [![Code Coverage](https://img.shields.io/badge/Coverage-96.14%25-brightgreen.svg?style=flat-square)](./coverage/lcov-report/)
5
+ [![Version](https://img.shields.io/badge/Version-2.1.2-blue.svg?style=flat-square)](./CHANGELOG.md) [![MCP Spec](https://img.shields.io/badge/MCP%20Spec-2025--06--18-8A2BE2.svg?style=flat-square)](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-06-18/changelog.mdx) [![Model Context Protocol](https://img.shields.io/badge/MCP%20SDK-^1.18.2-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Status](https://img.shields.io/badge/Status-Stable-brightgreen.svg?style=flat-square)](https://github.com/cyanheads/mcp-ts-template/issues) [![TypeScript](https://img.shields.io/badge/TypeScript-^5.9-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.2.21-blueviolet.svg?style=flat-square)](https://bun.sh/) [![Code Coverage](https://img.shields.io/badge/Coverage-88.52%25-brightgreen.svg?style=flat-square)](./coverage/lcov-report/)
6
6
 
7
7
  </div>
8
8
 
@@ -26,7 +26,7 @@ This template is packed with production-grade features designed for high-perform
26
26
  | **Type-Safe & Validated** | **Zod** is used everywhere for rigorous schema validation of configuration, tool inputs/outputs, and API boundaries, preventing invalid data at the source. |
27
27
  | **Abstracted Storage Layer** | A flexible, provider-based storage service (`IStorageProvider`) with ready-to-use backends for **In-Memory**, **Filesystem**, and **Supabase**. |
28
28
  | **Comprehensive Utilities** | A rich set of internal utilities for logging (`Pino`), rate-limiting, security sanitization, ID generation, cron scheduling, and network requests. |
29
- | **Integration-First Testing** | Pre-configured with **Vitest** and **`msw`** for writing meaningful integration tests that reflect real-world usage, ensuring reliability from end to end. |
29
+ | **Robust Testing Framework** | Pre-configured with **Vitest** and **`msw`** for writing meaningful integration and unit tests that reflect real-world usage, ensuring reliability from end to end. |
30
30
  | **Agent-Ready Design** | Includes detailed guidance in `AGENTS.md` and `.clinerules/` to direct developer LLM agents, ensuring they adhere to the project's architectural standards. |
31
31
 
32
32
  ---
@@ -199,7 +199,7 @@ The server is configured via environment variables, loaded and validated by `src
199
199
  | `MCP_AUTH_MODE` | Authentication mode: `none`, `jwt`, or `oauth`. | `none` |
200
200
  | `MCP_LOG_LEVEL` | Minimum log level: `debug`, `info`, `warning`, `error`, etc. | `debug` |
201
201
  | `LOGS_DIR` | Directory for log files. | `logs/` |
202
- | `STORAGE_PROVIDER_TYPE` | Storage backend: `in-memory`, `filesystem`, `supabase`. | `filesystem` |
202
+ | `STORAGE_PROVIDER_TYPE` | Storage backend: `in-memory`, `filesystem`, `supabase`. | `in-memory` |
203
203
  | `STORAGE_FILESYSTEM_PATH` | Path for the filesystem storage provider. | `./.storage` |
204
204
  | `OPENROUTER_API_KEY` | API key for the OpenRouter LLM service. | ` ` |
205
205
  | `OTEL_ENABLED` | Set to `true` to enable OpenTelemetry. | `false` |