mcp-ts-template 2.2.7 → 2.2.8
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 +3 -2
- package/dist/index.js +5 -4
- package/dist/worker.js +62619 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<div align="center">
|
|
7
7
|
|
|
8
|
-
[](./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/)
|
|
9
9
|
|
|
10
10
|
</div>
|
|
11
11
|
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
- **Declarative Tools & Resources**: Define capabilities in single, self-contained files. The framework handles registration and execution.
|
|
17
17
|
- **Elicitation Support**: Tools can interactively prompt the user for missing parameters during execution, streamlining user workflows.
|
|
18
|
-
- **Speech-to-Text & Text-to-Speech**: Integrated speech service with providers for ElevenLabs and OpenAI Whisper.
|
|
19
18
|
- **Robust Error Handling**: A unified `McpError` system ensures consistent, structured error responses across the server.
|
|
20
19
|
- **Pluggable Authentication**: Secure your server with zero-fuss support for `none`, `jwt`, or `oauth` modes.
|
|
21
20
|
- **Abstracted Storage**: Swap storage backends (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2`) without changing business logic.
|
|
22
21
|
- **Full-Stack Observability**: Get deep insights with structured logging (Pino) and optional, auto-instrumented OpenTelemetry for traces and metrics.
|
|
23
22
|
- **Dependency Injection**: Built with `tsyringe` for a clean, decoupled, and testable architecture.
|
|
23
|
+
- **Service Integrations**: Pluggable services for external APIs, including LLM providers (OpenRouter) and text-to-speech (ElevenLabs).
|
|
24
|
+
- **Rich Built-in Utility Suite**: Helpers for parsing (PDF, YAML, CSV), scheduling, security, and more.
|
|
24
25
|
- **Edge-Ready**: Write code once and run it seamlessly on your local machine or at the edge on Cloudflare Workers.
|
|
25
26
|
|
|
26
27
|
## 🚀 Getting Started
|
package/dist/index.js
CHANGED
|
@@ -117536,7 +117536,7 @@ var ErrorSchema = z.object({
|
|
|
117536
117536
|
// package.json
|
|
117537
117537
|
var package_default = {
|
|
117538
117538
|
name: "mcp-ts-template",
|
|
117539
|
-
version: "2.2.
|
|
117539
|
+
version: "2.2.7",
|
|
117540
117540
|
mcpName: "io.github.cyanheads/mcp-ts-template",
|
|
117541
117541
|
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.",
|
|
117542
117542
|
main: "dist/index.js",
|
|
@@ -117619,9 +117619,10 @@ var package_default = {
|
|
|
117619
117619
|
jose: "^6.1.0",
|
|
117620
117620
|
"js-yaml": "^4.1.0",
|
|
117621
117621
|
"node-cron": "^4.2.1",
|
|
117622
|
-
openai: "^
|
|
117622
|
+
openai: "^6.0.0",
|
|
117623
117623
|
papaparse: "^5.5.3",
|
|
117624
117624
|
"partial-json": "^0.1.7",
|
|
117625
|
+
"pdf-lib": "^1.17.1",
|
|
117625
117626
|
pino: "^9.12.0",
|
|
117626
117627
|
"reflect-metadata": "^0.2.2",
|
|
117627
117628
|
repomix: "^1.6.0",
|
|
@@ -117665,7 +117666,7 @@ var package_default = {
|
|
|
117665
117666
|
"pino-pretty": "^13.1.1",
|
|
117666
117667
|
prettier: "^3.6.2",
|
|
117667
117668
|
typedoc: "^0.28.13",
|
|
117668
|
-
typescript: "^5.9.
|
|
117669
|
+
typescript: "^5.9.3",
|
|
117669
117670
|
"typescript-eslint": "8.45.0",
|
|
117670
117671
|
vite: "^7.1.7",
|
|
117671
117672
|
"vite-tsconfig-paths": "^5.1.4",
|
|
@@ -119783,7 +119784,7 @@ var safeJSON = (text) => {
|
|
|
119783
119784
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
119784
119785
|
|
|
119785
119786
|
// node_modules/openai/version.mjs
|
|
119786
|
-
var VERSION = "
|
|
119787
|
+
var VERSION = "6.0.0";
|
|
119787
119788
|
|
|
119788
119789
|
// node_modules/openai/internal/detect-platform.mjs
|
|
119789
119790
|
var isRunningInBrowser = () => {
|