mcp-ts-template 2.3.9 → 2.4.0
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.
- package/README.md +7 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-06-18/changelog.mdx) [](https://modelcontextprotocol.io/) [](./LICENSE) [](https://github.com/cyanheads/mcp-ts-template/issues) [](https://www.typescriptlang.org/) [](https://bun.sh/) [](./coverage/lcov-report/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- **Elicitation Support**: Tools can interactively prompt the user for missing parameters during execution, streamlining user workflows.
|
|
20
20
|
- **Robust Error Handling**: A unified `McpError` system ensures consistent, structured error responses across the server.
|
|
21
21
|
- **Pluggable Authentication**: Secure your server with zero-fuss support for `none`, `jwt`, or `oauth` modes.
|
|
22
|
-
- **Abstracted Storage**: Swap storage backends (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2`) without changing business logic.
|
|
22
|
+
- **Abstracted Storage**: Swap storage backends (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2`) without changing business logic. Features secure opaque cursor pagination, parallel batch operations, and comprehensive validation.
|
|
23
23
|
- **Full-Stack Observability**: Get deep insights with structured logging (Pino) and optional, auto-instrumented OpenTelemetry for traces and metrics.
|
|
24
24
|
- **Dependency Injection**: Built with `tsyringe` for a clean, decoupled, and testable architecture.
|
|
25
25
|
- **Service Integrations**: Pluggable services for external APIs, including LLM providers (OpenRouter) and text-to-speech (ElevenLabs).
|
|
@@ -130,6 +130,11 @@ All configuration is centralized and validated at startup in `src/config/index.t
|
|
|
130
130
|
- **Service**: A DI-managed `StorageService` provides a consistent API for persistence. **Never access `fs` or other storage SDKs directly from tool logic.**
|
|
131
131
|
- **Providers**: The default is `in-memory`. Node-only providers include `filesystem`. Edge-compatible providers include `supabase`, `cloudflare-kv`, and `cloudflare-r2`.
|
|
132
132
|
- **Multi-Tenancy**: The `StorageService` requires `context.tenantId`. This is automatically propagated from the `tid` claim in a JWT when auth is enabled.
|
|
133
|
+
- **Advanced Features**:
|
|
134
|
+
- **Secure Pagination**: Opaque cursors with tenant ID binding prevent cross-tenant attacks
|
|
135
|
+
- **Batch Operations**: Parallel execution for `getMany()`, `setMany()`, `deleteMany()`
|
|
136
|
+
- **TTL Support**: Time-to-live with proper expiration handling across all providers
|
|
137
|
+
- **Comprehensive Validation**: Centralized input validation for tenant IDs, keys, and options
|
|
133
138
|
|
|
134
139
|
### Observability
|
|
135
140
|
|
package/dist/index.js
CHANGED
|
@@ -117141,7 +117141,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
117141
117141
|
// package.json
|
|
117142
117142
|
var package_default = {
|
|
117143
117143
|
name: "mcp-ts-template",
|
|
117144
|
-
version: "2.3.
|
|
117144
|
+
version: "2.3.9",
|
|
117145
117145
|
mcpName: "io.github.cyanheads/mcp-ts-template",
|
|
117146
117146
|
description: "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.",
|
|
117147
117147
|
main: "dist/index.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-ts-template",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"mcpName": "io.github.cyanheads/mcp-ts-template",
|
|
5
5
|
"description": "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.",
|
|
6
6
|
"main": "dist/index.js",
|