mcp-ts-template 2.0.6 → 2.0.7

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 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.0.4-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.1.8-blueviolet.svg?style=flat-square)](https://bun.sh/) [![Code Coverage](https://img.shields.io/badge/Coverage-73.99%25-brightgreen.svg?style=flat-square)](./coverage/lcov-report/)
5
+ [![Version](https://img.shields.io/badge/Version-2.0.7-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/)
6
6
 
7
7
  </div>
8
8
 
package/dist/index.js CHANGED
@@ -126103,7 +126103,7 @@ var package_default = {
126103
126103
  jose: "^6.1.0",
126104
126104
  "js-yaml": "^4.1.0",
126105
126105
  "node-cron": "^4.2.1",
126106
- openai: "^5.22.0",
126106
+ openai: "^5.23.0",
126107
126107
  "partial-json": "^0.1.7",
126108
126108
  "reflect-metadata": "^0.2.2",
126109
126109
  "sanitize-html": "^2.17.0",
@@ -127976,7 +127976,7 @@ class Logger2 {
127976
127976
  };
127977
127977
  }
127978
127978
  const consoleTransport = this.winstonLogger.transports.find((t) => t instanceof import_winston2.default.transports.Console);
127979
- const shouldHaveConsole = this.currentMcpLevel === "debug" && typeof process !== "undefined" && !!process.stdout && !!process.stdout.isTTY;
127979
+ const shouldHaveConsole = this.currentMcpLevel === "debug" && typeof process !== "undefined" && !!process.stdout && !!process.stdout.isTTY && config.environment !== "test";
127980
127980
  let message = null;
127981
127981
  if (shouldHaveConsole && !consoleTransport) {
127982
127982
  this.winstonLogger.add(new import_winston2.default.transports.Console({
@@ -128005,7 +128005,8 @@ class Logger2 {
128005
128005
  }
128006
128006
  ensureInitialized() {
128007
128007
  if (!this.initialized || !this.winstonLogger) {
128008
- if (typeof process !== "undefined" && process.stdout && process.stdout.isTTY) {
128008
+ const isTestEnv = typeof process !== "undefined" && typeof process.env !== "undefined" && false;
128009
+ if (!isTestEnv && typeof process !== "undefined" && process.stdout && process.stdout.isTTY) {
128009
128010
  console.warn("Logger not initialized; message dropped.");
128010
128011
  }
128011
128012
  return false;
@@ -128371,7 +128372,7 @@ var safeJSON = (text) => {
128371
128372
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
128372
128373
 
128373
128374
  // node_modules/openai/version.mjs
128374
- var VERSION = "5.22.0";
128375
+ var VERSION = "5.23.0";
128375
128376
 
128376
128377
  // node_modules/openai/internal/detect-platform.mjs
128377
128378
  var isRunningInBrowser = () => {
@@ -132117,7 +132118,7 @@ class Conversations extends APIResource {
132117
132118
  super(...arguments);
132118
132119
  this.items = new Items(this._client);
132119
132120
  }
132120
- create(body, options) {
132121
+ create(body = {}, options) {
132121
132122
  return this._client.post("/conversations", { body, ...options });
132122
132123
  }
132123
132124
  retrieve(conversationID, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-ts-template",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
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",
@@ -82,7 +82,7 @@
82
82
  "jose": "^6.1.0",
83
83
  "js-yaml": "^4.1.0",
84
84
  "node-cron": "^4.2.1",
85
- "openai": "^5.22.0",
85
+ "openai": "^5.23.0",
86
86
  "partial-json": "^0.1.7",
87
87
  "reflect-metadata": "^0.2.2",
88
88
  "sanitize-html": "^2.17.0",